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
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int a = 0, b = 0; for (char ch : s) { if (ch == 'A') ++a; else ++b; } if (a && b) { cout << "YES\n"; } else { cout << "NO\n"; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int a = 0, b = 0; for (char ch : s) { if (ch == 'A') ++a; else ++b; } if (a && b) { cout << "Yes\n"; } else { cout << "No\n"; } }
[["-", 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
77
import sys input = sys.stdin.readline s = input() if s[0] == s[1] == s[2]: print("Yes") else: print("No")
import sys input = sys.stdin.readline s = input() if s[0] == s[1] == 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
44
#include <bits/stdc++.h> using namespace std; #define PB push_back #define MP make_pair #define F first #define S second #define M 1000000007 typedef long long ll; int main() { ios_base::sync_with_stdio(0); cin.tie(0); ll t, a[1000000], n, i, j, c, k, m, x, y; string s; cin >> s; n = s.length(); c = 0; ...
#include <bits/stdc++.h> using namespace std; #define PB push_back #define MP make_pair #define F first #define S second #define M 1000000007 typedef long long ll; int main() { ios_base::sync_with_stdio(0); cin.tie(0); ll t, a[1000000], n, i, j, c, k, m, x, y; string s; cin >> s; n = s.length(); c = 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
145
#include <bits/stdc++.h> int main() { std::string s; std::cin >> s; std::sort(s.begin(), s.end()); if (s[0] == s[2]) std::cout << "Yes" << '\n'; else std::cout << "No" << '\n'; }
#include <bits/stdc++.h> int main() { std::string s; std::cin >> s; std::sort(s.begin(), s.end()); if (s[0] == s[2]) std::cout << "No" << '\n'; else std::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
73
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; int cnt = 1; for (int i = 1; i < 3; i++) { cnt += (s[i] == s.front()); } cout << (cnt == 3 ? "Yes" : "No") << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; int cnt = 1; for (int i = 1; i < 3; i++) { cnt += (s[i] == s.front()); } cout << (cnt == 3 ? "No" : "Yes") << '\n'; return 0; }
[["-", 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
92
#include <iostream> #include <string> using namespace std; int main() { char a[3]; cin >> a; if (a[0] == a[1] && a[1] == a[2]) cout << "Yes"; else cout << "No"; return 0; }
#include <iostream> #include <string> using namespace std; int main() { char a[3]; cin >> a; if (a[0] == a[1] && a[1] == a[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
62
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; string ans = "Yes"; if ((s == "BBB") && (s == "AAA")) ans = "No"; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; string ans = "Yes"; if ((s == "BBB") || (s == "AAA")) ans = "No"; cout << ans << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]]
1
56
/*its_Rashid*/ #include <bits/stdc++.h> using namespace std; typedef double du; typedef string st; typedef long long ll; typedef long double ld; typedef long long int lli; #define vi vector<lli> #define loop(num) for (lli i = 0; i < num; i++) #define loop2(num) for (lli j = 0; j < num; j++) #define loopcin(num, ar) ...
/*its_Rashid*/ #include <bits/stdc++.h> using namespace std; typedef double du; typedef string st; typedef long long ll; typedef long double ld; typedef long long int lli; #define vi vector<lli> #define loop(num) for (lli i = 0; i < num; i++) #define loop2(num) for (lli j = 0; j < num; j++) #define loopcin(num, ar) ...
[["-", 0, 23, 0, 41, 15, 16, 31, 16, 17, 79], ["+", 0, 23, 0, 41, 15, 16, 31, 16, 17, 60], ["+", 0, 23, 0, 41, 15, 16, 12, 16, 31, 22], ["+", 0, 23, 0, 41, 15, 16, 12, 16, 17, 60]]
1
210
#include <bits/stdc++.h> using namespace std; #define fast \ ios::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define ll long ...
#include <bits/stdc++.h> using namespace std; #define fast \ ios::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define ll long ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 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
67
#define _USE_NATH_DEFINES #include <algorithm> #include <bitset> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <numer...
#define _USE_NATH_DEFINES #include <algorithm> #include <bitset> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <numer...
[["+", 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
233
#include <bits/stdc++.h> #define ll long long ll N = 1000000007; using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); string s; cin >> s; if (s == "AAA" | s == "BBB") cout << "NO\n"; else cout << "YES\n"; return 0; }
#include <bits/stdc++.h> #define ll long long ll N = 1000000007; using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); string s; cin >> s; if (s == "AAA" | s == "BBB") cout << "No\n"; else cout << "Yes\n"; 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
80
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int f = 0, fl = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'A') { f = 1; } else { if (s[i] == 'B') fl = 1; } } if (f == 1 && fl == 1) cout << "YES" << endl; else cout << "NO" << endl; }...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int f = 0, fl = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'A') { f = 1; } else { if (s[i] == 'B') fl = 1; } } if (f == 1 && fl == 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
106
a,b,c=input() print('Yes' if a==b==c else 'No')
a,b,c=input() print('No' if a==b==c else 'Yes')
[["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]]
5
25
import java.io.*; import java.lang.*; import java.math.*; import java.util.*; @SuppressWarnings("unchecked") public class Main implements Runnable { static BufferedReader in; static PrintWriter out; public static void main(String[] args) { new Thread(null, new Main(), "whatever", 1 << 29).start(); } /...
import java.io.*; import java.lang.*; import java.math.*; import java.util.*; @SuppressWarnings("unchecked") public class Main implements Runnable { static BufferedReader in; static PrintWriter out; public static void main(String[] args) { new Thread(null, new Main(), "whatever", 1 << 29).start(); } /...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
454
/// cREATED bY BERNARB.01 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s[0] == s[1] && s[1] == s[2]) cout << "Yes"; else cout << "No"; return 0; }
/// cREATED bY BERNARB.01 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s[0] == s[1] && s[1] == 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
72
#include <bits/stdc++.h> #define ll long long #define vi vector<int> #define vll vector<long long> #define si set<int> #define stk stack<int> #define que queue<int> #define pb push_back #define ff first #define ss second #define pii pair<int, int> #define pll pair<ll, ll> #define IOS ...
#include <bits/stdc++.h> #define ll long long #define vi vector<int> #define vll vector<long long> #define si set<int> #define stk stack<int> #define que queue<int> #define pb push_back #define ff first #define ss second #define pii pair<int, int> #define pll pair<ll, ll> #define IOS ...
[["-", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22], ["+", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22]]
1
110
#include <algorithm> #include <iostream> #include <math.h> using namespace std; bool allCharactersSame(string s) { int n = s.length(); for (int i = 1; i < n; i++) if (s[i] != s[0]) return false; return true; } int main() { string s; cin >> s; if (allCharactersSame(s) == true) { cout << "NO...
#include <algorithm> #include <iostream> #include <math.h> using namespace std; bool allCharactersSame(string s) { int n = s.length(); for (int i = 1; i < n; i++) if (s[i] != s[0]) return false; return true; } int main() { string s; cin >> s; if (allCharactersSame(s) == true) { cout << "No...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
105
#include <bits/stdc++.h> #define rep(var, cnt) for (int(var) = 0; (var) < (int)(cnt); ++(var)) #define Rep(var, init, cnt) for (int(var) = (init); (var) < (int)(cnt); ++(var)) #define REP(var, init, cnt) \ for (int(var) = (init); (var) <= (int)(cnt); ++(var)) #define...
#include <bits/stdc++.h> #define rep(var, cnt) for (int(var) = 0; (var) < (int)(cnt); ++(var)) #define Rep(var, init, cnt) for (int(var) = (init); (var) < (int)(cnt); ++(var)) #define REP(var, init, cnt) \ for (int(var) = (init); (var) <= (int)(cnt); ++(var)) #define...
[["-", 3, 4, 0, 16, 31, 23, 0, 16, 17, 60], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 17, 79], ["-", 3, 4, 0, 16, 12, 23, 0, 16, 17, 60], ["+", 3, 4, 0, 16, 12, 23, 0, 16, 17, 79]]
1
1,550
#include "bits/stdc++.h" #define REP(i, num) for (int i = 0; i < (num); ++i) #define LOOP(i) while (i--) #define ALL(c) c.begin(), c.end() #define PRINTALL(c) \ for (auto pitr = c.begin(); pitr != c.end(); ++pitr) { \ cout << *pitr;...
#include "bits/stdc++.h" #define REP(i, num) for (int i = 0; i < (num); ++i) #define LOOP(i) while (i--) #define ALL(c) c.begin(), c.end() #define PRINTALL(c) \ for (auto pitr = c.begin(); pitr != c.end(); ++pitr) { \ cout << *pitr;...
[["-", 31, 16, 31, 69, 341, 342, 0, 103, 0, 125], ["+", 31, 16, 31, 69, 341, 342, 0, 103, 0, 125], ["-", 12, 16, 31, 69, 341, 342, 0, 103, 0, 125], ["+", 12, 16, 31, 69, 341, 342, 0, 103, 0, 125]]
1
340
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; const int maxn = 1e6 + 5; const ll mod = 1e9 + 7; char s[maxn]; int main() { scanf("%s", s + 1); int flg = 0, flg2 = 0; for (int i = 1; i <= 3; i++) { if (s[i] == 'A') flg = 1; else flg2 = 1; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; const int maxn = 1e6 + 5; const ll mod = 1e9 + 7; char s[maxn]; int main() { scanf("%s", s + 1); int flg = 0, flg2 = 0; for (int i = 1; i <= 3; i++) { if (s[i] == 'A') flg = 1; else flg2 = 1; ...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 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, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
130
s = input() for i in range(0,2): if s[i] != s[i+1]: print('YES') break else: print('NO')
s = input() for i in range(0,2): if s[i] != s[i+1]: print('Yes') break else: print('No')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
43
test_input = str(input()) if test_input.count("A") == 3 or test_input.count("B") == 3: print ("FALSE") else: print("TRUE")
test_input = str(input()) if test_input.count("A") == 3 or test_input.count("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
45
def station_bus?(str) return false unless str.length == 3 valid = false str.each_char.with_index do |s, i| return false unless ['A', 'B'].include?(s) next if i.zero? valid = true if s != str[i-1] end valid end str = gets.chomp! p station_bus?(str) ? 'Yes' : 'No'
def station_bus?(str) return false unless str.length == 3 valid = false str.each_char.with_index do |s, i| return false unless ['A', 'B'].include?(s) next if i.zero? valid = true if s != str[i-1] end valid end str = gets.chomp! puts station_bus?(str) ? 'Yes' : 'No'
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
82
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (int)n; i++) #define REPvec(itr, mp) for (auto itr = mp.begin(); itr != mp.end(); itr++) #define all(x) x.begin(), x.end() #define MOD 1000000007 // 1e9+7 using namespace std; typedef long long ll; typedef vector<int> vecint; typedef vector<string> vecstr; ...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (int)n; i++) #define REPvec(itr, mp) for (auto itr = mp.begin(); itr != mp.end(); itr++) #define all(x) x.begin(), x.end() #define MOD 1000000007 // 1e9+7 using namespace std; typedef long long ll; typedef vector<int> vecint; typedef vector<string> vecstr; ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
108
//大文字->小文字 tolower(),逆はtoupper() // int a = stoi(c); 文字列をintへ //途中の出力をそのまま残さない //数値計算 個数以外はdouble // map<キー,値> p は辞書。p[キー] = 値 // map 全探索 // auto begin = p.begin(), end = p.end(); // for (auto it = begin; it != end; i++) {} // mapのキー:it->first mapのバリュー:it->second //絶対値 abs() //入力は空白で切れる //大文字判定 isupper(文字) 小文字判定 islowe...
//大文字->小文字 tolower(),逆はtoupper() // int a = stoi(c); 文字列をintへ //途中の出力をそのまま残さない //数値計算 個数以外はdouble // map<キー,値> p は辞書。p[キー] = 値 // map 全探索 // auto begin = p.begin(), end = p.end(); // for (auto it = begin; it != end; i++) {} // mapのキー:it->first mapのバリュー:it->second //絶対値 abs() //入力は空白で切れる //大文字判定 isupper(文字) 小文字判定 islowe...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
165
// shahil_005 // Some basic pre-written functions might have been copied from // www.geeksforgeeks.org or cp-algorithms.com// #include <bits/stdc++.h> using namespace std; #define endl '\n' #define int long long #define sync \ ios_base::sync_with_st...
// shahil_005 // Some basic pre-written functions might have been copied from // www.geeksforgeeks.org or cp-algorithms.com// #include <bits/stdc++.h> using namespace std; #define endl '\n' #define int long long #define sync \ ios_base::sync_with_st...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 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
101
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s != "AAA" || s != "BBB") printf("Yes"); else printf("%s", "No"); }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s != "AAA" && s != "BBB") printf("Yes"); else printf("No"); }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 2, 3, 4, 0, 21]]
1
52
/*Made by Shivam Solanki*/ #include <bits/stdc++.h> using namespace std; #define DEBUG(x) cout << '>' << #x << ':' << x << endl; #define ll long long int typedef vector<int> vi; typedef vector<ll> vll; typedef vector<vll> vvl; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<vi> vvi; typedef vector<...
/*Made by Shivam Solanki*/ #include <bits/stdc++.h> using namespace std; #define DEBUG(x) cout << '>' << #x << ':' << x << endl; #define ll long long int typedef vector<int> vi; typedef vector<ll> vll; typedef vector<vll> vvl; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<vi> vvi; typedef vector<...
[["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
329
#include <stdio.h> #include <string.h> int main(void) { char S[3]; char A[3] = {'A', 'A', 'A'}; char B[3] = {'B', 'B', 'B'}; scanf("%s", S); if ((strcmp(S, B) == 0) || (strcmp(S, A) == 0)) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
#include <stdio.h> #include <string.h> int main(void) { char S[4]; char A[4] = {'A', 'A', 'A'}; char B[4] = {'B', 'B', 'B'}; scanf("%s", S); if ((strcmp(S, B) == 0) || (strcmp(S, A) == 0)) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13]]
0
114
if __name__== '__main__': 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')
if __name__== '__main__': 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')
[["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 655]]
5
91
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); System.out.println(str.matches(".*AB.*|.*BA.*") ? "YES" : "NO"); } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); System.out.println(str.matches(".*AB.*|.*BA.*") ? "Yes" : "No"); } }
[["-", 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
67
stdin = input() if len(set(stdin)) == 1: print("No") else: print("yes")
stdin = input() if len(set(stdin)) == 1: 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
30
#include <bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; int a = 0, b = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'A') a++; if (s[i] == 'B') b++; } if (a && b) cout << "YES"; else cout << "NO"; }
#include <bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; int a = 0, b = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'A') a++; if (s[i] == 'B') b++; } if (a && b) 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
92
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s != "AAA" || s != "BBB") puts("Yes"); else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s == "AAA" || s == "BBB") puts("No"); else cout << "Yes" << endl; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0,...
1
52
#include <bits/stdc++.h> using namespace std; // FILE *fi=freopen("1.txt","r",stdin); string s; bool ok1, ok2; int main() { cin >> s; for (int i = 0; i < s.length(); i++) { if (s[i] == 'A') ok1 = true; else ok2 = true; } ok1 == ok2 &&ok1 == true ? cout << "YES" : cout << "NO"; return 0; }...
#include <bits/stdc++.h> using namespace std; // FILE *fi=freopen("1.txt","r",stdin); string s; bool ok1, ok2; int main() { cin >> s; for (int i = 0; i < s.length(); i++) { if (s[i] == 'A') ok1 = true; else ok2 = true; } ok1 == ok2 &&ok1 == true ? 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, 6], ["-", 0, 1, 0, 41, 75, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 41, 75, 16, 12, 5, 0, 6]]
1
88
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define sd(n) scanf("%d", &n) #define sdd(n, m) scanf("%d%d", &n, &m) #define sddd(n,...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define sd(n) scanf("%d", &n) #define sdd(n, m) scanf("%d%d", &n, &m) #define sddd(n,...
[["-", 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
713
#include <iostream> using namespace std; int main() { char s[100]; int i; for (i = 1; i <= 3; i++) { cin >> s[i]; } if (s[1] == s[3] and s[2] == s[3]) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <iostream> using namespace std; int main() { char s[100]; int i; for (i = 1; i <= 3; i++) { cin >> s[i]; } if (s[1] == s[3] and s[2] == s[3]) 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
85
s=list(input().strip()) x=s.count(s[0]) if x==0 or x==3: print('NO') else: print('YES')
s=list(input().strip()) x=s.count(s[0]) if x==0 or x==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
46
S=input() if("AAA"==S or S=="BBB"): print("Yes") else: print("No")
S=input() if("AAA"==S or S=="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
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> using namespace std; #define INF 10000...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> using namespace std; #define INF 10000...
[["-", 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
227
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define ls k << 1, l, mid #define rs k << 1 | 1, mid + 1, r #define mp(x, y) make_pair(x, y) #define r(x) read(x) #define rr(...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define ls k << 1, l, mid #define rs k << 1 | 1, mid + 1, r #define mp(x, y) make_pair(x, y) #define r(x) read(x) #define rr(...
[["-", 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
379
s = input() a = s[0] for i in range(1, 3) : if(s[i] != a) : print("YES") exit() print("NO")
s = input() a = s[0] for i in range(1, 3) : if(s[i] != a) : print("Yes") exit() print("No")
[["-", 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() { vector<string> s; for (int i = 0; i < 3; i++) cin >> s[i]; if (s[0] == s[1] && s[1] == s[2] && s[2] == s[0]) 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 < 3; i++) cin >> s[i]; if (s[0] == s[1] && s[1] == s[2] && s[2] == s[0]) cout << "No" << endl; else cout << "Yes" << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 344, 141, 78], ["-", 8, 9, 0, 43, 39, 344, 3, 347, 0, 18], ["-", 8, 9, 0, 43, 39, 344, 3, 347, 0, 47]]
1
91
main() { char s[3]; scanf("%s", s); ((s[0] == s[1]) || (s[1] == s[2])) ? printf("No") : printf("Yes"); }
main() { char s[3]; scanf("%s", s); ((s[0] == s[1]) && (s[1] == s[2])) ? printf("No") : printf("Yes"); }
[["-", 0, 1, 0, 41, 15, 23, 0, 16, 17, 106], ["+", 0, 1, 0, 41, 15, 23, 0, 16, 17, 98]]
0
60
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; int a = 0, b = 0; for (int i = 0; i < int(s.size()); i++) { if (s[i] == 'A') a++; else b++; } if (a & b) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; int a = 0, b = 0; for (int i = 0; i < int(s.size()); i++) { if (s[i] == 'A') a++; else b++; } if (a > 0 & b > 0) cout << "Yes" << endl; else cout << "No" << endl; }
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
97
#include <stdio.h> int main() { char s[4]; scanf(s); if (s[0] == s[1] && s[1] == s[2]) printf("Yes"); else printf("No"); return 0; }
#include <stdio.h> int main() { char s[4]; scanf("%s", s); if (s[0] == s[1] && s[1] == s[2]) printf("No"); else printf("Yes"); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 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
59
#include <bits/stdc++.h> #include <iostream> using namespace std; #define N 100003 int bas, son; #define orta (bas + son) / 2 int main() { string s; cin >> s; if (s[0] == s[1] and s[1] == s[2]) { cout << "NO"; return 0; } cout << "YES"; return 0; }
#include <bits/stdc++.h> #include <iostream> using namespace std; #define N 100003 int bas, son; #define orta (bas + son) / 2 int main() { string s; cin >> s; if (s[0] == s[1] and s[1] == s[2]) { cout << "No"; return 0; } cout << "Yes"; return 0; }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
74
#include <stdio.h> int main() { char s[5]; scanf("%s", s); if ((s[0] == 'A') && (s[1] == 'B') && (s[2] != 'A')) printf("Yes\n"); else if ((s[0] == 'B') && (s[1] == 'A') && (s[2] == 'A')) printf("Yes\n"); else if ((s[0] == 'A') && (s[1] == 'A') && (s[2] == 'B')) printf("Yes\n"); else if ((s[0]...
#include <stdio.h> int main() { char s[5]; scanf("%s", s); if ((s[0] == 'A') && (s[1] == 'B') && (s[2] == 'A')) printf("Yes\n"); else if ((s[0] == 'B') && (s[1] == 'A') && (s[2] == 'A')) printf("Yes\n"); else if ((s[0] == 'A') && (s[1] == 'A') && (s[2] == 'B')) printf("Yes\n"); else if ((s[0]...
[["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 79], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 17, 60]]
0
370
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[0] != s[1] || s[1] != s[2] || s[0] != s[2]) cout << "YES" << endl; else cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[0] != s[1] || s[1] != s[2] || s[0] != s[2]) 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
68
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); int a = 0; int b = 0; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == 'A') { a++; } else if (s.charAt(i) ==...
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); int a = 0; int b = 0; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == 'A') { a++; } else if (s.charAt(i) ==...
[["+", 0, 57, 15, 15, 0, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 15, 0, 16, 31, 23, 0, 25], ["+", 0, 57, 15, 15, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 12, 16, 12, 492, 3, 4, 0, 25]]
3
167
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c = 0; for (int i = 0; i < 3; i++) if (s[i] = 'A') c++; if (c == 1 || c == 2) cout << "Yes"; else cout << "No"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c = 0; for (int i = 0; i < 3; i++) if (s[i] == 'A') c++; if (c == 1 || c == 2) cout << "Yes"; else cout << "No"; }
[["-", 0, 7, 8, 57, 15, 339, 51, 11, 17, 32], ["+", 0, 7, 8, 57, 15, 339, 51, 16, 17, 60]]
1
75
S = input() if S[0] != S[1] and S[1] != S[2]: print('Yes') else: print('No')
S = input() if S[0] != S[1] or S[1] != S[2]: print('Yes') else: print('No')
[["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354]]
5
40
#include <bits/stdc++.h> using namespace std; string station(string s) { int a = 0, b = 0; string res; for (int i = 0; i < 3; i++) { if (s[i] == 'A') a++; else b++; } if (a == 3) res = "No"; else res = "Yes"; return res; } int main() { string s, res; getline(cin, s); res ...
#include <bits/stdc++.h> using namespace std; string station(string s) { int a = 0, b = 0; string res; for (int i = 0; i < 3; i++) { if (s[i] == 'A') a++; else b++; } if (a == 3 || b == 3) res = "No"; else res = "Yes"; return res; } int main() { string s, res; getline(cin, ...
[["+", 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
114
import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); String s = sc.next(); boolean b = true; if (s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) { ...
import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); String s = sc.next(); boolean b = true; if (s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) { ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
108
#include <bits/stdc++.h> using namespace std; int main() { int f = 0; string s; cin >> s; for (int i = 0; i < 4; i++) { if (s[0] == 'B' && s[1] == 'B' && s[2] == 'B') { f = 1; } else if (s[0] == 'A' && s[1] == 'A' && s[2] == 'A') { f = 1; } } if (f == 1) { cout << "NO" << endl;...
#include <bits/stdc++.h> using namespace std; int main() { int f = 0; string s; cin >> s; for (int i = 0; i < 4; i++) { if (s[0] == 'B' && s[1] == 'B' && s[2] == 'B') { f = 1; } else if (s[0] == 'A' && s[1] == 'A' && s[2] == 'A') { f = 1; } } if (f == 1) { cout << "No" << endl;...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
138
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; int a = 0, b = 0; for (auto xx : s) { if (xx == 'B') b++; else a++; } if (a && b) cout << "YES" << "\n"; else cout << "NO" << "\n"; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; int a = 0, b = 0; for (auto xx : s) { if (xx == 'B') b++; else a++; } if (a && b) cout << "Yes" << "\n"; else cout << "No" << "\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
84
st=set([i for i in input()]) print('No') if len(st)==0 else print('Yes')
st=set([i for i in input()]) print('No') if len(st)==1 else print('Yes')
[["-", 0, 656, 0, 1, 0, 41, 0, 666, 0, 612], ["+", 0, 656, 0, 1, 0, 41, 0, 666, 0, 612]]
5
34
// omajinai c++ #include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <string> #include <type_traits> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() #define itn int using ll ...
// omajinai c++ #include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <string> #include <type_traits> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() #define itn int using ll ...
[["-", 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
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_uppercase...
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_uppercase...
[["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]]
5
190
#include <bits/stdc++.h> #include <iomanip> #define ll long long #define lld double #define vi vector<ll> #define pii pair<int, int> #define piii pair<pii, ll> #define pb push_back #define mp make_pair #define fs first #define sc second #define ppb pop_back #define d0(x) cout << x << " " #define d1(x) cout << (x) << en...
#include <bits/stdc++.h> #include <iomanip> #define ll long long #define lld double #define vi vector<ll> #define pii pair<int, int> #define piii pair<pii, ll> #define pb push_back #define mp make_pair #define fs first #define sc second #define ppb pop_back #define d0(x) cout << x << " " #define d1(x) cout << (x) << en...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
170
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define square(x) pow(x 2.0) #define all(x) (x).begin(), (x).end() #define F first #define S second #define max_queue(x) priority_queue<x> #define min_queue(...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define square(x) pow(x 2.0) #define all(x) (x).begin(), (x).end() #define F first #define S second #define max_queue(x) priority_queue<x> #define min_queue(...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
233
#include <bits/stdc++.h> using namespace std; #define pi 3.14159265359 #define int long long #define pii pair<int, int> const int mod = 1e9 + 7; int dx[] = {-1, 0, 1, 0}; int dy[] = {0, -1, 0, 1}; int32_t main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); string s; cin >> s; if (s[0] == s[1]...
#include <bits/stdc++.h> using namespace std; #define pi 3.14159265359 #define int long long #define pii pair<int, int> const int mod = 1e9 + 7; int dx[] = {-1, 0, 1, 0}; int dy[] = {0, -1, 0, 1}; int32_t main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); string s; cin >> s; if (s[0] == s[1]...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 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
126
package main import "fmt" func main() { var S string fmt.Scan(&S) if S == "AAA" || S == "BBB" { fmt.Println("No") } fmt.Println("Yes") }
package main import "fmt" func main() { var S string fmt.Scan(&S) if S == "AAA" || S == "BBB" { fmt.Println("No") return } fmt.Println("Yes") }
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 435, 8, 196, 0, 57, 64, 196, 0, 165]]
7
60
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if ((s[0] != s[1]) || (s[1] != s[2])) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if ((s[0] != s[1]) || (s[1] != 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
#include <bits/stdc++.h> using namespace std; int main() { int n; long long p; long long c = 0; string s; string ans; ans = "YES"; cin >> s; if (s == "AAA" || s == "BBB") ans = "No"; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n; long long p; long long c = 0; string s; string ans; ans = "Yes"; cin >> s; if (s == "AAA" || s == "BBB") ans = "No"; cout << ans << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
67
#include <bits/stdc++.h> using namespace std; int main() { vector<char> station(3); for (int i = 0; i < 3; i++) { cin >> station.at(i); } if (station.at(0) == station.at(1) && station.at(1) == station.at(2)) { cout << "NO" << endl; } else { cout << "YES" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { vector<char> station(3); for (int i = 0; i < 3; i++) { cin >> station.at(i); } if (station.at(0) == station.at(1) && station.at(1) == station.at(2)) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[["-", 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; int main() { char ct[3]; int count = 0; for (int i = 0; i < 3; i++) { scanf("%c", &ct[i]); if (ct[i] == 'A') count++; } if (count == 3 || count == 0) cout << "NO"; else cout << "YES"; }
#include <bits/stdc++.h> using namespace std; int main() { char ct[3]; int count = 0; for (int i = 0; i < 3; i++) { scanf("%c", &ct[i]); if (ct[i] == 'A') count++; } if (count == 3 || count == 0) 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
89
/*input */ #include <bits/stdc++.h> using namespace std; #define int long long typedef vector<int> vii; #define pb push_back #define print(a) \ for (auto x : a) { \ cout << x << ' '; ...
/*input ABA */ #include <bits/stdc++.h> using namespace std; #define int long long typedef vector<int> vii; #define pb push_back #define print(a) \ for (auto x : a) { \ cout << x << ' '; ...
[["-", 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
119
s = str(input()) if "B" in s and "A" in s: print("No") else: print("Yes")
s = str(input()) if "B" in s and "A" 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
35
#include <bits/stdc++.h> using namespace std; const long long MOD = 1e9 + 7; // const long long MOD = ; const long long INF_LL = 1e18 + 3; const int INF_int = 1e9 + 3; #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) #define lrep(i, n) for (long long i = 0; i < n; i++) #define All(a) a.begin(), a.end(...
#include <bits/stdc++.h> using namespace std; const long long MOD = 1e9 + 7; // const long long MOD = ; const long long INF_LL = 1e18 + 3; const int INF_int = 1e9 + 3; #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) #define lrep(i, n) for (long long i = 0; i < n; i++) #define All(a) a.begin(), a.end(...
[["-", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22], ["+", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22]]
1
132
# -*- coding: utf-8 -*- S = (input()) # 出力 # 奇数を取得 if(S[0] == s[1] == s[2]): print('No') else: print('Yes')
# -*- coding: utf-8 -*- S = (input()) # 出力 # 奇数を取得 if(S[0] == S[1] == S[2]): print('No') else: print('Yes')
[["-", 0, 57, 15, 23, 0, 666, 0, 206, 51, 22], ["+", 0, 57, 15, 23, 0, 666, 0, 206, 51, 22]]
5
42
#include <bits/stdc++.h> using namespace std; int main() { string S, ans; cin >> S; if (S == "AAA" or "BBB") ans = "No"; else ans = "Yes"; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string S, ans; cin >> S; if (S == "AAA" || S == "BBB") ans = "No"; else ans = "Yes"; cout << ans << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 354], ["+", 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]]
1
52
S=set(input()) n=len(S) print("Yes" if n==1 else "No")
S=set(input()) n=len(S) print("Yes" if n>1 else "No")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 60], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 47]]
5
28
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool s = false; for (int i = 0; i < 2; i++) { if (S.at(i) == S.at(i + 1)) { s = true; break; } } if (s) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool s = false; for (int i = 0; i < 2; i++) { if (S.at(i) != S.at(i + 1)) { s = true; break; } } if (s) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
91
#include <bits/stdc++.h> using namespace std; int main() { char a; set<char> q; for (int i = 0; i < 3; i++) cin >> a, q.insert(a); if (q.size() == 2) cout << "YES" << "\n"; else cout << "NO" << "\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char a; set<char> q; for (int i = 0; i < 3; i++) cin >> a, q.insert(a); if (q.size() == 2) cout << "Yes" << "\n"; else cout << "No" << "\n"; 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
80
s = input() ans = "Yes" if s in ["AAA", "BBB"] else "No" print(ans)
s = input() ans = "No" if s in ["AAA", "BBB"] else "Yes" print(ans)
[["-", 0, 1, 0, 662, 12, 41, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 41, 0, 557, 0, 6]]
5
30
#include <stdio.h> int main() { int i, a, b; char str[5]; a = 0; b = 0; scanf("%s", str); for (i = 0; i < 3; i++) { if (str[i] == 'A') a++; if (str[i] == 'B') b++; } if (a == 3 || b == 3) printf("NO\n"); else printf("YES\n"); return 0; }
#include <stdio.h> int main() { int i, a, b; char str[4]; a = 0; b = 0; scanf("%s", str); for (i = 0; i < 3; i++) { if (str[i] == 'A') a++; if (str[i] == 'B') b++; } if (a == 3 || b == 3) printf("No\n"); else printf("Yes\n"); return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 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
111
p gets.chomp.bytes.inject(:+)%3>0?"Yes":"No"
puts gets.chomp.bytes.inject(:+)%3>0?"Yes":"No"
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
23
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); int l = str.length(); String result = ""; for (int i = 0; i < l; i++) { char ch = str.charAt(i); result = result + ch; } if (result.equals("AAA...
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); int l = str.length(); String result = ""; for (int i = 0; i < l; i++) { char ch = str.charAt(i); result = result + ch; } if (result.equals("AAA...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
137
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; if (s == "AAA" && s == "BBB") { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; if (s == "AAA" || s == "BBB") { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]]
1
62
#include <iostream> using namespace std; int main() { int a, b, c; char k, m, d; cin >> k >> m >> d; a = ((k == 'A') ? 0 : 1); b = ((m == 'A') ? 0 : 1); c = ((d == 'A') ? 0 : 1); int an = a + b + c; if (an == 0 || an == 3) cout << "Yes" << endl; else cout << "No" << endl; }
#include <iostream> using namespace std; int main() { int a, b, c; char k, m, d; cin >> k >> m >> d; a = ((k == 'A') ? 0 : 1); b = ((m == 'A') ? 0 : 1); c = ((d == 'A') ? 0 : 1); int an = a + b + c; if (an == 0 || an == 3) 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
118
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <st...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <st...
[["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
112
#include <bits/stdc++.h> using namespace std; int main(void) { string S; cin >> S; if (S == "AAA" || S == "BBB") { cout << "NO" << endl; } else { cout << "YES" << endl; } }
#include <bits/stdc++.h> using namespace std; int main(void) { string S; cin >> S; if (S == "AAA" || S == "BBB") { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
55
#include <iostream> // #include <cassert> #include <algorithm> #include <climits> #include <vector> // #include <deque> // #include <stack> // #include <set> // #include <map> // #include <string> // #include <unordered_set> // #include <unordered_map> // #include <queue> // #include <tuple> // #include <cmath> // #i...
#include <iostream> // #include <cassert> #include <algorithm> #include <climits> #include <vector> // #include <deque> // #include <stack> // #include <set> // #include <map> // #include <string> // #include <unordered_set> // #include <unordered_map> // #include <queue> // #include <tuple> // #include <cmath> // #i...
[["-", 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() { string S = "\0"; int n = 0, ans = 0; cin >> S; for (int i = 0; i < 2; i++) { if (S[i] |= S[i + 1]) ans = 1; } if (ans == 0) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
#include "bits/stdc++.h" using namespace std; int main() { string S = "\0"; int n = 0, ans = 0; cin >> S; for (int i = 0; i < 2; i++) { if (S[i] != S[i + 1]) ans = 1; } if (ans == 0) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 160], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
95
def main(): S = input() cnt_A, cnt_B = 0 for i in range(len(S)): if S[i] == "A": cnt_A += 1 else: cnt_B += 1 if cnt_A == 3 or cnt_B == 3: print('{}'.format('No')) else: print('{}'.format('Yes')) if __name__ == '__main__': main()
def main(): S = input() cnt_A = 0 cnt_B = 0 for i in range(len(S)): if S[i] == "A": cnt_A += 1 else: cnt_B += 1 if cnt_A == 3 or cnt_B == 3: print('{}'.format('No')) else: print('{}'.format('Yes')) if __name__ == '__main__': main()
[["-", 8, 196, 0, 1, 0, 662, 31, 684, 0, 21], ["+", 0, 14, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 14, 8, 196, 0, 1, 0, 662, 12, 612]]
5
91
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <complex> #include <cstdlib> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <random> #inc...
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <complex> #include <cstdlib> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <random> #inc...
[["+", 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
202
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S != "AAA" && S != "AAA") 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 << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6], ["+", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6]]
1
53
stations = input() print('No') if len(set(stations)) == 0 else print('Yes')
stations = input() print('No') if len(set(stations)) == 1 else print('Yes')
[["-", 0, 656, 0, 1, 0, 41, 0, 666, 0, 612], ["+", 0, 656, 0, 1, 0, 41, 0, 666, 0, 612]]
5
28
a = input() if not a == "AAA" or a =="BBB": print("Yes") else: print("No")
a = input() if not (a == "AAA" or a =="BBB"): print("Yes") else: print("No")
[["+", 0, 656, 0, 57, 15, 681, 28, 23, 0, 24], ["+", 0, 656, 0, 57, 15, 681, 28, 23, 0, 25]]
5
33
#include <stdio.h> int main(void) { char bus[4]; int i; i = scanf("%s", bus); if (bus[0] == bus[1] == bus[2]) printf("No"); else printf("Yes"); return (0); }
#include <stdio.h> int main(void) { char bus[4]; int i; i = scanf("%s", bus); if (bus[0] == bus[1] && bus[1] == bus[2]) printf("No"); else printf("Yes"); return (0); }
[["+", 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], ["+", 15, 23, 0, 16, 12, 16, 31, 69, 0, 73]]
0
66
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c = 0, d = 0; for (int i = 0; i < s.length(); i++) { if (s[i] == 'A') c++; else d++; } if (c == 3 || d == 3) cout << "NO"; else cout << "YES"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c = 0, d = 0; for (int i = 0; i < s.length(); i++) { if (s[i] == 'A') c++; else d++; } if (c == 3 || d == 3) 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
89
import java.util.Scanner; public class Main { public static void main(System[] args) { Scanner input = new Scanner(System.in); String s = input.nextLine(); int c = 0; for (int i = 0; i < s.length(); i++) if (s.charAt(i) == 'A') c++; if (c == 0 || c == 3) System.out.println("No"...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.nextLine(); int c = 0; for (int i = 0; i < s.length(); i++) if (s.charAt(i) == 'A') c++; if (c == 0 || c == 3) System.out.println("No"...
[["-", 0, 195, 54, 495, 0, 496, 39, 224, 468, 78], ["+", 0, 195, 54, 495, 0, 496, 39, 224, 468, 78]]
3
114
#include <iostream> #include <string> using namespace std; int main() { string input; cin >> input; auto result_a = input.find("AAA"); auto result_b = input.find("BBB"); if (result_a == string::npos && result_b == string::npos) cout << "No" << endl; else cout << "Yes" << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main() { string input; cin >> input; auto result_a = input.find("AAA"); auto result_b = input.find("BBB"); if (result_a == string::npos && result_b == string::npos) cout << "Yes" << endl; else cout << "No" << 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
79
word = input() if word[0:0] == word[1:1] and word[0:0] == word[2:2] : print("No") else : print("Yes")
word = input() if word[0:1] == word[1:2] and word[0:1] == word[2:] : print("No") else : print("Yes")
[["-", 15, 679, 31, 666, 0, 206, 206, 663, 0, 612], ["+", 15, 679, 31, 666, 0, 206, 206, 663, 0, 612], ["-", 15, 679, 12, 666, 0, 206, 206, 663, 0, 612], ["+", 15, 679, 12, 666, 0, 206, 206, 663, 0, 612]]
5
48
#include <bits/stdc++.h> using namespace std; int main() { string S; S.size() == 3; cin >> S; if (S.at(0) == 'A' && S.at(1) == 'A' && S.at(2) == 'A') { cout << "No" << endl; } if (S.at(0) == 'B' && S.at(1) == 'B' && S.at(2) == 'B') { cout << "No" << endl; } else if (S.at(0) == 'A' || S.at(1...
#include <bits/stdc++.h> using namespace std; int main() { string S; S.size() == 3; cin >> S; if (S.at(0) == 'A' && S.at(1) == 'A' && S.at(2) == 'A') { cout << "No" << endl; } else if (S.at(0) == 'B' && S.at(1) == 'B' && S.at(2) == 'B') { cout << "No" << endl; } else if (S.at(0) == 'A' || S...
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
163
#include <iostream> using namespace std; int main() { char S[3]; for (int i = 0; i < 3; i++) { cin >> S[i]; } if (S[0] == S[1] == S[2]) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
#include <iostream> using namespace std; int main() { char S[3]; for (int i = 0; i < 3; i++) { cin >> S[i]; } if (S[0] == S[1] && S[1] == S[2]) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[["+", 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
79
Flag = 0 S = input() SA = [str(c) for c in S] #A = list(['A','A','A']) #B = list(['B','B','B']) S1 = SA[1] S2 = SA[2] S3 = SA[3] if(S1 == S2 == S3): print("No") else: print("Yes")
Flag = 0 S = input() SA = [str(c) for c in S] #A = list(['A','A','A']) #B = list(['B','B','B']) S1 = SA[0] S2 = SA[1] S3 = SA[2] if(S1 == S2 == S3): print("No") else: print("Yes")
[["-", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612]]
5
63
// garnab27 #include <bits/stdc++.h> #define MP make_pair #define PB push_back #define ll int64_t #define F first #define S second #define ALL(x) (x).begin(), (x).end() #define SZ(x) ((int)(x).size()) using namespace std; ll modex(ll a, ll b, ll p) { ll res = 1; a %= p; while (b > 0) { if (b & 1) res = ...
// garnab27 #include <bits/stdc++.h> #define MP make_pair #define PB push_back #define ll int64_t #define F first #define S second #define ALL(x) (x).begin(), (x).end() #define SZ(x) ((int)(x).size()) using namespace std; ll modex(ll a, ll b, ll p) { ll res = 1; a %= p; while (b > 0) { if (b & 1) res = ...
[["-", 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
237
// inputに入力データ全体が入る function Main(input) { var tmp = input.split("") if (tmp[0] != tmp[1] | tmp[0] != tmp[2] | tmp[1] != tmp[2]) { console.log("Yes") } console.log("No") } //*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します) Main(require("fs").readFileSync("/dev/stdin", "utf8"));
// inputに入力データ全体が入る function Main(input) { var tmp = input.split("") if (tmp[0] != tmp[1] | tmp[0] != tmp[2] | tmp[1] != tmp[2]) { console.log("Yes") } else { console.log("No") } } //*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します) Main(require("fs").readFileSync("/dev/stdin", "utf8"));
[["+", 0, 435, 8, 556, 0, 57, 75, 76, 0, 95], ["+", 8, 556, 0, 57, 75, 76, 0, 556, 0, 45], ["+", 8, 556, 0, 57, 75, 76, 0, 556, 0, 46]]
2
90