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 |
|---|---|---|---|---|
/*
我的心脏怦怦跳,监管者就在附近
name:
Algorithm:
writer:Lxs(cdx)
place:
nothing is impossible
*/
#pragma GCC optimize(3, "Ofast", "inline")
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <unistd.h>
#defin... | /*
我的心脏怦怦跳,监管者就在附近
name:
Algorithm:
writer:Lxs(cdx)
place:
nothing is impossible
*/
#pragma GCC optimize(3, "Ofast", "inline")
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <unistd.h>
#defin... | [["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 73], ["-", 341, 342, 0, 16, 12, 69, 341, 342, 0, 73]] | 1 | 155 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
string S = "";
cin >> S;
if (S[0] == 'A' && S[1] == 'A' && S[2] == 'A')
cout << "NO";
else if (S[0] == 'B' && S[1] == 'B' && S[2] == 'B')
cout << "NO";
else
cout << "YES";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string S = "";
cin >> S;
if (S[0] == 'A' && S[1] == 'A' && S[2] == 'A')
cout << "No";
else if (S[0] == 'B' && S[1] == 'B' && S[2] == 'B')
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 | 104 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
string s;
cin >> s;
if (s == "AAA" || s == "BBB") {
cout << "NO" << endl;
} else
cout << "YES" << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
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 | 60 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
string S;
int flg = 0;
cin >> S;
if (S.at(0) == S.at(1) && S.at(1) == S.at(0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
string S;
int flg = 0;
cin >> S;
if (S.at(0) == S.at(1) && S.at(1) == S.at(2)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [["-", 51, 16, 12, 16, 12, 2, 3, 4, 0, 13], ["+", 51, 16, 12, 16, 12, 2, 3, 4, 0, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 83 |
#include <bits/stdc++.h>
using namespace std;
int main() {
char a, b, c;
cin >> a >> b >> c;
if (a == b == c) {
cout << "No" << endl;
return 0;
}
cout << "Yes" << endl;
return 0;
} | #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;
return 0;
}
cout << "Yes" << endl;
return 0;
} | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 59 |
/*
Author: Luis Manuel Díaz Barón (LUISMO)
Problem:
Online Judge:
Link:
Idea:
*/
#include <bits/stdc++.h>
// Types
#define ll long long
#define ull unsigned long long
// IO
#define sf scanf
#define pf printf
#define mkp make_pair
#define fi first
#define se second
#define endl "\... | /*
Author: Luis Manuel Díaz Barón (LUISMO)
Problem:
Online Judge:
Link:
Idea:
*/
#include <bits/stdc++.h>
// Types
#define ll long long
#define ull unsigned long long
// IO
#define sf scanf
#define pf printf
#define mkp make_pair
#define fi first
#define se second
#define endl "\... | [["-", 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 | 277 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string a;
cin >> a;
int A = 0, B = 0;
for (int i = 0; i < a.size(); i++) {
if (a[i] == 'A')
A++;
else if (a[i] == 'B')
B++;
}
if (A == 0 || B == 0)
cout << "NO" << endl;
else
cout << "YES" << endl;
retu... | #include <iostream>
#include <string>
using namespace std;
int main() {
string a;
cin >> a;
int A = 0, B = 0;
for (int i = 0; i < a.size(); i++) {
if (a[i] == 'A')
A++;
else if (a[i] == 'B')
B++;
}
if (A == 0 || B == 0)
cout << "No" << endl;
else
cout << "Yes" << endl;
retu... | [["-", 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 | 109 |
#include <algorithm>
#include <cstring>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <vector>
using namespace std;
const int maxn = 1e5 + 5;
int main() {
string s;
cin >> s;
int toa = 0, tob = 0;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A')
toa++;
if (s[i] ... | #include <algorithm>
#include <cstring>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <vector>
using namespace std;
const int maxn = 1e5 + 5;
int main() {
string s;
cin >> s;
int toa = 0, tob = 0;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A')
toa++;
if (s[i] ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17... | 1 | 120 |
s = input()
print("Yes" if s.count("A") == 0 or s.count("B") == 0 else "No") | s = input()
print("No" if s.count("A") == 0 or s.count("B") == 0 else "Yes") | [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 37 |
#include <iostream>
int main() {
char a, b, c;
std::cin >> a >> b >> c;
if (a == 'A' && b == 'A' && c == 'A')
std::cout << "NO\n";
else if (a == 'B' && b == 'B' && c == 'B')
std::cout << "NO\n";
else
std::cout << "YES\n";
return 0;
} | #include <iostream>
int main() {
char a, b, c;
std::cin >> a >> b >> c;
if (a == 'A' && b == 'A' && c == 'A')
std::cout << "No\n";
else if (a == 'B' && b == 'B' && c == 'B')
std::cout << "No\n";
else
std::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 | 97 |
#include <bits/stdc++.h>
#define pb push_back
// #define mp make_pair
#define fi first
#define se second
#define ios \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | #include <bits/stdc++.h>
#define pb push_back
// #define mp make_pair
#define fi first
#define se second
#define ios \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | [["-", 51, 16, 12, 2, 3, 4, 0, 103, 0, 125], ["+", 51, 16, 12, 2, 3, 4, 0, 103, 0, 125]] | 1 | 1,088 |
"use strict";
const main =
arg => {
// 標準入力の不要な空白と改行を削除し、配列に格納する
const input = arg.trim().split(" ");
if (input[0] === 'AAA' || input[0] === 'BBB') {
console.log('NO');
} else {
console.log("YES");
}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | "use strict";
const main =
arg => {
// 標準入力の不要な空白と改行を削除し、配列に格納する
const input = arg.trim().split(" ");
if (input[0] === 'AAA' || input[0] === 'BBB') {
console.log('No');
} else {
console.log("Yes");
}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | [["-", 0, 1, 0, 2, 3, 3, 0, 557, 0, 491], ["+", 0, 1, 0, 2, 3, 3, 0, 557, 0, 491]] | 2 | 92 |
s = input()
print("No" if set(s) == 1 else "Yes") | s = input()
print("No" if len(set(s)) == 1 else "Yes") | [["+", 3, 4, 0, 41, 0, 666, 0, 652, 63, 22], ["+", 0, 41, 0, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 22 |
#include <algorithm>
#include <bits/stdc++.h>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long int
// typedef pair<ll,ll> p;
in... | #include <algorithm>
#include <bits/stdc++.h>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long int
// typedef pair<ll,ll> p;
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 | 109 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, ans;
string s;
cin >> s;
if (s.at(1) == s.at(2) && s.at(2) == s.at(3))
cout << "No";
else
cout << "Yes";
// cout << ans << "\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, ans;
string s;
cin >> s;
if (s.at(1) == s.at(2) && s.at(0) == s.at(1))
cout << "No";
else
cout << "Yes";
// cout << ans << "\n";
return 0;
}
| [["-", 51, 16, 12, 16, 31, 2, 3, 4, 0, 13], ["+", 51, 16, 12, 16, 31, 2, 3, 4, 0, 13], ["-", 51, 16, 12, 16, 12, 2, 3, 4, 0, 13], ["+", 51, 16, 12, 16, 12, 2, 3, 4, 0, 13]] | 1 | 71 |
#include <bits/stdc++.h>
#define int long long
using namespace std;
int a[10];
main() {
string s;
cin >> s;
for (int i = 0; i < s.size(); i++) {
a[s[i] - 'A']++;
}
if (a[0] == 3 || a[1] == 3)
cout << "NO\n";
else
cout << "YES]n";
return 0;
}
| #include <bits/stdc++.h>
#define int long long
using namespace std;
int a[10];
main() {
string s;
cin >> s;
for (int i = 0; i < s.size(); i++) {
a[s[i] - 'A']++;
}
if (a[0] == 3 || a[1] == 3)
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], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 44]] | 1 | 93 |
#include <bits/stdc++.h>
using namespace std;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return true;
}
return false;
}
// std::vector Declaration
template <typen... | #include <bits/stdc++.h>
using namespace std;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return true;
}
return false;
}
// std::vector Declaration
template <typen... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 1,179 |
#include <bits/stdc++.h>
using namespace std;
#define pii pair<int, int>
#define ll long long
#define s second
#define f first
string s;
int a, b;
int main() {
cin >> s;
for (auto c : s) {
if (c == 'A') {
++a;
}
if (c == 'B') {
++b;
}
}
if (a && b) {
cout << "YES" << endl;
... | #include <bits/stdc++.h>
using namespace std;
#define pii pair<int, int>
#define ll long long
#define s second
#define f first
string s;
int a, b;
int main() {
cin >> s;
for (auto c : s) {
if (c == 'A') {
++a;
}
if (c == 'B') {
++b;
}
}
if (a && b) {
cout << "Yes" << endl;
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 101 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int x = s.length();
int a = 0, b = 0;
for (int i = 0; i < x; i++) {
if (s[i] == 'A')
a++;
if (s[i] == 'B')
b++;
}
if (a == 0 || b == 0)
cout << "NO";
else
cout << "YES";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int x = s.length();
int a = 0, b = 0;
for (int i = 0; i < x; i++) {
if (s[i] == 'A')
a++;
if (s[i] == 'B')
b++;
}
if (a == 0 || b == 0)
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 | 107 |
#include <bits/stdc++.h>
using namespace std;
signed main() {
string s;
cin >> s;
for (int i = 0; i <= s.size() - 2; i++) {
for (int j = i + 1; j <= s.size() - 1; j++) {
if (s[i] != s[j]) {
cout << "YES" << endl;
return 0;
}
}
}
cout << "NO" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
signed main() {
string s;
cin >> s;
for (int i = 0; i <= s.size() - 2; i++) {
for (int j = i + 1; j <= s.size() - 1; j++) {
if (s[i] != s[j]) {
cout << "Yes" << endl;
return 0;
}
}
}
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 | 101 |
puts gets.chomp.squeeze.size == 1 ? "No" : "YES"
| puts gets.chomp.squeeze.size == 1 ? "No" : "Yes"
| [["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6]] | 4 | 18 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define endl '\n'
#define FAST \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define endl '\n'
#define FAST \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22], ["+", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22]] | 1 | 216 |
#include <iostream>
using namespace std;
int main() {
char s[4];
cin >> s;
if (s[0] != s[1] || s[1] != s[2])
cout << "YES\n";
else
cout << "NO\n";
}
| #include <iostream>
using namespace std;
int main() {
char s[4];
cin >> s;
if (s[0] != s[1] || s[1] != s[2])
cout << "Yes\n";
else
cout << "No\n";
}
| [["-", 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 | 59 |
x = set(list(input()))
print('Yes' if len(x)==1 else 'No') | x = set(list(input()))
print('No' if len(x)==1 else 'Yes') | [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 28 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
string s;
cin >> s;
set<char> ss;
for (auto c : s)
ss.insert(c);
if (ss.size() > 1)
cout << "YES\n";
else
cout << "NO\n";
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
string s;
cin >> s;
set<char> ss;
for (auto c : s)
ss.insert(c);
if (ss.size() > 1)
cout << "Yes\n";
else
cout << "No\n";
}
| [["-", 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 | 84 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stri... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stri... | [["-", 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 | 299 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <sstream>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a = 0, b = 0;
long long k;
int ans = 0;
string s;
cin >> s;
for (int i = 0; i <... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <sstream>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a = 0, b = 0;
long long k;
int ans = 0;
string s;
cin >> s;
for (int i = 0; i <... | [["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["-", 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 |
s = gets.split("")
if s.uniq.size!=1
puts "Yes"
else
puts "No"
end | s = gets.chomp.split("")
if s.uniq.size!=1
puts "Yes"
else
puts "No"
end | [["+", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131]] | 4 | 27 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
typedef vector<int> iv;
typedef vector<bool> bv;
typedef vector<string> sv;
typedef vector<long long int> llv;
typedef vector<double> dv;
#define debug_ printf("OK\n")
#define sor_(vec) sort(vec.begin(), vec.end())
#define rev_(vec) reverse(vec.... | #include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
typedef vector<int> iv;
typedef vector<bool> bv;
typedef vector<string> sv;
typedef vector<long long int> llv;
typedef vector<double> dv;
#define debug_ printf("OK\n")
#define sor_(vec) sort(vec.begin(), vec.end())
#define rev_(vec) reverse(vec.... | [["-", 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 | 176 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
S = input()
print('Yes'if 1 < S.count('A') < 3else 'No')
if __name__ == "__main__":
main()
| #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
S = input()
print('Yes'if 0 < S.count('A') < 3 else 'No')
if __name__ == "__main__":
main()
| [["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612]] | 5 | 45 |
# li = [[0] * 4 for i in range(3)]
# A = list.map(int, input().split())
A = input()
if A[0] == A[1] and A[1] == A[2]:
print("Yes")
else:
print("No")
| # li = [[0] * 4 for i in range(3)]
# A = list.map(int, input().split())
A = input()
if A[0] == A[1] and A[1] == A[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 | 42 |
#include <algorithm>
#include <array>
#include <cstring>
#include <deque>
#include <forward_list>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
//#include <fstream>
#include <complex>
#define... | #include <algorithm>
#include <array>
#include <cstring>
#include <deque>
#include <forward_list>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
//#include <fstream>
#include <complex>
#define... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 208 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
if (s == "AAA" || s == "BBB") {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <vector>
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;... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 74 |
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 | 22 |
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repe(i, n) for (int i = 0; i <= (n); ++i)
#define repe1(i, n) for (int i = 0; i <= (n); ++i)
#define all(x) (x).begin(), (x).end()
#define pb(x) push_back(x)
#define eb(k, v) emplace_back(k, v)
#define ct(res)... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repe(i, n) for (int i = 0; i <= (n); ++i)
#define repe1(i, n) for (int i = 0; i <= (n); ++i)
#define all(x) (x).begin(), (x).end()
#define pb(x) push_back(x)
#define eb(k, v) emplace_back(k, v)
#define ct(res)... | [["-", 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], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 308 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define LL long long
#define N 100005
#define MOD 1000000007
#define dd double
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, a, b) for (int i = a; i < ... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define LL long long
#define N 100005
#define MOD 1000000007
#define dd double
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, a, b) for (int i = a; i < ... | [["-", 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 | 172 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef long long ll;
typedef long double ld;
#define rep(i, l, r) for (ll i = (l); i < (r); i++)
#define repp(i, l, r, k) for (ll i = (l); i < (r); i += (k))
#define INF (1LL << 60)
#define MOD1 1000000007
void swap(ll *a, ll *b) {
ll c;
... | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef long long ll;
typedef long double ld;
#define rep(i, l, r) for (ll i = (l); i < (r); i++)
#define repp(i, l, r, k) for (ll i = (l); i < (r); i += (k))
#define INF (1LL << 60)
#define MOD1 1000000007
void swap(ll *a, ll *b) {
ll c;
... | [["-", 15, 23, 0, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 23, 0, 16, 12, 16, 12, 103, 0, 125]] | 0 | 440 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "AAA" || s == "BBB")
cout << "Yes";
else
cout << "No";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "AAA" || s == "BBB")
cout << "No";
else
cout << "Yes";
return 0;
}
| [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 49 |
#include <bits/stdc++.h>
#define SORT(v) sort(v.begin(), v.end())
#define si(n) scanf("%d", &n)
#define sii(n, m) scanf("%d %d", &n, &m)
#define sl(n) scanf("%lld", &n)
#define sll(n, m) scanf("%lld %lld", &n, &m)
#define ss(cad) scanf("%s", cad)
#define PB push_back
#define fst first
#define scn second
#define DBG(x)... | #include <bits/stdc++.h>
#define SORT(v) sort(v.begin(), v.end())
#define si(n) scanf("%d", &n)
#define sii(n, m) scanf("%d %d", &n, &m)
#define sl(n) scanf("%lld", &n)
#define sll(n, m) scanf("%lld %lld", &n, &m)
#define ss(cad) scanf("%s", cad)
#define PB push_back
#define fst first
#define scn second
#define DBG(x)... | [["+", 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 | 163 |
s = str(input())
if s in ['AAA', 'BBB']:
print('Yes')
else:
print('No') | s = str(input())
if s in ['AAA', '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 | 35 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
const int INF = 1 << 30;
const ll MOD = 1000000007;
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>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
const int INF = 1 << 30;
const ll MOD = 1000000007;
int main() {
string S;
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 | 88 |
/*
FFFFFFFFFFFFFFFFFFFFFF
F::::::::::::::::::::F
F::::::::::::::::::::F
FF::::::FFFFFFFFF::::F
F:::::F FFFFFF
F:::::F
F::::::FFFFFFFFFF
F:::::::::::::::F
F:::::::::::::::F
F::::::FFFFFFFFFF
F:::::F
F:::... | /*
FFFFFFFFFFFFFFFFFFFFFF
F::::::::::::::::::::F
F::::::::::::::::::::F
FF::::::FFFFFFFFF::::F
F:::::F FFFFFF
F:::::F
F::::::FFFFFFFFFF
F:::::::::::::::F
F:::::::::::::::F
F::::::FFFFFFFFFF
F:::::F
F:::... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 355], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 391 |
S = input()
if S in ("AAA", "BBB"):
print("Yes")
else:
print("No")
| S = input()
if S in ("AAA", "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 | 32 |
#include <bits/stdc++.h>
#define ll long long
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define deb(x... | #include <bits/stdc++.h>
#define ll long long
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define deb(x... | [["+", 0, 57, 75, 76, 0, 1, 0, 16, 31, 22], ["+", 0, 57, 75, 76, 0, 1, 0, 16, 17, 151]] | 1 | 134 |
s = str(input())
if s == 'AAA' or s == 'BBB':
print('No')
print('Yes') | s = str(input())
if s == 'AAA' or s == 'BBB':
print('No')
exit()
print('Yes') | [["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 33 |
/*
...........__________
| ___ __
.............| |
| | /
.............| |
| | /
.............| | | __ | /
_______
.............|_______| _______ _______ |______ ________ /| /
| |/ | |
.............| \ ... | /*
...........__________
| ___ __
.............| |
| | /
.............| |
| | /
.............| | | __ | /
_______
.............|_______| _______ _______ |______ ________ /| /
| |/ | |
.............| \ ... | [["-", 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 | 235 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
#include <iostream>
using namespace __gnu_pbds;
using namespace std;
#define int long long int
#define pb push_back
#define mp make_pair
#define loop(i, x, n) for (int i = x; i <= n; i++)
#defin... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
#include <iostream>
using namespace __gnu_pbds;
using namespace std;
#define int long long int
#define pb push_back
#define mp make_pair
#define loop(i, x, n) for (int i = x; i <= n; i++)
#defin... | [["-", 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 | 130 |
s = input().rstrip()
if len(set(s)) == 1:
print("Yes")
else:
print("No")
| s = input().rstrip()
if len(set(s)) == 2:
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 | 34 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "AAA" && s == "BBB") {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "AAA" || s == "BBB") {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 59 |
#include <algorithm>
#include <cstdio>
int main() {
char s[4];
scanf("%s", s);
if (*(unsigned int *)s == *(unsigned int *)"aaa" ||
*(unsigned int *)s == *(unsigned int *)"bbb") {
puts("No");
} else {
puts("Yes");
}
return 0;
}
| #include <algorithm>
#include <cstdio>
int main() {
char s[4];
scanf("%s", s);
if (*(unsigned int *)s == *(unsigned int *)"AAA" ||
*(unsigned int *)s == *(unsigned int *)"BBB") {
puts("No");
} else {
puts("Yes");
}
return 0;
}
| [["-", 31, 16, 12, 66, 28, 74, 51, 5, 0, 6], ["+", 31, 16, 12, 66, 28, 74, 51, 5, 0, 6], ["-", 12, 16, 12, 66, 28, 74, 51, 5, 0, 6], ["+", 12, 16, 12, 66, 28, 74, 51, 5, 0, 6]] | 1 | 85 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
cin >> s;
char pre = s[0];
for (int i = 1; i < 3; i++) {
if (s[i] != pre) {
cout << "YES";
return 0;
}
}
cout << "NO";
} | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
cin >> s;
char pre = s[0];
for (int i = 1; i < 3; i++) {
if (s[i] != pre) {
cout << "Yes";
return 0;
}
}
cout << "No";
} | [["-", 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 | 79 |
a = input()
c = 'No'
for i in range(2):
if a[i] == a[i+1]:
c = 'Yes'
break
print(c) | a = input()
c = 'No'
for i in range(2):
if a[i] != a[i+1]:
c = 'Yes'
break
print(c) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]] | 5 | 41 |
// 158 A - Station and Bus 2020/3/7
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
typedef long long int int64;
typedef unsigned long long uint64;
int main() {
string s;
bool ans = true;
if (s[0] == s[1] && s[1] == s[2])
ans = false;
cout << (ans ? "Yes"... | // 158 A - Station and Bus 2020/3/7
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
typedef long long int int64;
typedef unsigned long long uint64;
int main() {
string s;
cin >> s;
bool ans = true;
if (s[0] == s[1] && s[1] == s[2])
ans = false;
cout << ... | [["+", 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 | 83 |
#include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
using namespace std;
#define ll long... | #include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
using namespace std;
#define ll long... | [["-", 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 | 250 |
str = gets.chomp
puts str
if str == "AAA" or str == "BBB"
puts "No"
else
puts "Yes"
end | str = gets.chomp
if str == "AAA" or str == "BBB"
puts "No"
else
puts "Yes"
end | [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22]] | 4 | 29 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define FORR(i, m, n) for (int i = m; i >= n; i--)
#define SORT(v, n) sort(v, v + n);
#define VSORT(v) sort(v.begin(), v.end());
#define INF 999999999
... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define FORR(i, m, n) for (int i = m; i >= n; i--)
#define SORT(v, n) sort(v, v + n);
#define VSORT(v) sort(v.begin(), v.end());
#define INF 999999999
... | [["+", 0, 43, 49, 50, 51, 41, 15, 91, 17, 111]] | 1 | 666 |
S = input()
s = set(input())
print('Yes' if len(s)>1 else 'No')
| s = set(input())
print('Yes' if len(s)>1 else 'No')
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 30 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <vector>
#define lson (rt << 1)
#define rson (rt << 1 | 1)
#define gmid ((l + r) >> 1)
#define ll long long
using namespace std;
int main() {
char s[10];
int f1 = 0, f2 = 0;
cin... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <vector>
#define lson (rt << 1)
#define rson (rt << 1 | 1)
#define gmid ((l + r) >> 1)
#define ll long long
using namespace std;
int main() {
char s[10];
int f1 = 0, f2 = 0;
cin... | [["-", 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 | 130 |
#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
// using namespace __gnu_pbds;
#define rep(i, a, b) for (i = (a); i <= (b); i++)
#define ll long long
#define pll pair<ll, ll>
#define pii pair<int, int>
#define pb push_back
#define F first
#... | #include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
// using namespace __gnu_pbds;
#define rep(i, a, b) for (i = (a); i <= (b); i++)
#define ll long long
#define pll pair<ll, ll>
#define pii pair<int, int>
#define pb push_back
#define F first
#... | [["-", 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 | 299 |
#include <bits/stdc++.h>
#define SpeeD ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#define ll long long
// pair<int, int> *p=new pair<int, int>[n];
// std::vector<pair<int,int>> vp;
// v.push_back(make_pair(x,y))
// pair<int, int> p[1001];
// string *s=new string [n];
// int freq[e];
// freq[a[i]-'a']++; fre... | #include <bits/stdc++.h>
#define SpeeD ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#define ll long long
// pair<int, int> *p=new pair<int, int>[n];
// std::vector<pair<int,int>> vp;
// v.push_back(make_pair(x,y))
// pair<int, int> p[1001];
// string *s=new string [n];
// int freq[e];
// freq[a[i]-'a']++; fre... | [["-", 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 | 182 |
#include <cstdio>
int main() {
char A, B, C;
A = getchar();
B = getchar();
C = getchar();
if (A == B && B == C)
puts("Yes");
else
puts("No");
return 0;
} | #include <cstdio>
int main() {
char A, B, C;
A = getchar();
B = getchar();
C = getchar();
if (A == B && B == C)
puts("No");
else
puts("Yes");
return 0;
} | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 61 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
bool f1, f2;
f1 = f2 = false;
if (s[0] == 'A' || s[1] == 'A' || s[2] == 'A')
f1 = true;
if (s[0] == 'B' || s[1] == 'B' || s[2] == 'b')
f2 = true;
if (f1 and f2)
cout << "No";
else
cout << "Yes";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
bool f1, f2;
f1 = f2 = false;
if (s[0] == 'A' || s[1] == 'A' || s[2] == 'A')
f1 = true;
if (s[0] == 'B' || s[1] == 'B' || s[2] == 'B')
f2 = true;
if (f1 and f2)
cout << "Yes";
else
cout << "No";
return 0;
} | [["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 118 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int LL;
typedef unsigned long long int ULL;
typedef pair<int, int> PII;
typedef map<int, int> MII;
const int SZ = 112345;
const int MOD = 1e9 + 7;
char s[4];
int main() {
scanf("%s", s);
int a = 0, b = 0;
for (int i = 0; i < 3; i++) {
if (s[... | #include <bits/stdc++.h>
using namespace std;
typedef long long int LL;
typedef unsigned long long int ULL;
typedef pair<int, int> PII;
typedef map<int, int> MII;
const int SZ = 112345;
const int MOD = 1e9 + 7;
char s[4];
int main() {
scanf("%s", s);
int a = 0, b = 0;
for (int i = 0; i < 3; i++) {
if (s[... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 149 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
template <class T> class Input {
public:
auto operator()() const {
T v;
c... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
template <class T> class Input {
public:
auto operator()() const {
T v;
c... | [["+", 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 | 581 |
s = input()
if not s[0] == s[1] == s[2]:
print('No')
else: print('Yes')
| s = input()
if s[0] == s[1] == s[2]:
print('No')
else: print('Yes')
| [["-", 36, 36, 0, 656, 0, 57, 15, 681, 0, 372]] | 5 | 36 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == s[1] && s[0] == s[2])
printf("no");
else
printf("yes");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == s[1] && s[0] == s[2])
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 | 56 |
#include <bits/stdc++.h>
using namespace std;
int a;
char s[3];
int main() {
for (int i = 0; i < 3; i++) {
cin >> s[i];
if (s[i] == 'A')
a++;
}
if (a != 3 || a != 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int a;
char s[3];
int main() {
for (int i = 0; i < 3; i++) {
cin >> s[i];
if (s[i] == 'A')
a++;
}
if (a != 3 && a != 0)
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 | 85 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "AAA" || S == "BBB")
cout << "Yes";
else
cout << "No";
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "AAA" || S == "BBB")
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 | 48 |
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
#define ll long long
int main() {
char a[3];
cin >> a;
int c1 = 0, c2 = 0;
for (int i = 0; i < 3; i++) {
if (a[0] == 'A')
c1++;
else
c2++;
}
if (c1 > 0 && c2 > 0)
cout << "Yes";
else
cout << "No";
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
#define ll long long
int main() {
char a[3];
cin >> a;
int c1 = 0, c2 = 0;
for (int i = 0; i < 3; i++) {
if (a[i] == 'A')
c1++;
else
c2++;
}
if (c1 > 0 && c2 > 0)
cout << "Yes";
else
cout << "No";
} | [["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 22]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
main() {
string a;
cin >> a;
int i, as = 0, b = 0;
for (i = 0; i < 3; i++) {
if (a[i] == 'A')
as++;
else
b++;
}
if (as != 3 && b != 3)
cout << "YES\n";
else
cout << "NO\n";
}
| #include <bits/stdc++.h>
using namespace std;
main() {
string a;
cin >> a;
int i, as = 0, b = 0;
for (i = 0; i < 3; i++) {
if (a[i] == 'A')
as++;
else
b++;
}
if (as != 3 && b != 3)
cout << "Yes\n";
else
cout << "No\n";
}
| [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 87 |
#include <cstdio>
using namespace std;
int a, b;
char ch;
int main() {
for (int i = 1; i <= 3; i++) {
ch = getchar();
if (ch == 'A')
a++;
else
b++;
}
if (a > 0 && b > 0)
printf("YES");
else
printf("NO");
return 0;
} | #include <cstdio>
using namespace std;
int a, b;
char ch;
int main() {
for (int i = 1; i <= 3; i++) {
ch = getchar();
if (ch == 'A')
a++;
else
b++;
}
if (a > 0 && b > 0)
printf("Yes");
else
printf("No");
return 0;
} | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 85 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a = 0, b = 0;
string s;
cin >> s;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A')
a++;
else
b++;
}
if (a > 0 && b > 0)
cout << "YES";
else
cout << "NO";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a = 0, b = 0;
string s;
cin >> s;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A')
a++;
else
b++;
}
if (a > 0 && b > 0)
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 | 85 |
import java.io.*;
import java.util.*;
public class Main {
/// functions
static long gcd(long a, long b) {
if (b == 0) {
return a;
}
return gcd(b, a % b);
}
static long Modpow(long a, long p, long m) {
long res = 1;
while (p > 0) {
if ((p & 1) != 0) {
res = (res * a) % m;
... | import java.io.*;
import java.util.*;
public class Main {
/// functions
static long gcd(long a, long b) {
if (b == 0) {
return a;
}
return gcd(b, a % b);
}
static long Modpow(long a, long p, long m) {
long res = 1;
while (p > 0) {
if ((p & 1) != 0) {
res = (res * a) % m;
... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 596 |
S = input()
unique_n = len(set([S[0], S[1], S[2]]))
if unique_n == 1:
ans="Yes"
else :
ans = "No"
print(ans) | S = input()
unique_n = len(set([S[0], S[1], S[2]]))
if unique_n == 1:
ans="No"
else :
ans = "Yes"
print(ans) | [["-", 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 | 50 |
import sys, bisect, math, itertools, string, queue, copy
# import numpy as np
# import scipy
from collections import Counter,defaultdict,deque
from itertools import permutations, combinations
from heapq import heappop, heappush
# input = sys.stdin.readline
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return in... | import sys, bisect, math, itertools, string, queue, copy
# import numpy as np
# import scipy
from collections import Counter,defaultdict,deque
from itertools import permutations, combinations
from heapq import heappop, heappush
# input = sys.stdin.readline
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return in... | [["-", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 302 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define MOD 1000000007
#define inf 3e18
#define ld long double
//#define mp make_pair
#define vpll vector<pair<ll, ll>>
#define sll set<ll>
#define vll vector<ll>
#define vld vector<ld>
#define vvll vector<v... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define MOD 1000000007
#define inf 3e18
#define ld long double
//#define mp make_pair
#define vpll vector<pair<ll, ll>>
#define sll set<ll>
#define vll vector<ll>
#define vld vector<ld>
#define vvll vector<v... | [["-", 0, 14, 8, 9, 0, 43, 49, 53, 49, 22], ["-", 8, 9, 0, 43, 49, 53, 54, 55, 0, 24], ["-", 8, 9, 0, 43, 49, 53, 54, 55, 0, 25], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35]] | 1 | 335 |
#include <bits/stdc++.h>
using namespace std;
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef long long ll;
typedef long double ld;
const int mod = 998244353;
const ll inf = 3e18 + 5;
int add(int a, int b) { return (a += b) < mod ? a ... | #include <bits/stdc++.h>
using namespace std;
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef long long ll;
typedef long double ld;
const int mod = 998244353;
const ll inf = 3e18 + 5;
int add(int a, int b) { return (a += b) < mod ? a ... | [["-", 0, 57, 64, 1, 0, 16, 12, 103, 0, 104], ["-", 0, 57, 64, 1, 0, 16, 12, 103, 0, 125], ["-", 64, 1, 0, 16, 12, 103, 0, 42, 0, 22], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 62], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 174 |
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
#define REP(i, n) f... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
#define REP(i, n) f... | [["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]] | 1 | 141 |
#include <iostream>
using namespace std;
int main() {
char a, b, c;
cin >> a >> b >> c;
if (a == b && a == c) {
cout << "Yes";
} else {
cout << "No";
}
} | #include <iostream>
using namespace std;
int main() {
char a, b, c;
cin >> a >> b >> c;
if (a == b && a == c) {
cout << "No";
} else {
cout << "Yes";
}
}
| [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 54 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, a, n) for (int i = a; i < n; i++)
typedef pair<int, int> P;
typedef long long ll;
signed main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
string s;
cin >> s;
if (s[0] == s[1] || s[1] == s[2]) {
cout << "No";
retu... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, a, n) for (int i = a; i < n; i++)
typedef pair<int, int> P;
typedef long long ll;
signed main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
string s;
cin >> s;
if (s[0] == s[1] && s[1] == s[2]) {
cout << "No";
retu... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 105 |
s = input()
s = split(s)
if s[0]==s[1]==s[2]:
print("No")
else:
print("Yes") | s = input()
if s[0]==s[1]==s[2]:
print("No")
else:
print("Yes")
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 41 |
// Let's play :)
#include <bits/stdc++.h>
using namespace std;
#define tarzan \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NU... | // Let's play :)
#include <bits/stdc++.h>
using namespace std;
#define tarzan \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NU... | [["-", 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 | 144 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define P pair<long long, long long>
using namespace std;
const long long int MOD = 1e9 + 7;
int main() {
string s;
cin >> s;
if (s[0] == s[1] && s[1] == s[2]) {
cout ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define P pair<long long, long long>
using namespace std;
const long long int MOD = 1e9 + 7;
int main() {
string s;
cin >> s;
if (s[0] == s[1] && s[1] == s[2]) {
cout ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 89 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
string S;
cin >> S;
for (int i = 0; i < 1; i++) {
if (S[i] != S[i + 1]) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
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, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 71 |
A = set(list(input()))
print(A)
if len(A) == 1:
print("No")
else:
print("Yes")
| A = set(list(input()))
if len(A) == 1:
print("No")
else:
print("Yes")
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 37 |
#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (ll(i) = 0; (i) < (ll)(n); ++(i))
#define REPN(i, m, n) for (ll(i) = m; (i) < (ll)(n); ++(i))
#define REP_REV(i, n) for (ll(i) = (ll)(n)-1; (i) >= 0; --(i))
#define REPN_REV(i, m, n) for (ll(i) = (ll)(n)-1; (i) >= m; --(i))
#define INF 2e9
#define IN... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (ll(i) = 0; (i) < (ll)(n); ++(i))
#define REPN(i, m, n) for (ll(i) = m; (i) < (ll)(n); ++(i))
#define REP_REV(i, n) for (ll(i) = (ll)(n)-1; (i) >= 0; --(i))
#define REPN_REV(i, m, n) for (ll(i) = (ll)(n)-1; (i) >= m; --(i))
#define INF 2e9
#define IN... | [["+", 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 | 125 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
// your code goes here
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;
#define ll long long int
int main() {
// your code goes here
string s;
cin >> s;
sort(s.begin(), s.end());
if (s[0] == s[2]) {
cout << "No";
} else {
cout << "Yes";
}
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 | 70 |
#include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define M1 1000000007
#define M2 998244353
#define ll long long
#define pll pair<ll, ll>
#define REP(i, a, b) for (ll i = a; i < b; i++)
#define REPI(i, a, b) for (ll i... | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define M1 1000000007
#define M2 998244353
#define ll long long
#define pll pair<ll, ll>
#define REP(i, a, b) for (ll i = a; i < b; i++)
#define REPI(i, a, b) for (ll i... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 2,002 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String s = new Scanner(System.in).nextLine();
if (s.indexOf('A') != -1 && s.indexOf('B') != -1) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String s = new Scanner(System.in).nextLine();
if (s.indexOf('A') != -1 && s.indexOf('B') != -1) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
| [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 88 |
import java.util.*;
// update 2020/1/1 23:01
public class Main {
static Scanner sc = new Scanner(System.in);
static StringBuilder sb = new StringBuilder();
public static void main(String[] args) {
String s = next();
String[] ss = splitString(s);
if (ss[0].equals(ss[1]) && ss[0].equals(ss[2])) {
... | import java.util.*;
// update 2020/1/1 23:01
public class Main {
static Scanner sc = new Scanner(System.in);
static StringBuilder sb = new StringBuilder();
public static void main(String[] args) {
String s = next();
String[] ss = splitString(s);
if (ss[0].equals(ss[1]) && ss[0].equals(ss[2])) {
... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 519 |
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep3(i, m, n) for (int(i) = m; (i) <= (n); (i)++)
#define rep3rev(i, m, n) for (int(i) = m; (i) >= (n); (i)--)
#define all(a) (a.begin()), (a.end())
#define rall(a) (a.rbegin()), (a.rend())
#define fi first
#defi... | #include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep3(i, m, n) for (int(i) = m; (i) <= (n); (i)++)
#define rep3rev(i, m, n) for (int(i) = m; (i) >= (n); (i)--)
#define all(a) (a.begin()), (a.end())
#define rall(a) (a.rbegin()), (a.rend())
#define fi first
#defi... | [["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]] | 1 | 189 |
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;
int main() {
string s;
cin >> s;
bool a = false, b = false;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A')
a = true;
if (s[i] = 'B')
b = true;
}
if (a && b)... | #include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;
int main() {
string s;
cin >> s;
bool a = false, b = false;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A')
a = true;
if (s[i] == 'B')
b = true;
}
if (a && b... | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 123 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef vector<string> vst;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pii> vii;
typedef vector<pll> vll;
#define fastio ... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef vector<string> vst;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pii> vii;
typedef vector<pll> vll;
#define fastio ... | [["+", 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 | 287 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rng(i, a, b) for (int i = int(a); i < int(b); i++)
#define rep(i, b) rng(i, 0, b)
#define urng(i, a, b) for (int i = int(b) - 1; i >= int(a); i--)
#define urep(i, b) urng(i, 0, b)
#define pb push_back
#define eb emplace_back
#define F first
#d... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rng(i, a, b) for (int i = int(a); i < int(b); i++)
#define rep(i, b) rng(i, 0, b)
#define urng(i, a, b) for (int i = int(b) - 1; i >= int(a); i--)
#define urep(i, b) urng(i, 0, b)
#define pb push_back
#define eb emplace_back
#define F first
#d... | [["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 98], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 106]] | 1 | 128 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll gcd(ll a, ll b) {
if (b == 0) {
return a;
} else {
return gcd(b, (a % b));
}
}
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
ll mpower(ll a, ll b, ll c) {
int z;
if (b == 0) {
z = 1;
z %= c;
return z;
}
if (b == ... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll gcd(ll a, ll b) {
if (b == 0) {
return a;
} else {
return gcd(b, (a % b));
}
}
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
ll mpower(ll a, ll b, ll c) {
int z;
if (b == 0) {
z = 1;
z %= c;
return z;
}
if (b == ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]] | 1 | 233 |
#include <bits/stdc++.h>
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 <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;
}
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 | 60 |
/*
* short 2^15-1 ~ 3e4
* int, long x86 2^31-1 ~ 2e9
* long long 2^63-1 ~ 9e18
*/
#include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define mp make_pair
#define fr(a, b) for (int a = 0; a < b; ++a)
using namespace std;
typedef long long ll;
const int inf = numeric_limits<... | /*
* short 2^15-1 ~ 3e4
* int, long x86 2^31-1 ~ 2e9
* long long 2^63-1 ~ 9e18
*/
#include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define mp make_pair
#define fr(a, b) for (int a = 0; a < b; ++a)
using namespace std;
typedef long long ll;
const int inf = numeric_limits<... | [["-", 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 | 320 |
#include <bits/stdc++.h>
#define ll long long
#define int long long int
#define MOD 1000000007
#define mkp make_pair
#define maxN 100005
#define pb push_back
#define ff first
#define ss second
#define debug1(a) cout << a << endl;
#define debug2(a, b) cout << a << ' ' << b << endl;
#define debug3(a, b, c) cout << a << '... | #include <bits/stdc++.h>
#define ll long long
#define int long long int
#define MOD 1000000007
#define mkp make_pair
#define maxN 100005
#define pb push_back
#define ff first
#define ss second
#define debug1(a) cout << a << endl;
#define debug2(a, b) cout << a << ' ' << b << endl;
#define debug3(a, b, c) cout << a << '... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35]] | 1 | 522 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long n, i, j, k, sum = 0, ans = 0, count = 0, c1 = 0, c2 = 0, x = -1, p,
mn;
string s;
cin >> s;
for (i = 0; i < s.length(); i++) {
if (s[i] == 'A')
count++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long n, i, j, k, sum = 0, ans = 0, count = 0, c1 = 0, c2 = 0, x = -1, p,
mn;
string s;
cin >> s;
for (i = 0; i < s.length(); i++) {
if (s[i] == 'A')
count++;
... | [["-", 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 | 127 |
#include <iostream>
#include <sstream>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <algorithm>
#include <bitset>
#include <cmath>
#include <ctype.h>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long int ll... | #include <iostream>
#include <sstream>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <algorithm>
#include <bitset>
#include <cmath>
#include <ctype.h>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long int ll... | [["-", 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 | 119 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.