buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
// author::devendra parihar #include <bits/stdc++.h> #define ll long long int using namespace std; int main() { string s; cin >> s; bool f = false; for (int i = 0; i < s.size() - 1; i++) { for (int j = i + 1; j < s.size(); j++) if (s[i] != s[j]) { f = true; } } if (f == true) c...
// author::devendra parihar #include <bits/stdc++.h> #define ll long long int using namespace std; int main() { string s; cin >> s; bool f = false; for (int i = 0; i < s.size() - 1; i++) { for (int j = i + 1; j < s.size(); j++) if (s[i] != s[j]) { f = true; } } if (f == true) c...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
110
s=input() print("Yes" if len(set(s))==1 else "No")
s=input() print("Yes" if len(set(s))==2 else "No")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612]]
5
25
#include <stdio.h> int main(void) { char S[3]; int i; scanf("%c%c%c", &S[0], &S[1], &S[2]); if ((S[0] == S[1] && S[0] != S[2]) || (S[0] == S[2] && S[0] != S[1]) || (S[1] == S[2] && S[1] != S[2])) { puts("Yes"); } else { puts("No"); } return 0; }
#include <stdio.h> int main(void) { char S[3]; int i; scanf("%c%c%c", &S[0], &S[1], &S[2]); if ((S[0] == S[1] && S[0] != S[2]) || (S[0] == S[2] && S[0] != S[1]) || (S[1] == S[2] && S[1] != S[0])) { puts("Yes"); } else { puts("No"); } return 0; }
[["-", 12, 23, 0, 16, 12, 16, 12, 69, 71, 13], ["+", 12, 23, 0, 16, 12, 16, 12, 69, 71, 13]]
0
133
#include <iostream> using namespace std; int main() { string s; cin >> s; cout << (s[0] == s[1] && s[1] == s[2] ? "Yes\n" : "No\n"); }
#include <iostream> using namespace std; int main() { string s; cin >> s; cout << (s[0] == s[1] && s[1] == s[2] ? "No\n" : "Yes\n"); }
[["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
53
#include <iostream> #include <string> using namespace std; int main() { string s; if (s == "AAA" || s == "BBB") cout << "No" << endl; else cout << "Yes" << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (s == "AAA" || s == "BBB") cout << "No" << endl; else cout << "Yes" << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
51
SSS = input() KKK = "NO" NNN = [] NNN = list(SSS) if NNN[0] != NNN[1] or NNN[0] != NNN[2]: KKK = "YES" print(KKK)
SSS = input() KKK = "No" NNN = [] NNN = list(SSS) if NNN[0] != NNN[1] or NNN[0] != NNN[2]: KKK = "Yes" print(KKK)
[["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
50
#include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <string.h> #include <string> using namespace std; const int mod = 1e9 + 7; int main() { char s[3]; cin >> s[0] >> s[1] >> s[2]; int a = 0, b = 0; for (int i = 0; i < 3; i++) { if (s[0] == 'A') a++; if (s[0] == 'B...
#include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <string.h> #include <string> using namespace std; const int mod = 1e9 + 7; int main() { char s[3]; cin >> s[0] >> s[1] >> s[2]; int a = 0, b = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'A') a++; if (s[i] == 'B...
[["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 22]]
1
129
print("Yes" if len(set(input())) == 1 else "No")
print("Yes" if len(set(input())) != 1 else "No")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 60], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 79]]
5
22
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; bool ans = true; for (int i = 1; i < s.length(); i++) { if (s[i - 1] != s[i]) { // cout << "No"; ans = false; break; } } ans ? cout << "Yes\n" : cout << "No\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; bool ans = false; for (int i = 1; i < s.length(); i++) { if (s[i - 1] != s[i]) { ans = true; break; } } ans ? cout << "Yes\n" : cout << "No\n"; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 146], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 147], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 147], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 146]]
1
86
#include <bits/stdc++.h> using namespace std; int main() { char s[3]; cin >> s; sort(s, s + 3); bool can = (s[0] != s[1]) || (s[1] != s[2]); (can) ? cout << "YES\n" : cout << "NO\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char s[3]; cin >> s; sort(s, s + 3); bool can = (s[0] != s[1]) || (s[1] != s[2]); (can) ? cout << "Yes" : cout << "No"; return 0; }
[["-", 0, 1, 0, 41, 64, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 41, 64, 16, 12, 5, 0, 44], ["+", 0, 1, 0, 41, 64, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 41, 75, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 41, 75, 16, 12, 5, 0, 44], ["+", 0, 1, 0, 41, 75, 16, 12, 5, 0, 6]]
1
79
<?php //$data = file_get_contents("php://stdin"); fscanf(STDIN, "%s", $data); if ($data == 'AAA' || $data == 'BBB') { echo 'NO'; } else { echo 'YES'; }
<?php //$data = file_get_contents("php://stdin"); fscanf(STDIN, "%s", $data); if ($data == 'AAA' || $data == 'BBB') { echo 'No'; } else { echo 'Yes'; }
[["-", 0, 57, 8, 9, 0, 608, 0, 557, 0, 610], ["+", 0, 57, 8, 9, 0, 608, 0, 557, 0, 610], ["-", 75, 76, 8, 9, 0, 608, 0, 557, 0, 610], ["+", 75, 76, 8, 9, 0, 608, 0, 557, 0, 610]]
6
45
S = input() S = 'BAB' if S == 'AAA' or S== 'BBB': print("No") else: print("Yes")
S = input() if S == 'AAA' or S== 'BBB': print("No") else: print("Yes")
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 654], ["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 655]]
5
37
#include <stdio.h> int main(void) { char s[3]; scanf("%c %c %c", &s[0], &s[1], &s[2]); if ((s[0] == 'A' && s[1] == 'A' && s[2] == 'A') || (s[0] == 'B' && s[1] == 'N' && s[2] == 'B')) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
#include <stdio.h> int main(void) { char s[3]; scanf("%c %c %c", &s[0], &s[1], &s[2]); if ((s[0] == 'A' && s[1] == 'A' && s[2] == 'A') || (s[0] == 'B' && s[1] == 'B' && s[2] == 'B')) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
[["-", 0, 16, 31, 16, 12, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 16, 12, 16, 12, 103, 0, 125]]
0
124
#include <bits/stdc++.h> using namespace std; int main() { string s; int a = 0, b = 0; cin >> s; for (int i = 1; i <= 3; i++) { if (s[i] == 'B') b++; if (s[i] == 'A') a++; } if (b == 2 && a == 1 || a == 2 && b == 1) { cout << "Yes" << endl; return 0; } cout << "No" << endl; ...
#include <bits/stdc++.h> using namespace std; int main() { string s; int a = 0, b = 0; cin >> s; for (int i = 0; i <= 2; i++) { if (s[i] == 'B') b++; if (s[i] == 'A') a++; } if (b == 2 && a == 1 || a == 2 && b == 1) { cout << "Yes" << endl; return 0; } cout << "No" << endl; ...
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
114
#include <algorithm> #include <iostream> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; int main() { char a, b, c; cin >> a >> b >> c; if (a == b || b == c) cout << "No" << endl; else cout << "Yes" << endl; }
#include <algorithm> #include <iostream> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; int main() { char a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << "No" << endl; else cout << "Yes" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
64
#include <bits/stdc++.h> using namespace std; typedef long long ll; /* ll gcds(ll a,ll b){ if(a<b){ swap(a,b); } ll r=a%b; if(r==0){ return b; } while(r>0){ r=a%b; a=b; b=r; } return a; } ll lcms(ll a,ll b){ ll mmr=gcds(a,b); a=a/mmr; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; /* ll gcds(ll a,ll b){ if(a<b){ swap(a,b); } ll r=a%b; if(r==0){ return b; } while(r>0){ r=a%b; a=b; b=r; } return a; } ll lcms(ll a,ll b){ ll mmr=gcds(a,b); a=a/mmr; ...
[["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
123
#include <bits/stdc++.h> #define read(arr, n) \ for (int i = 0; i < n; i++) \ cin >> arr[i]; #define print(arr, n) \ for (int i = 0; i < n; i++) ...
#include <bits/stdc++.h> #define read(arr, n) \ for (int i = 0; i < n; i++) \ cin >> arr[i]; #define print(arr, n) \ for (int i = 0; i < n; i++) ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
108
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 9223372036854775807; const ll half_inf = 0x3f3f3f3f; const ll inf = 0x7fffffff; const ll mod = 1e9 + 7; const ll maxn = 200005; const ll N = 500005; char s[10]; void solve() {} int main() { cin.tie(0); ios::sync_with_stdio(false); ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 9223372036854775807; const ll half_inf = 0x3f3f3f3f; const ll inf = 0x7fffffff; const ll mod = 1e9 + 7; const ll maxn = 200005; const ll N = 500005; char s[10]; void solve() {} int main() { cin.tie(0); ios::sync_with_stdio(false); ...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
172
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; char station = s[0]; bool yes = false; for (int i = 1; i < 3; i++) { if (s[i] != station) { yes = true; break; } } if (yes) cout << "YES"; else cout << "NO"; return 0; }
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; char station = s[0]; bool yes = false; for (int i = 1; i < 3; i++) { if (s[i] != station) { yes = true; break; } } if (yes) cout << "Yes"; else cout << "No"; return 0; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
87
S = input() if 'A' and 'B' in S: print('Yes') else: print('No')
S = input() if 'A' in S and 'B' in S: print('Yes') else: print('No')
[["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 267], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 22]]
5
30
//#include <fsociety> #include <algorithm> #include <cmath> #include <deque> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> // end of libraries ; #define INF 999...
//#include <fsociety> #include <algorithm> #include <cmath> #include <deque> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> // end of libraries ; #define INF 999...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
148
#include <bits/stdc++.h> using namespace std; const int mx = 1e6 + 42; int main() { string a; cin >> a; if (a == "AAA") cout << "NO" << endl; else if (a == "BBB") cout << "NO" << endl; else cout << "YES" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; const int mx = 1e6 + 42; int main() { string a; cin >> a; if (a == "AAA") cout << "No" << endl; else if (a == "BBB") cout << "No" << endl; else cout << "Yes" << endl; return 0; }
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
72
#include <bits/stdc++.h> using namespace std; main() { char a, b, c; cin >> a >> b >> c; if (a == b == c) cout << "No"; else cout << "Yes"; }
#include <bits/stdc++.h> using namespace std; main() { char a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << "No"; else cout << "Yes"; }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]]
1
47
inputs = list(input()) print(inputs) if inputs[0] == inputs[1] and inputs[1] == inputs[2]: print('No') else: print('Yes')
inputs = list(input()) if inputs[0] == inputs[1] and inputs[1] == inputs[2]: print('No') else: print('Yes')
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
47
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S == "AAA" || S == "BBB") { cout << "Yes"; } else { cout << "No"; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S == "AAA" || S == "BBB") { cout << "No"; } else { cout << "Yes"; } }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
50
#include <bits/stdc++.h> using namespace std; typedef long long ll; //#define P pair<ll,ll> #define FOR(I, A, B) for (ll I = ll(A); I < ll(B); ++I) #define FORR(I, A, B) for (ll I = ll((B)-1); I >= ll(A); --I) #define TO(x, t, f) ((x) ? (t) : (f)) #define SORT(x) (sort(x.begin(), x.end())) // 0 2 2 3 4 5 8 9 #define PO...
#include <bits/stdc++.h> using namespace std; typedef long long ll; //#define P pair<ll,ll> #define FOR(I, A, B) for (ll I = ll(A); I < ll(B); ++I) #define FORR(I, A, B) for (ll I = ll((B)-1); I >= ll(A); --I) #define TO(x, t, f) ((x) ? (t) : (f)) #define SORT(x) (sort(x.begin(), x.end())) // 0 2 2 3 4 5 8 9 #define PO...
[["-", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22], ["+", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22]]
1
287
#include <algorithm> #include <iostream> #include <set> #include <stdio.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)n; i++) // n回繰り返す using namespace std; using ll = long long; using P = pair<int, int>; int main() { string s; cin >> s; if (s.at(0) == s.at(1) && s.at(0) == s....
#include <algorithm> #include <iostream> #include <set> #include <stdio.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)n; i++) // n回繰り返す using namespace std; using ll = long long; using P = pair<int, int>; int main() { string s; cin >> s; if (s.at(0) == s.at(1) && s.at(0) == s....
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
118
#include <bits/stdc++.h> using namespace std; #define FAST_IO \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define ll long...
#include <bits/stdc++.h> using namespace std; #define FAST_IO \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define ll long...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
120
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; char fst = s[0]; if (fst != s[1] || fst != s[2]) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; char fst = s[0]; if (fst != s[1] || fst != s[2]) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
69
package main import ( "fmt" ) func main() { var S string fmt.Scanf("%v", &S) if (S[0] == S[1]) && (S[1] == S[2]) { fmt.Println("Yes") } else { fmt.Println("No") } }
package main import ( "fmt" ) func main() { var S string fmt.Scanf("%v", &S) if (S[0] == S[1]) && (S[1] == S[2]) { fmt.Println("No") } else { fmt.Println("Yes") } }
[]
7
82
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string s; int flag = 0; if (s == "AAA" || s == "BBB") { flag = 1; } if (flag == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string s; cin >> s; int flag = 0; if (s == "AAA" || s == "BBB") { flag = 1; } if (flag == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
75
#include <iostream> using namespace std; int main() { char S[3]; int A = 0; int B = 0; for (int i = 0; i < 3; i++) { cin >> S[i]; if (S[i] == 'A') { A++; } else { B++; } } if (A == 2 && B == 1) { cout << "Yes"; } else { cout << "No"; } return 0; }
#include <iostream> using namespace std; int main() { char S[3]; int A = 0; int B = 0; for (int i = 0; i < 3; i++) { cin >> S[i]; if (S[i] == 'A') { A++; } else { B++; } } if (A == 2 || B == 2) { cout << "Yes"; } else { cout << "No"; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
103
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(a) (a).begin(), (a).end() #define dunk(a) cout << (a) << endl using namespace std; typedef long long ll; int main() { string s; cin >> s; if (s[0] == s[1] && s[0] == s[2]) dunk("Yes"); else dunk("No"); }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(a) (a).begin(), (a).end() #define dunk(a) cout << (a) << endl using namespace std; typedef long long ll; int main() { string s; cin >> s; if (s[0] == s[1] && s[0] == s[2]) dunk("No"); else dunk("Yes"); }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
81
import java.util.*; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String s = stdIn.next(); if (s.equals("AAA") || s.equals("BBB")) { System.out.println("NO"); } else { System.out.println("YES"); } } }
import java.util.*; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String s = stdIn.next(); if (s.equals("AAA") || s.equals("BBB")) { System.out.println("No"); } else { System.out.println("Yes"); } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
90
s = gets inputs = [s[0], s[1], s[3] ] puts inputs.uniq.size == 1 ? 'No': 'Yes'
s = gets inputs = [s[0], s[1], s[2] ] puts inputs.uniq.size == 1 ? 'No': 'Yes'
[["-", 0, 493, 0, 662, 12, 516, 0, 742, 0, 612], ["+", 0, 493, 0, 662, 12, 516, 0, 742, 0, 612]]
4
37
abc=str(input()) a=abc[0] b=abc[1] c=abc[2] if a == b and b==c and c==a: print("Yes") else: print("No")
abc=str(input()) a=abc[0] b=abc[1] c=abc[2] if a == b and b==c and c==a: print("No") else: print("Yes")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
53
#include <bits/stdc++.h> using namespace std; #define lli long long int #define uli unsigned long long int #define INF 999999999999999999 #define rep(i, m, n) for (lli i = m; i < n; i++) #define rrep(i, m, n) for (lli i = m - 1; i >= n; i--) #define pb(n) push_back(n) #define UE(N) N.erase(unique(N.begin(), N.end()), N...
#include <bits/stdc++.h> using namespace std; #define lli long long int #define uli unsigned long long int #define INF 999999999999999999 #define rep(i, m, n) for (lli i = m; i < n; i++) #define rrep(i, m, n) for (lli i = m - 1; i >= n; i--) #define pb(n) push_back(n) #define UE(N) N.erase(unique(N.begin(), N.end()), N...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 15, 339, 51, 16, 12, 16, 31, 69, 28, 22], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 70], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 73]]
1
249
#include <bits/stdc++.h> using namespace std; typedef long long ll; string s; int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); cin >> s; if (s == "AAA" || s == "BBB") cout << "NO" << '\n'; else cout << "YES" << '\n'; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; string s; int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); cin >> s; if (s == "AAA" || s == "BBB") cout << "No" << '\n'; else cout << "Yes" << '\n'; }
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
77
#include <iostream> using namespace std; int main() { string a; int p(0); cin >> a; // cout << a[0] << a[1] << a[2]; for (int i = 0; i < 3; ++i) { if (a[i] == 'A') { ++p; // cout << "P" << endl; } } if (p == 1 || p == 2) { cout << "YES"; } else { cout << "NO"; } return 0;...
#include <iostream> using namespace std; int main() { string a; int p(0); cin >> a; // cout << a[0] << a[1] << a[2]; for (int i = 0; i < 3; ++i) { if (a[i] == 'A') { ++p; // cout << "P" << endl; } } if (p == 1 || p == 2) { cout << "Yes"; } else { cout << "No"; } return 0;...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
89
#include <iostream> #include <string> using namespace std; int main() { string S; int A = 0, B = 0; cin >> S; for (int i = 0; i < 3; i++) { if (S[i] == 'A') A = 1; else if (S[i] == 'B') B = 1; } if (A and B == 1) cout << "yes" << endl; else cout << "no" << endl; }
#include <iostream> #include <string> using namespace std; int main() { string S; int A = 0, B = 0; cin >> S; for (int i = 0; i < 3; i++) { if (S[i] == 'A') A = 1; else if (S[i] == 'B') B = 1; } if (A and B == 1) cout << "Yes" << endl; else cout << "No" << endl; }
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
102
package main import ( "bufio" "fmt" "os" "strings" ) func main() { reader := bufio.NewReader(os.Stdin) text, _ := reader.ReadString('\n') // fmt.Println(text) text = strings.TrimRight(text, "\n") if strings.Compare(text, "AAA") == 0 || strings.Compare(text, "BBB") == 0 { fmt.Printf("Yes\n") } else { fmt...
package main import ( "bufio" "fmt" "os" "strings" ) func main() { reader := bufio.NewReader(os.Stdin) text, _ := reader.ReadString('\n') // fmt.Println(text) text = strings.TrimRight(text, "\n") if strings.Compare(text, "AAA") == 0 || strings.Compare(text, "BBB") == 0 { fmt.Printf("No\n") } else { fmt....
[["-", 64, 196, 0, 1, 0, 2, 3, 4, 0, 429], ["-", 0, 1, 0, 2, 3, 4, 0, 429, 0, 44], ["+", 64, 196, 0, 1, 0, 2, 3, 4, 0, 429], ["+", 0, 1, 0, 2, 3, 4, 0, 429, 0, 44], ["-", 75, 196, 0, 1, 0, 2, 3, 4, 0, 429], ["+", 75, 196, 0, 1, 0, 2, 3, 4, 0, 429]]
7
125
#include <bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; if (s == "AAA") cout << "No"; if (s == "BBB") cout << "No"; else cout << "Yes"; }
#include <bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; if (s == "AAA") cout << "No"; else if (s == "BBB") cout << "No"; else cout << "Yes"; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
55
s = gets.chomp puts (s == 'AAA' || s == 'BBB') ? 'NO' : 'YES'
s = gets.chomp puts (s == 'AAA' || s == 'BBB') ? 'No' : 'Yes'
[["-", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6]]
4
27
#include <iostream> using namespace std; int main() { string S; cin >> S; string result; if ((S[0] == S[1]) | (S[0] == S[2]) | (S[1] == S[2])) result = "Yes"; else result = "No"; cout << result << endl; }
#include <iostream> using namespace std; int main() { string S; cin >> S; string result; if ((S[0] != S[1]) | (S[0] != S[2]) | (S[1] != S[2])) result = "Yes"; else result = "No"; cout << result << endl; }
[["-", 51, 16, 31, 16, 31, 23, 0, 16, 17, 60], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 17, 79], ["-", 51, 16, 31, 16, 12, 23, 0, 16, 17, 60], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 17, 79], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 60], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 79]]
1
79
#A s = set(list(input())) print(s) print("Yes") if len(s) == 2 else print("No")
#A s = set(list(input())) print("Yes") if len(s) == 2 else print("No")
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 0, 656, 0, 1, 0, 41, 0, 652, 63, 22], ["-", 0, 1, 0, 41, 0, 652, 3, 4, 0, 24]]
5
36
# coding: utf-8 def main(): in_data = input() if (in_data == 'AAA' or in_data == 'BBB'): print('NO') else: print('YES') return 0 if __name__ == '__main__': main()
# coding: utf-8 def main(): in_data = input() if (in_data == 'AAA' or in_data == 'BBB'): print('No') else: print('Yes') return 0 if __name__ == '__main__': main()
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
52
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int a = 0, b = 0; for (int i = 0; i < 2; ++i) { if (s[i] == 'A') a = 1; if (s[i] == 'B') b = 1; } if (a == 1 && b == 1) cout << "Yes"; else cout << "No"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int a = 0, b = 0; for (int i = 0; i <= 2; ++i) { if (s[i] == 'A') a = 1; if (s[i] == 'B') b = 1; } if (a == 1 && b == 1) cout << "Yes"; else cout << "No"; return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
100
s = input() a = s[0] if a == s[1] and a == s[2]: print('Yes') else: print('No')
s = input() a = s[0] if a == s[1] and a == s[2]: print('No') else: print('Yes')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
40
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String S; S = sc.next(); sc.close(); if (!S.equals("AAA") || !S.equals("BBB")) { System.out.println("Yes"); } else { System.out.println("No"); } } }
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String S; S = sc.next(); sc.close(); if (S.equals("AAA") || S.equals("BBB")) { System.out.println("No"); } else { System.out.println("Yes"); } } }
[["-", 0, 57, 15, 15, 0, 16, 31, 91, 17, 111], ["-", 0, 57, 15, 15, 0, 16, 12, 91, 17, 111], ["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
101
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; #define re(i, n) for (ll i = 0; i < n; ++i) #define ocut cout #define ouct cout #define itn int struct Union { vector<int> par; Union(int a) { par = vector<int>(a, -1); } int find(int a) { if (par[a] < 0) { ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; #define re(i, n) for (ll i = 0; i < n; ++i) #define ocut cout #define ouct cout #define itn int struct Union { vector<int> par; Union(int a) { par = vector<int>(a, -1); } int find(int a) { if (par[a] < 0) { ...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
260
import java.io.*; import java.util.*; public class Main { void submit() { String S = nextString(); if (S.equals("AAA") || S.equals("BBB")) { out.println("Yes"); } else { out.println("No"); } } void preCalc() {} void stress() {} void test() {} Main() throws IOException { ...
import java.io.*; import java.util.*; public class Main { void submit() { String S = nextString(); if (S.equals("AAA") || S.equals("BBB")) { out.println("No"); } else { out.println("Yes"); } } void preCalc() {} void stress() {} void test() {} Main() throws IOException { ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
339
#include <iostream> using namespace std; int main() { char a, b, c; while (cin >> a >> b >> c) { int sum = 0; if (a == 'A') sum++; else sum--; if (b == 'B') sum++; else sum--; if (c == 'C') sum++; else sum--; if (sum == 3) cout << "No" <<...
#include <iostream> using namespace std; int main() { char a, b, c; while (cin >> a >> b >> c) { int sum = 0; if (a == 'A') sum++; else sum--; if (b == 'A') sum++; else sum--; if (c == 'A') sum++; else sum--; if (sum == 3) cout << "No" <<...
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
122
#include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { string s; for (int i = 1; i < 3; i++) { if (s[i] != s[i - 1]) { cout << "Yes"; return 0; } } cout << "No"; }
#include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { string s; cin >> s; for (int i = 1; i < 3; i++) { if (s[i] != s[i - 1]) { cout << "Yes"; return 0; } } cout << "No"; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
69
/* Auther: ghoshashis545 Ashis Ghosh College: jalpaiguri Govt Enggineerin College Date:07/03/2020 */ #include <algorithm> #include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define ff first #define ss string #define se second #define alt(v) v.begin(), v.end() #define p...
/* Auther: ghoshashis545 Ashis Ghosh College: jalpaiguri Govt Enggineerin College Date:07/03/2020 */ #include <algorithm> #include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define ff first #define ss string #define se second #define alt(v) v.begin(), v.end() #define p...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
235
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool a = false; bool b = false; for (auto c = S.begin(); c != S.end(); c++) { if (*c == 'A') { a = true; } else { b = true; } if (a && b) { cout << "YES" << endl; return 0; } } cout...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool a = false; bool b = false; for (auto c = S.begin(); c != S.end(); c++) { if (*c == 'A') { a = true; } else { b = true; } if (a && b) { cout << "Yes" << endl; return 0; } } cout...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
105
#include <iostream> #include <string> using namespace std; int main() { int n, i, j, k, a = 0, b = 0; string s; cin >> s; for (i = 0; i < 3; i++) { if (s[i] == 'A') a++; else b++; } if (a == 3 || b == 3) { printf("NO"); } else printf("Yes"); }
#include <iostream> #include <string> using namespace std; int main() { int n, i, j, k, a = 0, b = 0; string s; cin >> s; for (i = 0; i < 3; i++) { if (s[i] == 'A') a++; else b++; } if (a == 3 || b == 3) { printf("No"); } else printf("Yes"); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
98
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int a = (s[0] == 'A') + (s[1] == 'B') + (s[2] == 'C'); if (a > 0 and a < 3) cout << "Yes\n"; else cout << "No\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int a = (s[0] == 'A') + (s[1] == 'A') + (s[2] == 'A'); if (a > 0 and a < 3) cout << "Yes\n"; else cout << "No\n"; return 0; }
[["-", 31, 16, 12, 23, 0, 16, 12, 103, 0, 125], ["+", 31, 16, 12, 23, 0, 16, 12, 103, 0, 125], ["-", 51, 16, 12, 23, 0, 16, 12, 103, 0, 125], ["+", 51, 16, 12, 23, 0, 16, 12, 103, 0, 125]]
1
83
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; int A = 0; if (S[0] == 'A') ++A; if (S[1] == 'A') ++A; if (S[2] == 'A') ++A; if (A == 1 && A == 2) cout << "Yes" << endl; else cout << "No" << endl; }
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; int A = 0; if (S[0] == 'A') ++A; if (S[1] == 'A') ++A; if (S[2] == 'A') ++A; if (A == 1 || A == 2) cout << "Yes" << endl; else cout << "No" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]]
1
95
#include <bits/stdc++.h> #define int long long #define ll long long using namespace std; const ll siz = 1e6 + 10; const ll mod = 1e9 + 7; const ll maxx = 1e9; const ll MAXX = 1e17; const ll base = 31; char c; int cnt1, cnt2; int32_t main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); // freopen ("I...
#include <bits/stdc++.h> #define int long long #define ll long long using namespace std; const ll siz = 1e6 + 10; const ll mod = 1e9 + 7; const ll maxx = 1e9; const ll MAXX = 1e17; const ll base = 31; char c; int cnt1, cnt2; int32_t main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); // freopen ("I...
[["-", 0, 1, 0, 41, 64, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 41, 64, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 41, 75, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 41, 75, 16, 12, 5, 0, 6]]
1
143
#include <algorithm> #include <cmath> #include <deque> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; //-------------------- int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); } void func() { string s; cin >> s; ...
#include <algorithm> #include <cmath> #include <deque> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; //-------------------- int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); } void func() { string s; cin >> s; ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 62], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104]]
1
130
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; int main() { string s; cin >> s; if (s == "ABA" || s == "BAB") { cout << "Yes"; } else { cout << "No"; } }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; int main() { string s; cin >> s; if (s == "AAA" || s == "BBB") { cout << "No"; } else { cout << "Yes"; } }
[["-", 15, 339, 51, 16, 31, 16, 12, 5, 0, 6], ["+", 15, 339, 51, 16, 31, 16, 12, 5, 0, 6], ["-", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6], ["+", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6], ["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0,...
1
64
#include <algorithm> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <string> #include <vector> #define PB push_back #define ll long long #define ull unsigned long long #define uint unsigned #define PIE (3.14159265358979323846) #define MOD 10000000...
#include <algorithm> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <string> #include <vector> #define PB push_back #define ll long long #define ull unsigned long long #define uint unsigned #define PIE (3.14159265358979323846) #define MOD 10000000...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
140
#include <stdio.h> int main() { char s[3] = {NULL}; int cnt_a = 0, cnt_b = 0; scanf("%s", s); for (int i = 0; i < 3; i++) { if (s[i] == 'a') cnt_a++; else cnt_b++; } if (cnt_a == 0 || cnt_b == 0) printf("No\n"); else printf("Yes\n"); return 0; }
#include <stdio.h> int main() { char s[3] = {NULL}; int cnt_a = 0, cnt_b = 0; scanf("%s", s); for (int i = 0; i < 3; i++) { if (s[i] == 'A') cnt_a++; else cnt_b++; } if (cnt_a == 0 || cnt_b == 0) printf("No\n"); else printf("Yes\n"); return 0; }
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
100
#include <bits/stdc++.h> #define db(x) cerr << __LINE__ << ": " << #x << " = " << (x) << endl #define ll long long #define ld long double #define pll pair<ll, ll> #define MOD 1000000007 using namespace std; const long long INF = 3 * 1e18; int main() { ios::sync_with_stdio(0); cin.tie(0); string S; cin >> S; ...
#include <bits/stdc++.h> #define db(x) cerr << __LINE__ << ": " << #x << " = " << (x) << endl #define ll long long #define ld long double #define pll pair<ll, ll> #define MOD 1000000007 using namespace std; const long long INF = 3 * 1e18; int main() { ios::sync_with_stdio(0); cin.tie(0); string S; cin >> S; ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6],...
1
130
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define REP(i, a, b) for (ll i = ll(a); i < ll(b); i++) int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s == "AAA" || s == "BBB") cout << "NO"; else cout << "YES"; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define REP(i, a, b) for (ll i = ll(a); i < ll(b); i++) int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s == "AAA" || s == "BBB") cout << "No"; else cout << "Yes"; return 0; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
79
#include <bits/stdc++.h> #define MOD 1e9 + 7 #define PI 3.141592653589793238 #define pb push_back #define ALL(V) (V).begin(), (V).end() #define FOR(i, a, b) for (int i = (a); i < (b); ++i) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long long int lint; typedef vector<ll> VL; typed...
#include <bits/stdc++.h> #define MOD 1e9 + 7 #define PI 3.141592653589793238 #define pb push_back #define ALL(V) (V).begin(), (V).end() #define FOR(i, a, b) for (int i = (a); i < (b); ++i) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long long int lint; typedef vector<ll> VL; typed...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]]
1
272
#include <bits/stdc++.h> using namespace std; long long a, b, c, d, i, e, f, g, n, m, k, l, j, A[500005], t; string s; int main() { cin >> s; for (long long i = 0; i < s.size(); i++) { if (s[i] == 'A') a = 1; else b = 1; } if (a == 1 && b == 1) cout << "YES"; else cout << "NO"; }
#include <bits/stdc++.h> using namespace std; long long a, b, c, d, i, e, f, g, n, m, k, l, j, A[500005], t; string s; int main() { cin >> s; for (long long i = 0; i < s.size(); i++) { if (s[i] == 'A') a = 1; else b = 1; } if (a == 1 && b == 1) cout << "Yes"; else cout << "No"; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
118
print gets.chars.uniq.size > 1 ? "Yes" : "No"
print gets.chomp.chars.uniq.size > 1 ? "Yes" : "No"
[["+", 31, 652, 486, 652, 486, 652, 486, 652, 735, 22], ["+", 15, 738, 31, 652, 486, 652, 486, 652, 17, 131]]
4
18
#include <bits/stdc++.h> #define rep(i, x) for (int i = 0; i < (int)(x); i++) using namespace std; int main() { string s; cin >> s; if (s[0] == s[1] || s[1] == s[2] || s[0] == s[2]) cout << "No" << endl; else cout << "Yes" << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, x) for (int i = 0; i < (int)(x); i++) using namespace std; int main() { string s; cin >> s; if (s[0] == s[1] && s[1] == s[2] && s[0] == s[2]) cout << "No" << endl; else cout << "Yes" << endl; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
79
S = STDIN.gets.chomp if S.split.uniq.size == 1 puts 'No' else puts 'Yes' end
S = STDIN.gets.chomp if S.split('').uniq.size == 1 puts 'No' else puts 'Yes' end
[["+", 31, 652, 486, 652, 486, 652, 3, 4, 0, 24], ["+", 486, 652, 486, 652, 3, 4, 0, 557, 0, 62], ["+", 31, 652, 486, 652, 486, 652, 3, 4, 0, 25]]
4
27
s=str(input()) if s=='AAA' or 'BBB': print('No') else: print('Yes')
s=str(input()) if s== 'AAA' or s=='BBB': print('No') else: print('Yes')
[["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 60]]
5
33
#pragma region include #include <algorithm> #include <cstdlib> #include <iostream> #include <map> #include <set> #include <stdio.h> #include <string> #pragma endregion using namespace std; #pragma region 定数 #define INF_VAL (2147483647 - 1) #define INF_VAL_MINUS -INFVAL #pragma endregion #pragma region マクロ // 配列の長さを取得...
#pragma region include #include <algorithm> #include <cstdlib> #include <iostream> #include <map> #include <set> #include <stdio.h> #include <string> #pragma endregion using namespace std; #pragma region 定数 #define INF_VAL (2147483647 - 1) #define INF_VAL_MINUS -INFVAL #pragma endregion #pragma region マクロ // 配列の長さを取得...
[["-", 8, 9, 0, 57, 64, 9, 0, 1, 0, 22], ["-", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 42, 0, 22]]
1
327
#include <algorithm> #include <cstring> #include <iostream> #include <string> using namespace std; typedef long long ll; const int maxn = 1e6 + 10; string s; int main() { cin >> s; if (s[0] == s[1] && s[1] == s[2]) puts("NO"); else puts("YES"); return 0; }
#include <algorithm> #include <cstring> #include <iostream> #include <string> using namespace std; typedef long long ll; const int maxn = 1e6 + 10; string s; int main() { cin >> s; if (s[0] == s[1] && s[1] == s[2]) puts("No"); else puts("Yes"); return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
78
// include,namespace #include <bits/stdc++.h> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; // REPmacro #define all(x) (x).begin(), (x).end() //ソート #define FOR(i, x, n) for (int i = (x); i < (n); i++) #define FOR_R(i, x, n) for (int i = (n - 1); i >= (x); i--) #define REP...
// include,namespace #include <bits/stdc++.h> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; // REPmacro #define all(x) (x).begin(), (x).end() //ソート #define FOR(i, x, n) for (int i = (x); i < (n); i++) #define FOR_R(i, x, n) for (int i = (n - 1); i >= (x); i--) #define REP...
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
170
#include <bits/stdc++.h> using namespace std; int main() { int a = 0, b = 0; char c[4]; scanf("%s", c); for (int i = 0; i < 3; ++i) { if (c[i] == 'A') ++a; else ++b; } if (a && b) puts("YES"); else puts("NO"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a = 0, b = 0; char c[4]; scanf("%s", c); for (int i = 0; i < 3; ++i) { if (c[i] == 'A') ++a; else ++b; } if (a && b) puts("Yes"); else puts("No"); return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
94
S = input() print('No' if S == 'AAA' or 'BBB' else 'Yes')
S = input() print('No' if (S == 'AAA' or S == 'BBB') else 'Yes')
[["+", 0, 652, 3, 4, 0, 41, 0, 23, 0, 24], ["+", 0, 41, 0, 23, 0, 679, 12, 666, 0, 22], ["+", 0, 41, 0, 23, 0, 679, 12, 666, 667, 60], ["+", 0, 652, 3, 4, 0, 41, 0, 23, 0, 25]]
5
25
#include <bits/stdc++.h> #define pll pair<long long, long long> #define pb push_back #define ll long long #define ff first #define ss second #define vll vector<ll> #define NFS \ ios_base::sync_with_stdio(0); ...
#include <bits/stdc++.h> #define pll pair<long long, long long> #define pb push_back #define ll long long #define ff first #define ss second #define vll vector<ll> #define NFS \ ios_base::sync_with_stdio(0); ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
135
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; char c = S.at(0); bool can = false; if (c == S.at(1) && c == S.at(2)) can = true; if (can) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; char c = S.at(0); bool can = true; if (c == S.at(1) && c == S.at(2)) can = false; if (can) cout << "Yes" << endl; else cout << "No" << endl; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 147], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 146], ["-", 8, 9, 0, 57, 64, 1, 0, 11, 12, 146], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 12, 147]]
1
79
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; bool a = false, b = false; for (int i = 0; i < s.size(); i++) { if (s[i] == 'A') { a = true; } if (s[i] == 'B') { b = true; } } if (a == true && b == true) { puts("YES"); } else { puts("NO")...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; bool a = false, b = false; for (int i = 0; i < s.size(); i++) { if (s[i] == 'A') { a = true; } if (s[i] == 'B') { b = true; } } if (a == true && b == true) { puts("Yes"); } else { puts("No")...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
114
s = input() ans = 'Yes' if s == "AAA" or a == "BBB": ans = "No" print(ans)
s = input() ans = 'Yes' if s == "AAA" or s == "BBB": ans = "No" print(ans)
[["-", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22]]
5
32
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char s[10]; scanf("%s", s); if (s[0] == s[1] || s[1] == s[2]) printf("No"); else printf("Yes"); }
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char s[10]; scanf("%s", s); if (s[0] == s[1] && s[1] == s[2]) printf("No"); else printf("Yes"); }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
67
import java.io.*; import java.util.*; public class Main implements Runnable { @Override public void run() { InputReader in = new InputReader(System.in); PrintWriter w = new PrintWriter(System.out); String s = in.nextLine(); if (s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) { w.pri...
import java.io.*; import java.util.*; public class Main implements Runnable { @Override public void run() { InputReader in = new InputReader(System.in); PrintWriter w = new PrintWriter(System.out); String s = in.nextLine(); if (s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) { w.pri...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
907
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = (0); (i) < (int)(n); ++(i)) using ll = long long; using namespace std; int main() { string s; cin >> s; set<char> st; rep(i, s.size()) st.insert(s[i]); if (s.size() == 1) cout << "No" << endl; else cout << "Yes" << endl;...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = (0); (i) < (int)(n); ++(i)) using ll = long long; using namespace std; int main() { string s; cin >> s; set<char> st; rep(i, s.size()) st.insert(s[i]); if (st.size() == 1) cout << "No" << endl; else cout << "Yes" << endl...
[["-", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22], ["+", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22]]
1
91
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cmath> #include <iostream> #include <queue> #include <stack> #include <string> #include <vector> #define ll long long #define itn int #define co(ans) cout << ans << endl; #define COYE cout << "YES" << endl; #define COYe cout << "Yes" << endl; #de...
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cmath> #include <iostream> #include <queue> #include <stack> #include <string> #include <vector> #define ll long long #define itn int #define co(ans) cout << ans << endl; #define COYE cout << "YES" << endl; #define COYe cout << "Yes" << endl; #de...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
227
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ll long long int main() { string s; cin >> s; if (s != "AAA" | s != "BBB") { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ll long long int main() { string s; cin >> s; if (s == "AAA" || s == "BBB") { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 139], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]...
1
65
#include <bits/stdc++.h> #include <string> using namespace std; int main() { string N; cin >> N; int A = 0; for (int i = 0; i < 3; i++) { if (N[i] == 'A') A++; } if (A == 0) cout << "No"; else cout << "Yes"; }
#include <bits/stdc++.h> #include <string> using namespace std; int main() { string N; cin >> N; int A = 0; for (int i = 0; i < 3; i++) { if (N[i] == 'A') A++; } if (A == 0 || A == 3) cout << "No"; else cout << "Yes"; }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
75
s = input() if s[0] == 'A' and s[1] == 'A' and s[2] == 'A': print('No') if s[0] == 'B' and s[1] == 'B' and s[2] == 'B': print('No') else: print('Yes')
s = input() if s[0] == 'A' and s[1] == 'A' and s[2] == 'A': print('No') elif s[0] == 'B' and s[1] == 'B' and s[2] == 'B': print('No') else: print('Yes')
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]]
5
81
#include <stdio.h> #define mod 1000000007 int N, K; long F[2 << 17]; long I[2 << 17]; int main(int argc, char *argv[]) { int i; char s[3]; int A = 0; int B = 0; scanf("%c%c%c", &s[0], &s[1], &s[2]); for (i = 0; i < 3; i++) { if (s[i] == 'A') A = 1; else if (s[i] == 'B') B = 1; } ...
#include <stdio.h> #define mod 1000000007 int N, K; long F[2 << 17]; long I[2 << 17]; int main(int argc, char *argv[]) { int i; char s[3]; int A = 0; int B = 0; scanf("%c%c%c", &s[0], &s[1], &s[2]); for (i = 0; i < 3; i++) { if (s[i] == 'A') A = 1; else if (s[i] == 'B') B = 1; } ...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
151
#include <bits/stdc++.h> using namespace std; #define fRead(x) freopen(x, "r", stdin) #define fWrite(x) freopen(x, "w", stdout) #define LL long long #define ULL unsigned long long #define ff first #define ss second #define pb push_back #define INF 2e16 #define PI acos(-1.0) #define mk make_pair #define pii pair<int,...
#include <bits/stdc++.h> using namespace std; #define fRead(x) freopen(x, "r", stdin) #define fWrite(x) freopen(x, "w", stdout) #define LL long long #define ULL unsigned long long #define ff first #define ss second #define pb push_back #define INF 2e16 #define PI acos(-1.0) #define mk make_pair #define pii pair<int,...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
292
#include <iostream> using namespace std; int main() { string S, A; cin >> S; A = "No"; if (S == "AAA") { A = "Yes"; } if (S == "BBB") { A = "Yes"; } cout << A << endl; }
#include <iostream> using namespace std; int main() { string S, A; cin >> S; A = "Yes"; if (S == "AAA") { A = "No"; } if (S == "BBB") { A = "No"; } cout << A << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
65
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); char[] b = a.toCharArray(); int[] count = new int[2]; for (char i : b) { count[i - 'A']++; } if (count[0] == 0 || count[1] ...
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); char[] b = a.toCharArray(); int[] count = new int[2]; for (char i : b) { count[i - 'A']++; } if (count[0] == 0 || count[1] ...
[["-", 0, 57, 64, 1, 0, 492, 3, 4, 0, 147], ["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 62], ["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 0, 57, 75, 1, 0, 492, 3, 4, 0, 146], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 62], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
125
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define rept(i, a, b)...
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define rept(i, a, b)...
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
143
s = input() res = "Yes" if len(set(s)) < 3 else 'No' print(res)
s = input() res = "Yes" if len(set(s)) != 1 else 'No' print(res)
[["-", 0, 1, 0, 662, 12, 41, 0, 666, 667, 18], ["-", 0, 1, 0, 662, 12, 41, 0, 666, 0, 612], ["+", 0, 1, 0, 662, 12, 41, 0, 666, 667, 79], ["+", 0, 1, 0, 662, 12, 41, 0, 666, 0, 612]]
5
28
#include <bits/stdc++.h> using namespace std; #define forr(x, n) for (int x = 0; x < n; ++x) #define pr pair<int, int> #define ll long long int const int mod = 1e9 + 7; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); string s; cin >> s; int a = 0, b = 0; forr(i, s.length()) {...
#include <bits/stdc++.h> using namespace std; #define forr(x, n) for (int x = 0; x < n; ++x) #define pr pair<int, int> #define ll long long int const int mod = 1e9 + 7; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); string s; cin >> s; int a = 0, b = 0; forr(i, s.length()) {...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
129
#include <bits/stdc++.h> using namespace std; #define X first #define Y second #define pb push_back #define mp make_pair #define all(a) a.begin(), a.end() #define rep(i, st, n) for (int i = (st); i < (n); ++i) #define repinv(i, st, n) for (int i = ((n)-1); i >= (st); --i) #define MEM(a, b) memset(a, b, sizeof(a)); #...
#include <bits/stdc++.h> using namespace std; #define X first #define Y second #define pb push_back #define mp make_pair #define all(a) a.begin(), a.end() #define rep(i, st, n) for (int i = (st); i < (n); ++i) #define repinv(i, st, n) for (int i = ((n)-1); i >= (st); --i) #define MEM(a, b) memset(a, b, sizeof(a)); #...
[["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
497
#include <bits/stdc++.h> using namespace std; using lint = long; using ll = long long; #define rep(i, n) for (lint(i) = 0; (i) < (lint)(n); (i)++) #define repInRange(i, start, end) for (lint(i) = (start); (i) < (end); ++(i)) using lpair = pair<lint, lint>; using Vecint = vector<lint>; using Llist = list<lint>; ll pow(...
#include <bits/stdc++.h> using namespace std; using lint = long; using ll = long long; #define rep(i, n) for (lint(i) = 0; (i) < (lint)(n); (i)++) #define repInRange(i, start, end) for (lint(i) = (start); (i) < (end); ++(i)) using lpair = pair<lint, lint>; using Vecint = vector<lint>; using Llist = list<lint>; ll pow(...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
240
n = list(input()) s = 'S' ans = 'NO' for i in range(3): s = n[i] if i <= 1: if s != n[i+1]: ans = 'YES' print(ans)
n = list(input()) s = 'S' ans = 'No' for i in range(3): s = n[i] if i <= 1: if s != n[i+1]: ans = 'Yes' print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
56
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String s = sc.next(); if (s.equals("AAA") && s.equals("BBB")) { System.out.println("No"); } else { System.out.println("Yes"); } } }
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String s = sc.next(); if (s.equals("AAA") || s.equals("BBB")) { System.out.println("No"); } else { System.out.println("Yes"); } } }
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106]]
3
92
S = input().rstrip() if 'AB' in S or 'BA' in S: print('YES') else: print('NO')
S = input().rstrip() if 'AB' in S or 'BA' in S: print('Yes') else: print('No')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
36
s = input() flag = 0 print(s) for i in range(3): for j in range(3): if s[i] != s[j]: flag =1 if flag ==1 : print("Yes") else: print("No")
s = input() flag = 0 for i in range(3): for j in range(3): if s[i] != s[j]: flag =1 if flag ==1 : print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
61