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
print('NYoe s'[len(set(input().split()))==2::2])
print('NYoe s'[len(set(input()))==2::2])
[["-", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
26
S=input() list(S) if S[0]==S[1]==s[2]: print('No') else: print('Yes')
S=input() list(S) if S[0]==S[1] and S[1]==S[2]: print('No') else: print('Yes')
[["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 51, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 0, 70], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 206, 612], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 0, 73], ["-", 0, 656, 0, 57, 15, 666, 0, 206, 51, 22]]
5
39
s = input() if s[0]==s[1] and S[0]==s[2]: print('No') else: print('Yes')
s = input() if s[0]==s[1] and s[0]==s[2]: print('No') else: print('Yes')
[["-", 0, 57, 15, 679, 12, 666, 0, 206, 51, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 51, 22]]
5
40
#include <bits/stdc++.h> using namespace std; int main() { string A; if (A == "AAA" || A == "BBB") { cout << "No"; } else { cout << "Yes"; } }
#include <bits/stdc++.h> using namespace std; int main() { string A; cin >> A; if (A == "AAA" || A == "BBB") { cout << "No"; } else { cout << "Yes"; } }
[["+", 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
46
#pragma region Macros #include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define REPR(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, n, m) for (int i = (m), i##_len = (n); i < i##_len; ++i) #define EACH(i, v) for (const auto &i : v) #define ALL(x) (x).b...
#pragma region Macros #include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define REPR(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, n, m) for (int i = (m), i##_len = (n); i < i##_len; ++i) #define EACH(i, v) for (const auto &i : v) #define ALL(x) (x).b...
[["-", 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
266
#include <bits/stdc++.h> using namespace std; typedef long double ld; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef pair<int, int> pi; const int INF = INT_MAX; const ld PI = 3.1415926535897932384626433; const ld E = 2.71828183; const int MOD = 1e9 + 7; vi bfs(vector<vi> adj, i...
#include <bits/stdc++.h> using namespace std; typedef long double ld; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef pair<int, int> pi; const int INF = INT_MAX; const ld PI = 3.1415926535897932384626433; const ld E = 2.71828183; const int MOD = 1e9 + 7; vi bfs(vector<vi> adj, i...
[["-", 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]]
1
665
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new java.util.Scanner(System.in); String s = scan.next(); if (!s.equals("AAA") || s.equals("BBB")) { System.out.println("Yes"); } else { System.out.println("No"); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new java.util.Scanner(System.in); String s = scan.next(); 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, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
96
#include <iostream> #include <string> using namespace std; int main() { string s; if (s[0] == s[1] && s[1] == s[2]) cout << "No" << endl; else cout << "Yes" << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (s[0] == s[1] && s[1] == s[2]) 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
59
s=list(input()) if (A not in s) or (B not in s): print("No") else: print("Yse")
s=list(input()) if ("A" not in s) or ("B" not in s): print("No") else: print("Yes")
[["+", 15, 679, 31, 23, 0, 666, 0, 557, 0, 654], ["+", 15, 679, 31, 23, 0, 666, 0, 557, 0, 655], ["+", 15, 679, 12, 23, 0, 666, 0, 557, 0, 654], ["+", 15, 679, 12, 23, 0, 666, 0, 557, 0, 655], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
37
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vector<int>>; using vl = vector<ll>; using vvl = vector<vector<ll>>; #define all(x) x.begin(), x.end() #define rep(i, j, n) for (int i = j; i < (int)(n); i++) #define _GLIBCXX_DEBUG #define MOD 1000000007 temp...
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vector<int>>; using vl = vector<ll>; using vvl = vector<vector<ll>>; #define all(x) x.begin(), x.end() #define rep(i, j, n) for (int i = j; i < (int)(n); i++) #define _GLIBCXX_DEBUG #define MOD 1000000007 temp...
[["+", 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
192
import sys str=input() if str == "AAA" or str == "BBB": print ("NO") else: print ("YES")
import sys str=input() if str == "AAA" or str == "BBB": 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
34
puts gets.split("").uniq.size == 1 ? :No : :Yes
puts gets.chomp.split("").uniq.size == 1 ? :No : :Yes
[["+", 31, 652, 486, 652, 486, 652, 486, 652, 735, 22], ["+", 15, 738, 31, 652, 486, 652, 486, 652, 17, 131]]
4
18
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // int h = sc.nextInt(); String s = sc.next(); sc.close(); System.out.println(s.equals("BBB") || s.equals("AAA") ? "Yes" : "No"); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // int h = sc.nextInt(); String s = sc.next(); sc.close(); System.out.println(s.equals("BBB") || s.equals("AAA") ? "No" : "Yes"); } }
[["-", 0, 492, 3, 4, 0, 510, 64, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 510, 64, 5, 0, 491], ["-", 0, 492, 3, 4, 0, 510, 75, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 510, 75, 5, 0, 491]]
3
84
#include <algorithm> #include <cmath> #include <cstdlib> #include <cstring> #include <iostream> #include <numeric> #include <queue> #include <string> #include <vector> #define myfor(i, N) for (i = 0; i < N; i++) #define myforFL(i, f, l) for (i = f; i < l; i++) #define myforInv(i, N) for (i = N; i >= 0; i--) #define myf...
#include <algorithm> #include <cmath> #include <cstdlib> #include <cstring> #include <iostream> #include <numeric> #include <queue> #include <string> #include <vector> #define myfor(i, N) for (i = 0; i < N; i++) #define myforFL(i, f, l) for (i = f; i < l; i++) #define myforInv(i, N) for (i = N; i >= 0; i--) #define myf...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
184
#include <bits/stdc++.h> using namespace std; int main() { string S; if (S[0] == S[1] && S[0] == S[2]) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S[0] == S[1] && S[0] == S[2]) { cout << "No" << endl; } else { cout << "Yes" << 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
58
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, 15, 738, 17, 98], ["+", 0, 652, 3, 4, 0, 754, 15, 738, 17, 106]]
4
29
#include <bits/stdc++.h> using namespace std; int main() { string s; string a = "Yes"; cin >> s; for (int i = 0; i < 2; i++) { if (s.at(i) == s.at(i + 1)) { a = "No"; } } cout << a << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; string a = "No"; cin >> s; for (int i = 0; i < 2; i++) { if (s.at(i) != s.at(i + 1)) { a = "Yes"; } } cout << a << endl; }
[["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
74
#include <bits/stdc++.h> using namespace std; #define lli long long int int main() { lli n, i, j, flag = 0; cin >> n; string s; cin >> s; for (i = 0; i < s.size() - 1; i++) { if (s[i] != s[i + 1]) { flag = 1; break; } } if (flag == 0) cout << "No" << '\n'; else cout << "Yes" ...
#include <bits/stdc++.h> using namespace std; #define lli long long int int main() { lli n, i, j, flag = 0; string s; cin >> s; for (i = 0; i < s.size() - 1; i++) { if (s[i] != s[i + 1]) { flag = 1; break; } } if (flag == 0) cout << "No" << '\n'; else cout << "Yes" << '\n'; ...
[["-", 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
110
#include <stdio.h> #include <string.h> #define ARRAY_SIZE 5 int main() { char inputN[ARRAY_SIZE]; scanf("%s", inputN); if (strcmp(inputN, "AAA") == 0 || strcmp(inputN, "BBB")) { printf("No \n"); } else { printf("Yes \n"); } return 0; }
#include <stdio.h> #include <string.h> #define ARRAY_SIZE 5 int main() { char inputN[ARRAY_SIZE]; scanf("%s", inputN); if (strcmp(inputN, "AAA") == 0 || strcmp(inputN, "BBB") == 0) { printf("No \n"); } else { printf("Yes \n"); } return 0; }
[["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13]]
0
74
S=list(input()) if S[0]==S[2] and S[0]!=S[1]: print("Yes") else: print("No")
S=list(input()) if S[0]==S[2] and S[0]==S[1]: print("No") else: print("Yes")
[["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 79], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 60], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
43
#include <bits/stdc++.h> #define long long long int using namespace std; // @author: pashka int main() { ios::sync_with_stdio(false); string s; cin >> s; if (s[0] == s[1] || s[0] == s[2] || s[1] == s[2]) { cout << "Yes"; } else { cout << "No"; } return 0; }
#include <bits/stdc++.h> #define long long long int using namespace std; // @author: pashka int main() { ios::sync_with_stdio(false); string s; cin >> s; if (s[0] != s[1] || s[0] != s[2] || s[1] != s[2]) { cout << "Yes"; } else { cout << "No"; } return 0; }
[["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 60], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 79], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 60], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 79], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79]]
1
82
#include <bits/stdc++.h> using namespace std; typedef long long ll; //マクロ // forループ関係 //引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか // Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for...
#include <bits/stdc++.h> using namespace std; typedef long long ll; //マクロ // forループ関係 //引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか // Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for...
[["+", 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
152
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; bool k = true; for (int i = 0; i < 3; i++) { if (s.at(i) == 'A') { continue; } else if (s.at(1) == 'B') { break; } else if (s.at(i) == 'B') { k = false; break; } else { } } for (int i ...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; bool k = true; for (int i = 0; i < 3; i++) { if (s.at(i) == 'A') { continue; } else if (s.at(1) == 'B') { break; } else if (s.at(i) == 'B') { k = false; break; } else { } } for (int i ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
203
#include <bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; sort(s.begin(), s.end()); if (s[0] == s[2]) cout << "NO"; else cout << "YES"; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; sort(s.begin(), s.end()); if (s[0] == s[2]) 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
63
S = list(input()) a = S.count("A") b = S.count("B") if a == 3 or b == 3: print("Yes") else: print("No")
S = list(input()) a = S.count("A") b = S.count("B") if a == 3 or b == 3: 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
51
attrs = Array.new while line = $stdin.gets attrs << line.chomp.split end S = attrs[0][0] if S == 'AAA' || S == 'BBB' then puts 'No' else puts 'Yse' end
attrs = Array.new while line = $stdin.gets attrs << line.chomp.split end S = attrs[0][0] if S == 'AAA' || S == 'BBB' then puts 'No' else puts 'Yes' end
[["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]]
4
51
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; n > i; ++i) using namespace std; using ll = int64_t; using pii = pair<int, int>; using vi = vector<int>; using vis = vector<string>; using vvi = vector<vi>; // pとqの最大公約数 int gcd(int p, int q) { if (p % q == 0) return q; return gcd(q, p % q); } int main(...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; n > i; ++i) using namespace std; using ll = int64_t; using pii = pair<int, int>; using vi = vector<int>; using vis = vector<string>; using vvi = vector<vi>; // pとqの最大公約数 int gcd(int p, int q) { if (p % q == 0) return q; return gcd(q, p % q); } int main(...
[["-", 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
133
S = input() pritn("Yes" if "AB" in S or "BA" in S else "No")
S = input() print("Yes" if "AB" in S or "BA" in S else "No")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22]]
5
27
s=input() if s=='AAA' or s=='BBB': print ('No') else: ('Yes')
s=input() if s=='AAA' or s=='BBB': print ('No') else: print('Yes')
[["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22]]
5
31
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) #define pai 3.14159265358979323846 const int INF = 1001001001; typedef long long ll; int A[3][3], N; bool punched[3][3]; bool ok[3][3]; int a[3][3], n; using Graph = vector<vector<int>>; vec...
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) #define pai 3.14159265358979323846 const int INF = 1001001001; typedef long long ll; int A[3][3], N; bool punched[3][3]; bool ok[3][3]; int a[3][3], n; using Graph = vector<vector<int>>; vec...
[["+", 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
151
S=input().split() if S.count('A') == 3 or S.count('B') == 3: print('No') else: print('Yes')
S=input() if S.count('A') == 3 or S.count('B') == 3: print('No') else: print('Yes')
[["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
46
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { string s; int a(0), b(0); cin >> s; for (int i = 0; i < 3; i++) { if (s.at(i) == 'A') { a = 1; // cout <<s.at(i);; } if (s.at(i) == 'B') { b = 1; } } if (a == 1 && b == 1) { cout << "Yes";...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { string s; int a(0), b(0); cin >> s; for (int i = 0; i < 3; i++) { if (s.at(i) == 'A') { a = 1; // cout <<s.at(i);; } if (s.at(i) == 'B') { b = 1; } } if (a == 1 && b == 1) { cout << "Yes";...
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
114
# -*- coding: utf-8 -*- # 標準入力の取得 S = input() # 求解処理 result = str() if S == "AAA" or S == "BBB": result = "Yes" else: result = "No" # 結果出力 print(result)
# -*- coding: utf-8 -*- # 標準入力の取得 S = input() # 求解処理 result = str() if S == "AAA" or S == "BBB": result = "No" else: result = "Yes" # 結果出力 print(result)
[["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
43
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using pii = pair<int, int>; int main() { string s; if (s == "AAA" || s == "BBB") cout << "No" << endl; else cout << "Yes" << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using pii = pair<int, int>; int main() { string s; cin >> s; if (s == "AAA" || s == "BBB") cout << "No" << endl; else cout << "Yes" << 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
70
s = gets.chomp.split('').map(&:to_s) if s.uniq.count == 1 puts 'Yes' else puts 'No' end
s = gets.chomp.split('').map(&:to_s) if s.uniq.count == 1 puts 'No' else puts 'Yes' end
[["-", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]]
4
35
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) bool isOK(int a[], int index, int key) { if (a[...
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) bool isOK(int a[], int index, int key) { if (a[...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
198
#include <bits/stdc++.h> using namespace std; int main() { char str[3]; cin >> str; if ((str[0] == 'A' && str[1] == 'A' && str[2] == 'A') || (str[0] == 'B' && str[1] == 'B' && str[2] == 'B')) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { char str[3]; cin >> str; if ((str[0] == 'A' && str[1] == 'A' && str[2] == 'A') || (str[0] == 'B' && str[1] == 'B' && str[2] == 'B')) cout << "No" << endl; else cout << "Yes" << 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
99
S = input() print('Yes' if S != 'AAA' or S != 'BBB' else 'No')
S = input() print('Yes' if S != 'AAA' and S != 'BBB' else 'No')
[["-", 0, 652, 3, 4, 0, 41, 0, 679, 17, 354], ["+", 0, 652, 3, 4, 0, 41, 0, 679, 17, 355]]
5
27
#include <stdio.h> int main(void) { char s[4]; scanf("%s", s); if (s[0] == s[1] == s[2]) { printf("No"); } else { printf("Yes"); } return 0; }
#include <stdio.h> int main(void) { char s[3]; scanf("%s", s); if (s[0] == s[1] && s[0] == s[2]) { printf("No"); } else { printf("Yes"); } return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 15, 23, 0, 16, 31, 16, 12, 69, 0, 73], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 15, 23, 0, 16, 12, 16, 31, 69, 28, 22], ["+", 15, 23, 0, 16, 12, 16, 31, 69, 0, 70], ["+", 15, 23, 0, 16, 12, 16, 31, 69, 71, 13]]
0
63
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[0] == s[1] == s[2]) { cout << "No"; } else { cout << "Yes"; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[0] == s[1] && s[1] == s[2]) { cout << "No"; } else { cout << "Yes"; } }
[["+", 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
53
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String S = in.nextLine(); if ((S.charAt(1) == S.charAt(2)) && (S.charAt(2) == S.charAt(3))) { System.out.println("No"); } else { System.out.println("Yes"); } }...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String S = in.nextLine(); if ((S.charAt(0) == S.charAt(1)) && (S.charAt(2) == S.charAt(1))) { System.out.println("No"); } else { System.out.println("Yes"); } }...
[["-", 31, 23, 0, 16, 31, 492, 3, 4, 0, 499], ["+", 31, 23, 0, 16, 31, 492, 3, 4, 0, 499], ["-", 31, 23, 0, 16, 12, 492, 3, 4, 0, 499], ["+", 31, 23, 0, 16, 12, 492, 3, 4, 0, 499], ["-", 12, 23, 0, 16, 12, 492, 3, 4, 0, 499], ["+", 12, 23, 0, 16, 12, 492, 3, 4, 0, 499]]
3
105
n=input() cnta=0 cntb=0 for e in n: if e=="A": cnta+=1 elif e=="B": cntb+=1 if cnta==3 or cntb==3: print('Yes') else: print('Yes')
n=input() cnta=0 cntb=0 for e in n: if e=="A": cnta+=1 elif e=="B": cntb+=1 if cnta==0 or cntb==0: print('No') else: print('Yes')
[["-", 0, 656, 0, 57, 15, 679, 31, 666, 0, 612], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 612], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
59
S=input() if S[0:1]==S[1:2]==S[2:3]: print('Yes') else: print('No')
S=input() if S[0:1]==S[1:2]==S[2:3]: 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
41
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef tree<ii, null_type, less<ii>, rb_tree_tag, tree_order_statistics_node_update> indexed_set; int main() { cin.tie(0); cout.tie(...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef tree<ii, null_type, less<ii>, rb_tree_tag, tree_order_statistics_node_update> indexed_set; int main() { cin.tie(0); cout.tie(...
[["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 106], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 31, 22], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 17, 60], ["+", 0, 41, 15, 16, 12, 16, 12, 5, 0, 62], ["+", 0, 41, 15, 16, 12, 16, 12, 5, 0, 6]]
1
125
#include "bits/stdc++.h" #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { char s[3]; cin >> s; if (s[0] != s[1] or s[1] != s[2] or s[2] != s[0]) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
#include "bits/stdc++.h" #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { char s[3]; cin >> s; if (s[0] != s[1] or s[1] != s[2] or s[2] != s[0]) { 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
104
s=str(input()) s=list(set(s)) if len(s)!=3: print("Yes") else: print("No")
s=str(input()) s=list(set(s)) if len(s)!=1: print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]]
5
39
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s != "AAA" and s != "BBB") { cout << "Yes" << endl; } else { cout << "Yes" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s != "AAA" and s != "BBB") { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
54
#include <bits/stdc++.h> using namespace std; using ll = long long; using vb = vector<bool>; using vvb = vector<vb>; using vd = vector<double>; using vvd = vector<vd>; using vi = vector<int>; using vvi = vector<vi>; using vl = vector<ll>; using vvl = vector<vl>; using pii = pair<int, int>; using pll = pair<ll, ll>; usi...
#include <bits/stdc++.h> using namespace std; using ll = long long; using vb = vector<bool>; using vvb = vector<vb>; using vd = vector<double>; using vvd = vector<vd>; using vi = vector<int>; using vvi = vector<vi>; using vl = vector<ll>; using vvl = vector<vl>; using pii = pair<int, int>; using pll = pair<ll, ll>; usi...
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22]]
1
784
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S == "AAA" || S == "BBB") cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S == "AAA" || S == "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
53
s = gets puts s == "AAA" || s == "BBB" ? "No" : "Yes"
s = gets puts s == "AAA\n" || s == "BBB\n" ? "No" : "Yes"
[["+", 0, 754, 15, 738, 31, 738, 12, 557, 0, 44], ["+", 0, 754, 15, 738, 12, 738, 12, 557, 0, 44]]
4
23
// Author - Sumit #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #pragma GCC optimize("O3") #pragma GCC target("avx") #define ll long long #define int ll #define ps push #define pb emplace_back #define INF 1LL <<...
// Author - Sumit #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #pragma GCC optimize("O3") #pragma GCC target("avx") #define ll long long #define int ll #define ps push #define pb emplace_back #define INF 1LL <<...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
761
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s == "AAA" or "BBB") cout << "No" << endl; else cout << "Yes" << endl; }
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s == "AAA" or s == "BBB") cout << "No" << endl; else cout << "Yes" << endl; }
[["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
48
s = input() a = s.count('A') b = s.count('B') if(a==3): print('Yes') elif(b==3): print('Yes') else: print('No')
s = input() a = s.count('A') b = s.count('B') if(a==3): print('No') elif(b==3): 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
59
#include <bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; if ((s[0] == s[1]) && (s[1] == s[2])) { cout << "Yes\n"; } else { cout << "No\n"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; if ((s[0] == s[1]) && (s[1] == s[2])) { cout << "No\n"; } else { cout << "Yes\n"; } 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
68
import sys input = sys.stdin.readline S = input().strip() print('No') if S == 'AAA' or 'BBB' else print('Yes')
import sys input = sys.stdin.readline S = input().strip() print('No') if S == 'AAA' or S == 'BBB' else print('Yes')
[["+", 0, 1, 0, 41, 0, 679, 12, 666, 0, 22], ["+", 0, 1, 0, 41, 0, 679, 12, 666, 667, 60]]
5
41
a = list(input().count("A")) if a == 3: print("No") elif a == 0: print("No") else: print("Yes")
a = input().count("A") if a == 3: print("No") elif a == 0: print("No") else: print("Yes")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
45
#include <bits/stdc++.h> using namespace std; #define rep(i, s, e) for (int i = s; i < e; ++i) #define sort_(a) stable_sort(a.begin(), a.end()) #define rsort(a) stable_sort(a.rbegin(), a.rend()) #define sum(a) accumulate(a.begin(), a.end(), 0LL) #define join(a, d) ...
#include <bits/stdc++.h> using namespace std; #define rep(i, s, e) for (int i = s; i < e; ++i) #define sort_(a) stable_sort(a.begin(), a.end()) #define rsort(a) stable_sort(a.rbegin(), a.rend()) #define sum(a) accumulate(a.begin(), a.end(), 0LL) #define join(a, d) ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
160
#include <bits/stdc++.h> #define rep(i, s, n) for (int i = s; i < n; i++) #define pb push_back #define all(x) (x).begin(), (x).end() #define int long long using namespace std; using P = pair<int, int>; using Graph = vector<vector<int>>; using ll = long long; ll gcd(ll A, ll B) { if (B == 0) return A; return gc...
#include <bits/stdc++.h> #define rep(i, s, n) for (int i = s; i < n; i++) #define pb push_back #define all(x) (x).begin(), (x).end() #define int long long using namespace std; using P = pair<int, int>; using Graph = vector<vector<int>>; using ll = long long; ll gcd(ll A, ll B) { if (B == 0) return A; return gc...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
539
s=input() a=0 b=0 for i in s: if i=="A": a+=1 elif i=="B": b+=1 if (a+b)!=3 and (a==0 or b==0): print("No") else: print("Yes")
s=input() a=0 b=0 for i in s: if i=="A": a+=1 elif i=="B": b+=1 if (a+b)!=3 or (a==0 or b==0): print("No") else: print("Yes")
[["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354]]
5
69
#include <bits/stdc++.h> #include <vector> using namespace std; int main() { char a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << "Yes"; else cout << "No"; }
#include <bits/stdc++.h> #include <vector> using namespace std; int main() { char a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << "No"; else cout << "Yes"; }
[["-", 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
52
#include <bits/stdc++.h> using namespace std; int main() { string S = 0; cin >> S; if (S[0] == S[1] && S[1] == S[2]) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S[0] == S[1] && S[1] == S[2]) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
64
S = input() a = list(set(S)) print("Yes" if len(a) != 1 else "NO")
S = input() a = list(set(S)) print("Yes" if len(a) != 1 else "No")
[["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]]
5
31
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < 2; i++) { if (s[i] != s[i + 1]) { cout << "No" << endl; return 0; } } cout << "Yes" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < 2; i++) { if (s[i] != s[i + 1]) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
70
#include <bits/stdc++.h> using namespace std; //#define int long long #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i < n; ++i) #define exrep(i, a, b) for (ll i = a; i < b; i++) #define out(x) cout << x <<...
#include <bits/stdc++.h> using namespace std; //#define int long long #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i < n; ++i) #define exrep(i, a, b) for (ll i = a; i < b; i++) #define out(x) cout << x <<...
[["-", 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
438
print('No' if len(set(input())) == 0 else 'Yes')
print('No' if len(set(input())) == 1 else 'Yes')
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612]]
5
22
from sys import stdin S = list(stdin.readline().rstrip()) print('No' if S == 'AAA' or S == 'BBB' else 'Yes')
from sys import stdin S = stdin.readline().rstrip() print('No' if S == 'AAA' or S == 'BBB' else 'Yes')
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
40
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; string ans = "Yes"; for (int i = 1; i < 3; i++) { if (s[i] != s[i - 1]) ans = "No"; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; string ans = "No"; for (int i = 1; i < 3; i++) { if (s[i] != s[i - 1]) ans = "Yes"; } cout << ans << endl; }
[["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6]]
1
68
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (ll i = 0; i < (n); ++i) int main() { string a; std::cin >> a; if (a[0] == a[1] == a[2]) std::cout << "No" << '\n'; else std::cout << "Yes" << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (ll i = 0; i < (n); ++i) int main() { string a; std::cin >> a; if (a[0] == a[1] && a[1] == a[2]) std::cout << "No" << '\n'; else std::cout << "Yes" << '\n'; return 0; } // #include <bits/stdc++.h> // using name...
[["+", 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
80
S = input() print('No' if S == 'AAA' or 'BBB' else 'Yes')
S = input() print('No' if S == 'AAA' or S== 'BBB' else 'Yes')
[["+", 3, 4, 0, 41, 0, 679, 12, 666, 0, 22], ["+", 3, 4, 0, 41, 0, 679, 12, 666, 667, 60]]
5
25
import java.lang.reflect.Array; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); if (s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2)) { System.out.println("No"); } else { System.out.pr...
import java.lang.reflect.Array; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); if (s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) { System.out.println("No"); } else { System.out.pr...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]]
3
110
#include <bits/stdc++.h> 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 <bits/stdc++.h> 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
58
#include <bits/stdc++.h> using namespace std; #define ll long long int bool vis[1000][1000]; int n, m; int main() { string st; set<char> s; cin >> st; for (int i = 0; i < 3; i++) s.insert(st[i]); cout << (s.size() == 2 ? "YES" : "NO"); }
#include <bits/stdc++.h> using namespace std; #define ll long long int bool vis[1000][1000]; int n, m; int main() { string st; set<char> s; cin >> st; for (int i = 0; i < 3; i++) s.insert(st[i]); cout << (s.size() == 2 ? "Yes" : "No"); }
[["-", 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
86
#include <bits/stdc++.h> using namespace std; int main() { string S; for (int i = 0; i < 1; i++) { cin >> S; if (S[0] == S[1] && S[1] == S[2]) cout << "NO" << endl; else cout << "YES" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string S; for (int i = 0; i < 1; i++) { cin >> S; if (S[0] == S[1] && S[1] == S[2]) 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
77
# -*- coding: utf-8 -*- S = input() a = "AAA" b = "BBB" if S == a: print("No") elif S == b: print("NO") else: print("Yes")
# -*- coding: utf-8 -*- S = input() a = "AAA" b = "BBB" if S == a: print("No") elif S == b: 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
46
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; cout << (s.find('A') + s.find('B') > 0 ? "Yes" : "No") << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; cout << (int(s.find('A')) + int(s.find('B')) > 0 ? "Yes" : "No") << "\n"; }
[["+", 0, 41, 15, 16, 31, 16, 31, 2, 63, 40], ["+", 15, 16, 31, 16, 31, 2, 3, 4, 0, 24], ["+", 31, 2, 3, 4, 0, 2, 3, 4, 0, 25], ["+", 0, 41, 15, 16, 31, 16, 12, 2, 63, 40], ["+", 15, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 12, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
55
S = input() print("Yes" if S.count("A")==2 and S.count("B")==2 else "No")
S = input() print("Yes" if S.count("A")==2 or S.count("B")==2 else "No")
[["-", 0, 652, 3, 4, 0, 41, 0, 679, 17, 355], ["+", 0, 652, 3, 4, 0, 41, 0, 679, 17, 354]]
5
37
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main() { string s; cin >> s; if (s[0] == s[1] == s[2]) cout << "No" << endl; else cout << "Yes" << endl; return 0; }
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main() { string s; cin >> s; if (s[0] == s[1] && s[1] == s[2]) cout << "No" << endl; else cout << "Yes" << endl; return 0; }
[["+", 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
66
#include "bits/stdc++.h" using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define REP(i, n) for (int i = 1; i <= (int)(n); i++) #define all(v) v.begin(), v.end() using ll = long long; template <typename T> bool chmax(T &a, const T &b) { if (a < b) { a = b; // aをbで更新 return true; }...
#include "bits/stdc++.h" using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define REP(i, n) for (int i = 1; i <= (int)(n); i++) #define all(v) v.begin(), v.end() using ll = long long; template <typename T> bool chmax(T &a, const T &b) { if (a < b) { a = b; // aをbで更新 return true; }...
[["+", 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
189
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { FastScanner sc = new FastScanner(System.in); String s = sc.next(); System.out.println((s.equals("AAA") || s.equals("BBB")) ? "Yes" : "No"); } } class FastScanner { private BufferedRead...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { FastScanner sc = new FastScanner(System.in); String s = sc.next(); System.out.println((s.equals("AAA") || s.equals("BBB")) ? "No" : "Yes"); } } class FastScanner { private BufferedRead...
[["-", 0, 492, 3, 4, 0, 510, 64, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 510, 64, 5, 0, 491], ["-", 0, 492, 3, 4, 0, 510, 75, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 510, 75, 5, 0, 491]]
3
389
#include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; void YesNo(bool x) { cout << (x ? "Yes" : "No") << endl; } int main() { string s; cin >> s; YesNo(s == "AAA" || s == "BBB"); return 0; }
#include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; void YesNo(bool x) { cout << (x ? "Yes" : "No") << endl; } int main() { string s; cin >> s; YesNo(!(s == "AAA" || s == "BBB")); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 91, 17, 111], ["+", 0, 2, 3, 4, 0, 91, 28, 23, 0, 24], ["+", 0, 2, 3, 4, 0, 91, 28, 23, 0, 25]]
1
70
#include <bits/stdc++.h> #define repp(i, l, r) for (long long i = (l); i < (r); i++) #define rep(i, n) for (long long i = 0; i < (n); ++i) #define per(i, n) for (long long i = (n); i >= 0; --i) const int INF = 2147483647; // int max const long long int MOD = 1000000007; using namespace std; using ll = long long; using ...
#include <bits/stdc++.h> #define repp(i, l, r) for (long long i = (l); i < (r); i++) #define rep(i, n) for (long long i = 0; i < (n); ++i) #define per(i, n) for (long long i = (n); i >= 0; --i) const int INF = 2147483647; // int max const long long int MOD = 1000000007; using namespace std; using ll = long long; using ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["-", 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
200
#include <bits/stdc++.h> #include <stdio.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; typedef long double ld; typedef set<int>::iterator sit; typedef map<int, int>::iterator mit; typedef vector<int>::iterator vit; const int INF = 1e9 + 7; co...
#include <bits/stdc++.h> #include <stdio.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; typedef long double ld; typedef set<int>::iterator sit; typedef map<int, int>::iterator mit; typedef vector<int>::iterator vit; const int INF = 1e9 + 7; co...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
376
#include <bits/stdc++.h> using namespace std; int main() { char str[3]; cin >> str[0]; int flag = 1; for (int i = 1; i < 3; ++i) { cin >> str[i]; if (str[i] != str[0]) { flag = 0; break; } } if (flag) cout << "NO" << endl; else cout << "YES" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char str[3]; cin >> str[0]; int flag = 1; for (int i = 1; i < 3; ++i) { cin >> str[i]; if (str[i] != str[0]) { flag = 0; break; } } if (flag) 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
97
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll zero = 0; const ll INF = 10000000000000000; // 10^16 const ll MOD = 1000000007; // 10^9+7 const ll MOD2 = 998244353; int main(void) { string S; cin >> S; if (S == "AAA" || S == "BBB") printf("Yes"); else printf("No"); }...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll zero = 0; const ll INF = 10000000000000000; // 10^16 const ll MOD = 1000000007; // 10^9+7 const ll MOD2 = 998244353; int main(void) { string S; cin >> S; if (S == "AAA" || S == "BBB") printf("No"); else printf("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
80
#include <iostream> #include <string> using namespace std; int main() { string s; if (s.at(0) == s.at(1) && s.at(1) == s.at(2)) cout << "No" << endl; else cout << "Yes" << endl; }
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (s.at(0) == s.at(1) && s.at(1) == s.at(2)) cout << "No" << endl; else cout << "Yes" << 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
64
#include <iostream> #include <string> int main() { std::string str; std::cin >> str; if (str == "AAA" || str == "BBB") { std::cout << "NO"; } else { std::cout << "YES"; } }
#include <iostream> #include <string> int main() { std::string str; std::cin >> str; if (str == "AAA" || str == "BBB") { std::cout << "No"; } else { std::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
56
S=[x for x in input()] s=len(list(set(S))) if s==3: print("No") else: print("Yes")
S=[x for x in input()] s=len(list(set(S))) if s==1: print("No") else: print("Yes")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]]
5
42
#include <bits/stdc++.h> using namespace std; 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; int main() { string S; cin >> S; if (S != "AAA" && S != "BBB") { cout << "Yes" << endl; } else cout << "No" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
52
#include <algorithm> #include <iostream> using namespace std; int main() { string s; cin >> s; sort(s.begin(), s.end()); if (s[0] != s[2]) cout << "Yes\n"; else cout << "N0\n"; return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { string s; cin >> s; sort(s.begin(), s.end()); if (s[0] != s[2]) cout << "Yes\n"; else cout << "No\n"; return 0; }
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
66
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <set> #include <utility> #include <vector> #define fir first #define sec second #define sz(s) (s).size() #define pb push_back #define get(n) scanf("%d", &n); #define gets(s) ...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <set> #include <utility> #include <vector> #define fir first #define sec second #define sz(s) (s).size() #define pb push_back #define get(n) scanf("%d", &n); #define gets(s) ...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 354], ["+", 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
2,217
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define PI 3.14159265358979323846 constexpr int INF = numeric_limits<int>::max() / 2; constexpr long long INFL = numeric_limits<long long>::max() / 2; constexpr int MOD = 1000000007; using Graph = vector<vector<int>>; in...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define PI 3.14159265358979323846 constexpr int INF = numeric_limits<int>::max() / 2; constexpr long long INFL = numeric_limits<long long>::max() / 2; constexpr int MOD = 1000000007; using Graph = vector<vector<int>>; in...
[["-", 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
132
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (s == "AAA" || s == "BBB") cout << "Yes" << endl; else cout << "No" << endl; }
#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; }
[["-", 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
52
S = input()#.strip() if S[0] == S[1] == S[2]: #and S[0] == S[2]: print("Yes") else: print("No") #print(S[0])
# coding: utf-8 # Your code here! S = input()#.strip() if S[0] == S[1] == S[2]: #and S[0] == S[2]: print("No") else: print("Yes") #print(S[0]
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
38
#include <bits/stdc++.h> using namespace std; #define inf INT_MAX #define INF LLONG_MAX #define ll long long #define ull unsigned long long #define M (int)(1e9 + 7) #define P pair<int, int> #define FOR(i, m, n) for (int i = (int)m; i < (int)n; i++) #define RFOR(i, m, n) for (int i = (int)m; i >= (int)n; i--) #define ...
#include <bits/stdc++.h> using namespace std; #define inf INT_MAX #define INF LLONG_MAX #define ll long long #define ull unsigned long long #define M (int)(1e9 + 7) #define P pair<int, int> #define FOR(i, m, n) for (int i = (int)m; i < (int)n; i++) #define RFOR(i, m, n) for (int i = (int)m; i >= (int)n; i--) #define ...
[["-", 31, 69, 341, 342, 0, 16, 12, 103, 0, 125], ["+", 31, 69, 341, 342, 0, 16, 12, 103, 0, 125]]
1
222
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[0] == s[1] && s[0] == s[3]) { cout << "No"; } else { cout << "Yes"; } return 0; }
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[0] == s[1] && s[0] == s[2]) { cout << "No"; } else { cout << "Yes"; } return 0; }
[["-", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13]]
1
61
fscanf(STDIN, "%s", $s); if(($s == 'AAA') || ($s == 'BBB')){ echo 'No'; }else{ echo 'Yes'; }
<?php fscanf(STDIN, "%s", $s); if(($s == 'AAA') || ($s == 'BBB')){ echo 'No'; }else{ echo 'Yes'; }
[["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 605]]
6
47
i = input() if i[-1]==i[-2] and i[-2]==i[-3]: print("Yes") else: print("No")
i = input() if i[-1]==i[-2] and i[-2]==i[-3]: 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
44
#include <bits/stdc++.h> using namespace std; #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define inf 1000...
#include <bits/stdc++.h> using namespace std; #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define inf 1000...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 44], ["+", 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, 44], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
73
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c[2] = {0}; for (int i = 0; i < 2; i++) { int co = s[i] - 'A'; c[co]++; } if (c[0] > 0 && c[1] > 0) cout << "Yes"; else cout << "No"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c[2] = {0}; for (int i = 0; i < 3; i++) { int co = s[i] - 'A'; c[co]++; } if (c[0] > 0 && c[1] > 0) cout << "Yes"; else cout << "No"; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
92
s=input() print("YNeos"[s=="AAA" or s=="BBB"])
s=input() print("YNeos"[s=="AAA" or s=="BBB"::2])
[["+", 0, 652, 3, 4, 0, 206, 206, 663, 0, 102], ["+", 0, 652, 3, 4, 0, 206, 206, 663, 0, 612]]
5
24