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 |
|---|---|---|---|---|
def main():
s = input()
if s != "AAA" or s != "BBB":
print("Yes")
else:
print("No")
if __name__ == "__main__":
main()
| def main():
s = input()
if s != "AAA" and s != "BBB":
print("Yes")
else:
print("No")
if __name__ == "__main__":
main()
| [["-", 0, 14, 8, 196, 0, 57, 15, 679, 17, 354], ["+", 0, 14, 8, 196, 0, 57, 15, 679, 17, 355]] | 5 | 47 |
#include <iostream>
#include <string>
using namespace std;
string s;
int main() {
cin >> s;
if (s == "AAA" || s == "BBB") {
cout << "NO" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
string s;
int main() {
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 | 59 |
#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
const long long mod = 1e9 + 7;
const int dx[4] = {0, 1, 0, -1};
const int dy[4] = {1, 0, -1, 0};
const int ddx[4] = {1, 1, -1, -1};
const int ddy[4] = {1, -1, -1, 1};
//////////////////////////////////
int main() {
string s;
cin >>... | #include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
const long long mod = 1e9 + 7;
const int dx[4] = {0, 1, 0, -1};
const int dy[4] = {1, 0, -1, 0};
const int ddx[4] = {1, 1, -1, -1};
const int ddy[4] = {1, -1, -1, 1};
//////////////////////////////////
int main() {
string s;
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 | 138 |
#include <bits/stdc++.h>
using namespace std;
#define name ""
#define ini \
freopen(name ".inp", "r", stdin); \
freopen(name ".out", "w", stdout)
#define foe(it, c) for (__typeof(c.begin()) it = c.begin();... | #include <bits/stdc++.h>
using namespace std;
#define name ""
#define ini \
freopen(name ".inp", "r", stdin); \
freopen(name ".out", "w", stdout)
#define foe(it, c) for (__typeof(c.begin()) it = c.begin();... | [["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 143 |
#include <stdio.h>
int main(void) {
char s[4];
scanf("%s", s);
if (s[0] == s[1] && s[1] == s[2])
printf("No");
else {
printf("No");
}
return 0;
} | #include <stdio.h>
int main(void) {
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, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 66 |
S = list(input())
if len(set(S))==2 :
print('Yse')
else:
print('No') | S = list(input())
if len(set(S))==2:
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 | 33 |
s = str(input())
if s is "AAA":
print("No")
elif s is "BBB":
print("No")
else:
print("Yes") | s = str(input())
if s == "AAA":
print("No")
elif s == "BBB":
print("No")
else:
print("Yes") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 709], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 709], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60]] | 5 | 42 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s[3];
for (int i = 0; i < 3; i++) {
cin >> s[i];
}
if ((s[0] == s[1]) && (s[1] == s[2])) {
cout << "No";
} else {
cout << "Yes";
}
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])) {
cout << "No";
} else {
cout << "Yes";
}
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 80, 0, 70], ["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 14, 8, 9, 0, 43, 49, 80, 0, 73]] | 1 | 87 |
import java.util.*;
import javax.lang.model.util.ElementScanner6;
/**
* test
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
if (s.equals("AAA")) {
System.out.println("No");
} else if (s.equals("BBB")) {
System.... | import java.util.*;
import javax.lang.model.util.ElementScanner6;
/**
* test
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
if (s.equals("AAA")) {
System.out.println("No");
} else if (s.equals("BBB")) {
System.... | [["-", 0, 1, 0, 492, 3, 4, 0, 492, 500, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 492, 0, 131], ["-", 0, 1, 0, 492, 3, 4, 0, 492, 141, 22], ["-", 0, 492, 3, 4, 0, 492, 3, 4, 0, 24], ["-", 0, 492, 3, 4, 0, 492, 3, 4, 0, 25]] | 3 | 124 |
import sys
s = sys.stdin.readline()
if s == 'AAA' or s == 'BBB':
print('No')
else:
print('Yes')
| import sys
s = sys.stdin.readline().rstrip()
if s == 'AAA' or s == 'BBB':
print('No')
else:
print('Yes')
| [["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 38 |
/* _
_ooOoo_
o8888888o
88" . "88
(| -_- |)
O\ = /O
____/`---'\____
.' \\| |// `.
/ \\||| : |||// \
... | /* _
_ooOoo_
o8888888o
88" . "88
(| -_- |)
O\ = /O
____/`---'\____
.' \\| |// `.
/ \\||| : |||// \
... | [["+", 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 | 437 |
// RAKSHIT KADAM
#include <bits/stdc++.h>
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
// #define ordered_set tree< int , null_type , less<int> , rb_tree_tag ,
// tree_order_statistics_node_update>
#warning !!!check the size of arrayss!!!
#defin... | // RAKSHIT KADAM
#include <bits/stdc++.h>
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
// #define ordered_set tree< int , null_type , less<int> , rb_tree_tag ,
// tree_order_statistics_node_update>
#warning !!!check the size of arrayss!!!
#defin... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 67], ["+", 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, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 212 |
/*dismint|jjc*/
#include <bits/stdc++.h>
using namespace std;
#define forl(V, S, E) for (int V = S; V < E; V++)
#define ford(V, S, E) for (int V = S; V >= E; V--)
#define fore(E, X) for (auto &E : X)
#define println(X) cout << X << endl
#define printe(X) \
... | /*dismint|jjc*/
#include <bits/stdc++.h>
using namespace std;
#define forl(V, S, E) for (int V = S; V < E; V++)
#define ford(V, S, E) for (int V = S; V >= E; V--)
#define fore(E, X) for (auto &E : X)
#define println(X) cout << X << endl
#define printe(X) \
... | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 147 |
S=input()
if S[0]==S[1]:
print('Yes')
elif S[1]==S[2]:
print('Yes')
elif S[0]==S[2]:
print('Yes')
else:
print('No')
| S=input()
if S[0]!=S[1]:
print('Yes')
elif S[1]!=S[2]:
print('Yes')
elif S[0]!=S[2]:
print('Yes')
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 79], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 79]] | 5 | 64 |
p gets.chomp.split('').uniq.size.eql?(2) ? 'Yes' : 'No'
| puts gets.chomp.split('').uniq.size.eql?(2) ? 'Yes' : 'No'
| [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]] | 4 | 27 |
s = input()
if s[0] == s[1] or s[1] == s[2]: print('No')
else: print('Yes') | s=input()
if s[0] == s[1] and s[1] == s[2]:
print('No')
else:
print('Yes') | [["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]] | 5 | 40 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, i;
set<char> s;
char x;
for (i = 1; i <= 3; i++) {
cin >> x;
s.insert(x);
}
if (s.size() == 1)
cout << "NO\n";
else
cout << "Yes\n";
} |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, i;
set<char> s;
char x;
for (i = 1; i <= 3; i++) {
cin >> x;
s.insert(x);
}
if (s.size() == 1)
cout << "No\n";
else
cout << "Yes\n";
} | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 81 |
s = input()
if s == 'AAA':
print('No')
if s == 'BBB':
print('No')
else:
print('Yes') | s = input()
if s == 'AAA':
print('No')
elif s == 'BBB':
print('No')
else:
print('Yes')
| [["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]] | 5 | 39 |
str = input()
a = False
b = False
for ch in str:
if ch == 'A':
a = True
else:
b = True
if a and b:
print("YES")
else:
print("NO")
| str = input()
a = False
b = False
for ch in str:
if ch == 'A':
a = True
else:
b = True
if a and b:
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 | 50 |
#include <algorithm>
#include <iostream>
#include <numeric>
#include <string>
#include <vector>
//#include <stdio.h>
//#include <stack>
//#include <queue>
//#include <cstdio>
#include <cmath>
#include <fstream>
#include <iterator>
#include <map>
//#include <list>
#include <iomanip>
//#include <stdlib.h>
//#include <cct... | #include <algorithm>
#include <iostream>
#include <numeric>
#include <string>
#include <vector>
//#include <stdio.h>
//#include <stack>
//#include <queue>
//#include <cstdio>
#include <cmath>
#include <fstream>
#include <iterator>
#include <map>
//#include <list>
#include <iomanip>
//#include <stdlib.h>
//#include <cct... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]] | 1 | 1,065 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 134 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int i, a = 0, b = 0;
for (i = 0; i <= 2; i++) {
if (s[i] == 'A')
a++;
else
b++;
}
if (a == 3 || b == 3)
cout << "Yes\n";
else
cout << "No\n";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int i, a = 0, b = 0;
for (i = 0; i <= 2; i++) {
if (s[i] == 'A')
a++;
else
b++;
}
if (a == 3 || b == 3)
cout << "No\n";
else
cout << "Yes\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 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
char a, b, c;
cin >> a >> b >> c;
if (a == 'A' && b == 'A' && c == 'A') {
cout << "No" << endl;
}
if (a == 'B' && b == 'B' && c == 'B') {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
char a, b, c;
cin >> a >> b >> c;
if (a == 'A' && b == 'A' && c == 'A') {
cout << "No" << endl;
} else if (a == 'B' && b == 'B' && c == 'B') {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 98 |
s = input()
num = len(set(s)) # set型に変換するとダブりが消えるので、lenで種類数がわかる
if num > 1:
print("No")
else:
print("Yes") | s = input()
num = len(set(s)) # set型に変換するとダブりが消えるので、lenで種類数がわかる
if num == 1:
print("No")
else:
print("Yes") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60]] | 5 | 34 |
a = input()
if a == 'AAA' or 'BBB':
print('No')
else:
print('Yes') | a = input()
if a in ('AAA','BBB'):
print('No')
else:
print('Yes') | [["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 267], ["+", 0, 656, 0, 57, 15, 666, 0, 660, 0, 24], ["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 666, 0, 660, 0, 21], ["+", 0, 656, 0, 57, 15, 666, 0, 660, 0, 25]] | 5 | 30 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define alpha_size 26
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
set<char> s;
for (int i = 0; i < 3; i++) {
char c;
cin >> c;
s.insert(c);
}
if (s.size() == 1)
cout << "Yes" <... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define alpha_size 26
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
set<char> s;
for (int i = 0; i < 3; i++) {
char c;
cin >> c;
s.insert(c);
}
if (s.size() == 2)
cout << "Yes" <... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 102 |
#include <algorithm>
#include <bits/stdc++.h>
#define SIZE_OF_ARRAY(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
int main() {
string s; //整数の数
cin >> s;
char *c = new char[3];
for (int i = 0; i < 3; i++) {
c[i] = s.at(i);
}
if (c[0] == c[1] && c[1] == c[2]) {
cout << "No";
ret... | #include <algorithm>
#include <bits/stdc++.h>
#define SIZE_OF_ARRAY(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
int main() {
string s; //整数の数
cin >> s;
char *c = new char[3];
for (int i = 0; i < 3; i++) {
c[i] = s.at(i);
}
if (c[0] == c[1] && c[1] == c[2]) {
cout << "No";
re... | [["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35], ["+", 0, 57, 75, 76, 0, 9, 0, 37, 0, 38], ["+", 0, 57, 75, 76, 0, 9, 0, 37, 0, 13]] | 1 | 108 |
'use strict';
function main(input) {
input = input.split("\n");
const a = input[0];
if (a[0] === a[1] && a[1] === a[2]) {
console.log('Yes');
} else {
console.log('No');
}
}
main(require("fs").readFileSync("/dev/stdin", "utf8")); | 'use strict';
function main(input) {
input = input.split("\n");
const a = input[0];
if (a[0] === a[1] && a[1] === a[2]) {
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 | 96 |
#include <bits/stdc++.h>
using namespace std;
#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 ALL(v) v.begin(), v.end()
#define CMAX(m, x) m = max(m, x);
#define CMIN(m, x) m = min(m, x);
#define itn int
typedef long ... | #include <bits/stdc++.h>
using namespace std;
#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 ALL(v) v.begin(), v.end()
#define CMAX(m, x) m = max(m, x);
#define CMIN(m, x) m = min(m, x);
#define itn int
typedef long ... | [["-", 15, 339, 51, 16, 31, 16, 12, 5, 0, 6], ["+", 15, 339, 51, 16, 31, 16, 12, 5, 0, 6], ["-", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6], ["+", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6]] | 1 | 121 |
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<char> s(3);
bool flag = false;
for (int i = 0; i < 3; i++)
cin >> s[i];
for (int i = 0; i < 2; i++) {
if (s[i] != s[i + 1])
flag = true;
}
if (flag)
cout << "yes" << endl;
else
cout << "no" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<char> s(3);
bool flag = false;
for (int i = 0; i < 3; i++)
cin >> s[i];
for (int i = 0; i < 2; i++) {
if (s[i] != s[i + 1])
flag = true;
}
if (flag)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 102 |
def station(comp):
if(len(set(comp))==0):
print("No")
else:
print("Yes")
station(input()) | def station(comp):
if(len(set(comp)) == 1):
print("No")
else:
print("Yes")
station(input()) | [["-", 8, 196, 0, 57, 15, 23, 0, 666, 0, 612], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 0, 612]] | 5 | 39 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
string s;
cin >> s;
sort(s.begin(), s.end());
if (s[0] == s[2])
cout << "NO";
else
cout << "YES";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
string s;
cin >> s;
sort(s.begin(), s.end());
if (s[0] == s[2])
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 | 73 |
#include <bits/stdc++.h>
using namespace std;
int main() {
char s;
bool a = false;
bool b = false;
for (int i = 0; i < 3; ++i) {
scanf("%c", &s);
if (s == 'A')
a = true;
else if (s == 'B')
b = true;
}
if (a && b)
printf("YES\n");
else
printf("NO\n");
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
bool a = false;
bool b = false;
for (int i = 0; i < 3; ++i) {
scanf("%c", &s);
if (s == 'A')
a = true;
else if (s == 'B')
b = true;
}
if (a && b)
printf("Yes\n");
else
printf("No\n");
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 | 102 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "AAA" || S == "BBB") {
cout << "No";
}
cout << "Yes";
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, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 50 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define FOR(n) for (int i = 0; i < n; i++)
#define FORJ(n) for (int j = 0; j < n; j++)
#define PRN(n) printf("%d\n", n)
#define PRF(n) printf("%lf\n", n)
#define PRL(n) printf("%lld\n", n)
#define PRS(s) printf("%s\n", s)
#define PRC(c) printf... | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define FOR(n) for (int i = 0; i < n; i++)
#define FORJ(n) for (int j = 0; j < n; j++)
#define PRN(n) printf("%d\n", n)
#define PRF(n) printf("%lf\n", n)
#define PRL(n) printf("%lld\n", n)
#define PRS(s) printf("%s\n", s)
#define PRC(c) printf... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 577 |
# import module
import sys
import math
import numpy as np
S = input()
if S.find("A") != -1 and S.find("B") != 0:
print("Yes")
else:
print("No") | # import module
import sys
import math
import numpy as np
S = input()
if S.find("A") != -1 and S.find("B") != -1:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612], ["+", 0, 57, 15, 679, 12, 666, 0, 664, 17, 33], ["+", 0, 57, 15, 679, 12, 666, 0, 664, 28, 612]] | 5 | 52 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define all(t) t.begin(), t.end()
#define inrange(i, a, b) (((i) >= min((a), (b))) && ((i) <= max((a), (b))))
typedef vector<ll> vi;
#define fi first
#define se second
const ll inf = 9e18;
const ll mod = 1e9 + 7;
void print(ll a[],... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define all(t) t.begin(), t.end()
#define inrange(i, a, b) (((i) >= min((a), (b))) && ((i) <= max((a), (b))))
typedef vector<ll> vi;
#define fi first
#define se second
const ll inf = 9e18;
const ll mod = 1e9 + 7;
void print(ll a[],... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 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 | 369 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define P pair<ll, ll>
#define ALL(a) (a).begin(), (a).end()
#define YESNO(i) \
if ((i)) \
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define P pair<ll, ll>
#define ALL(a) (a).begin(), (a).end()
#define YESNO(i) \
if ((i)) \
... | [["+", 0, 1, 0, 2, 3, 4, 0, 91, 17, 111], ["+", 0, 2, 3, 4, 0, 91, 28, 23, 0, 24], ["+", 0, 2, 3, 4, 0, 91, 28, 23, 0, 25]] | 1 | 101 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define P pair<ll, ll>
#define rep(i, n) for (ll(i) = 0; (i) < (n); ++(i))
#define print(a) cout << (a) << endl
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
string s;
cin >> s;
if (s == "AAA" || s == "BBB")... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define P pair<ll, ll>
#define rep(i, n) for (ll(i) = 0; (i) < (n); ++(i))
#define print(a) cout << (a) << endl
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
string s;
cin >> s;
if (s == "AAA" || s == "BBB")... | [["-", 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 | 88 |
#include <bits/stdc++.h>
#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define fst first
#define snd second
#define pb push_back
#define ALL(x) x.begin(), x.end()
#define EPS (1e-9)
#define equals(a, b) (fabs((a) - (b)) < EPS)
using namespace std;
bool LT(double a, double b) { retur... | #include <bits/stdc++.h>
#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define fst first
#define snd second
#define pb push_back
#define ALL(x) x.begin(), x.end()
#define EPS (1e-9)
#define equals(a, b) (fabs((a) - (b)) < EPS)
using namespace std;
bool LT(double a, double b) { retur... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 193 |
#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, 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, 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, ... | 1 | 53 |
S=input()
same=["AAA","BBB"]
if S in same:
print("Yes")
else:
print("No") | S=input()
same=["AAA","BBB"]
if S in same:
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 |
chaine = input()
repA = 0
repB = 0
for i in chaine:
if i=='A':
repA += 1
else:
repB += 1
if repB==3 or repA==3:
print("No")
else:
print("yes") | chaine = input()
repA = 0
repB = 0
for i in chaine:
if i=='A':
repA += 1
else:
repB += 1
if repB==3 or repA==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 | 54 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if ((S.at(0) == S.at(1)) && (S.at(1) = S.at(2))) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if ((S.at(0) == S.at(1)) && (S.at(1) == S.at(2))) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [["-", 15, 339, 51, 16, 12, 23, 0, 42, 0, 32], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 60]] | 1 | 74 |
S = list(input())
if S[0] == S[1] & S[1] == S[2]:
print('No')
else:
print("Yes") | S = list(input())
if (S[0] == S[1]) & (S[1] == S[2]):
print('No')
else:
print("Yes") | [["+", 0, 656, 0, 57, 15, 657, 31, 23, 0, 24], ["+", 0, 656, 0, 57, 15, 657, 31, 23, 0, 25], ["+", 0, 656, 0, 57, 15, 657, 12, 23, 0, 24], ["+", 0, 656, 0, 57, 15, 657, 12, 23, 0, 25]] | 5 | 43 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int conA = 0, conB = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'A')
conA++;
if (s[i] == 'B')
conB++;
}
if (conA == 1 && conB == 2)
cout << "Yes";
if (conA == 2 && conB == 1)
cout << "Yes"... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int conA = 0, conB = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'A')
conA++;
if (s[i] == 'B')
conB++;
}
if (conA == 1 && conB == 2)
cout << "Yes";
else if (conA == 2 && conB == 1)
cout << ... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 118 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
if (str.at(0) == str.at(1) || str.at(0) == str.at(2) ||
str.at(1) == str.at(2)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
if (str.at(0) == str.at(1) && str.at(0) == str.at(2) &&
str.at(1) == str.at(2)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 84 |
def Main(S):
return "Yes" if 'A' in S and 'B' in S else "No"
def main():
S = str(input())
print(Main(N))
if __name__ == '__main__':
main() | def Main(S):
return "Yes" if 'A' in S and 'B' in S else "No"
def main():
S = str(input())
print(Main(S))
if __name__ == '__main__':
main() | [["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22]] | 5 | 56 |
S = input()
if set(S) == 2:
print("Yes")
else:
print("No") | S = input()
if len(set(S)) == 2:
print("Yes")
else:
print("No") | [["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 27 |
S = ARGV[0]
if S.include?('A') && S.include?('B')
print('Yes')
else
print('No')
end | S = gets
if S.include?('A') && S.include?('B')
print('Yes')
else
print('No')
end | [["-", 36, 36, 0, 493, 0, 662, 12, 742, 500, 743], ["-", 36, 36, 0, 493, 0, 662, 12, 742, 0, 70], ["-", 36, 36, 0, 493, 0, 662, 12, 742, 0, 612], ["-", 36, 36, 0, 493, 0, 662, 12, 742, 0, 73], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 12, 22]] | 4 | 38 |
S = input();
if S == "AAA" or "BBB":
print("No");
else:
print("Yes");
| S = input();
if S == "AAA" or S == "BBB":
print("No");
else:
print("Yes"); | [["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 60]] | 5 | 33 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
if (str.find("AB") != std::string::npos &&
str.find("BA") != std::string::npos) {
puts("Yes");
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
if (str.find("AB") != std::string::npos ||
str.find("BA") != std::string::npos) {
puts("Yes");
} else {
cout << "No" << endl;
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 71 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int x = 0, y = 0;
for (int i = 0; i < 3; i++) {
if (S[i] == 'A')
x++;
else
y++;
}
if (x == 3 || y == 3)
cout << "NO";
else
cout << "YES";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int x = 0, y = 0;
for (int i = 0; i < 3; i++) {
if (S[i] == 'A')
x++;
else
y++;
}
if (x == 3 || y == 3)
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 | 88 |
string = str(input())
if ( (string[0]=='A' or string[1]=='A' and string[2]=='A') and (string[0]=='B' or string[1]=='B' and string[2]=='B')):
print('Yes')
else:
print('No') | string = str(input())
if ( (string[0]=='A' or string[1]=='A' or string[2]=='A') and (string[0]=='B' or string[1]=='B' or string[2]=='B')):
print('Yes')
else:
print('No') | [["-", 0, 679, 31, 23, 0, 679, 12, 679, 17, 355], ["+", 15, 23, 0, 679, 31, 23, 0, 679, 17, 354], ["-", 0, 679, 12, 23, 0, 679, 12, 679, 17, 355], ["+", 15, 23, 0, 679, 12, 23, 0, 679, 17, 354]] | 5 | 83 |
#include <bits/stdc++.h>
//#include <string>
using namespace std;
int main() {
string S;
cin >> S;
bool allA = true;
bool allB = false;
for (int i = 0; i < 3; i++) {
if (S[i] == 'B')
allA = false;
if (S[i] == 'A')
allB = false;
}
if (allA || allB) {
cout << "No";
} else
cout ... | #include <bits/stdc++.h>
//#include <string>
using namespace std;
int main() {
string S;
cin >> S;
bool allA = true;
bool allB = true;
for (int i = 0; i < 3; i++) {
if (S[i] == 'B')
allA = false;
if (S[i] == 'A')
allB = false;
}
if (allA || allB) {
cout << "No";
} else
cout <... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 147], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 146]] | 1 | 100 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "AAA" && s == "BBB")
cout << "No" << endl;
else
cout << "Yes" << endl;
}
| #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "AAA" || s == "BBB")
cout << "No" << endl;
else
cout << "Yes" << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 56 |
#include <stdio.h>
int main(void) {
char S[3];
scanf("%s", S);
if (S[0] == S[1] == S[2]) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
char S[3];
scanf("%s", S);
if (S[0] == S[1] && S[1] == S[2]) {
printf("No\n");
} else {
printf("Yes\n");
}
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 | 65 |
package main
import "fmt"
// https://atcoder.jp/contests/abc158/tasks/abc158_a
func main() {
var s string
fmt.Scan(&s)
slice := split(s)
if slice[0] == slice[1] && slice[0]== slice[2] {
fmt.Println("No")
}
fmt.Println("Yes")
}
func split(s string) []string {
ret := make([]string, len([]rune(s)))
for i, v... | package main
import "fmt"
// https://atcoder.jp/contests/abc158/tasks/abc158_a
func main() {
var s string
fmt.Scan(&s)
slice := split(s)
if slice[0] == slice[1] && slice[0]== slice[2] {
fmt.Println("No")
return
}
fmt.Println("Yes")
}
func split(s string) []string {
ret := make([]string, len([]rune(s)))
... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 435, 8, 196, 0, 57, 64, 196, 0, 165]] | 7 | 135 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define eb(t) emplace_back(t)
typedef long long ll;
typedef long long unsigned int llu;
ll MOD = 1000000007;
ll INF = 1000000009;
void solve() {
string st;
cin >> st;
if (st[0] == st[1] && st[1] == st[2])
cout << "Yes... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define eb(t) emplace_back(t)
typedef long long ll;
typedef long long unsigned int llu;
ll MOD = 1000000007;
ll INF = 1000000009;
void solve() {
string st;
cin >> st;
if (st[0] == st[1] && st[1] == st[2])
cout << "No"... | [["-", 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 | 121 |
lit = str(input())
print("Yes" if "A" in lit and "B" in lit else "B") | lit = str(input())
print("Yes" if "A" in lit and "B" in lit else "No") | [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 30 |
#include <bits/stdc++.h>
using namespace std;
int main() {
char s[3];
scanf("%s", s);
if (s[0] == s[1] == s[2]) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
char s[3];
scanf("%s", s);
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 | 65 |
s = [i for i in input()]
s0 = s[0]
for j in s[1:]:
if s0 != j:
print("No")
exit()
s0 = j
print("Yes") | s = [i for i in input()]
s0 = s[0]
for j in s[1:]:
if s0 != j:
print("Yes")
exit()
s0 = j
print("No") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 49 |
S = input()
tList = list(S)
firstStation = tList[0]
Monopoly = 0
for str in tList:
if(str == firstStation):
Monopoly = 0
else:
Monopoly = 1
break
if(Monopoly == 0):
print('NO')
else:
print('YES') | S = input()
tList = list(S)
firstStation = tList[0]
Monopoly = 0
for str in tList:
if(str == firstStation):
Monopoly = 0
else:
Monopoly = 1
break
if(Monopoly == 0):
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 | 62 |
s = list(input())
if s[0] == s[1] and s[1] == s[2] and s[0] == s[2]:
print('Yes')
else:
print('No')
| s = list(input())
if s[0] == s[1] and s[1] == s[2] and s[0] == 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 | 53 |
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<char> S(3);
cin >> S.at(0) >> S.at(1) >> S.at(2);
if (S.at(0) == S.at(1) && S.at(0) == S.at(1)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<char> S(3);
cin >> S.at(0) >> S.at(1) >> S.at(2);
if (S.at(0) == S.at(1) && S.at(0) == 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]] | 1 | 95 |
x = input()
print(["Yes","No"][x == "AAA" | x == "BBB"]) | x = input()
print(["Yes","No"][(x == "AAA") | (x == "BBB")])
| [["+", 3, 4, 0, 206, 206, 657, 31, 23, 0, 24], ["+", 3, 4, 0, 206, 206, 657, 31, 23, 0, 25], ["+", 3, 4, 0, 206, 206, 657, 12, 23, 0, 24], ["+", 3, 4, 0, 206, 206, 657, 12, 23, 0, 25]] | 5 | 30 |
S = input()
if "AB" in S or "BA" in S:
print("yes")
else:
print("no") | S = input()
if "AB" in S or "BA" in S:
print("Yes")
else:
print("No") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 32 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.at(0) != s.at(1) && s.at(1) != s.at(2)) {
cout << "Yes";
} else
cout << "No";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.at(0) == s.at(1) && s.at(1) == s.at(2)) {
cout << "No";
} else
cout << "Yes";
} | [["-", 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, 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, ... | 1 | 64 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == s[1] && s[1] == s[2]) {
cout << "NO\n";
} else {
cout << "YES\n";
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == s[1] && s[1] == s[2]) {
cout << "No\n";
} else {
cout << "Yes\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 | 60 |
a,b,c = input().split()
print("No") if a == b and b == c and c == a else print("Yes") | a,b,c = list(input())
print("No") if a==b and b==c and c==a else print("Yes") | [["+", 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, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]] | 5 | 38 |
def judge(S):
if S=="AAA" or S=="BBB":
return "Yes"
else:
return "No"
S=input()
print(judge(S)) | def judge(S):
if S=="AAA" or S=="BBB":
return "No"
else:
return "Yes"
S=input()
print(judge(S)) | [["-", 0, 57, 64, 196, 0, 37, 0, 557, 0, 6], ["+", 0, 57, 64, 196, 0, 37, 0, 557, 0, 6], ["-", 75, 76, 8, 196, 0, 37, 0, 557, 0, 6], ["+", 75, 76, 8, 196, 0, 37, 0, 557, 0, 6]] | 5 | 41 |
S = str(input())
flag=1
if S[0]==S[1]:
if S[1]==S[2]:
flag=0
if flag==0:
print('Yes')
else:
print('No') | S = str(input())
flag=1
if S[0]==S[1]:
if S[1]==S[2]:
flag=0
if flag==1:
print('Yes')
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]] | 5 | 55 |
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
int main() {
string S;
cin >> S;
for (int i = 0; i < S.size() - 1; i++) {
if (S[i] != S[i - 1]) {
cout << "Yes";
... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
int main() {
string S;
cin >> S;
for (int i = 0; i < S.size() - 1; i++) {
if (S[i] != S[i + 1]) {
cout << "Yes";
... | [["-", 51, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 12, 69, 341, 342, 0, 16, 17, 72]] | 1 | 92 |
s = input()
if s.count(s[0]) == 3:
print("Yes")
else:
print("No") | s = input()
if s.count(s[0]) == 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 | 32 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define F first
#define S second
#define PB push_back
#define MAXN 100005
#define MP make_pair
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define debug(x) cout << '>' << #x << ':' << x << endl;
#define SQ(a) (a) * (a)
#define nl "\n"
#define INF s... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define F first
#define S second
#define PB push_back
#define MAXN 100005
#define MP make_pair
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define debug(x) cout << '>' << #x << ':' << x << endl;
#define SQ(a) (a) * (a)
#define nl "\n"
#define INF s... | [["+", 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 | 165 |
#include <bits/stdc++.h>
#define lld long long
#define pb push_back
#define mk make_pair
using namespace std;
int main() {
string s;
cin >> s;
int a = 0, b = 0;
for (int i = 0; i < s.length(); i++) {
if (s[i] == 'A')
a++;
else
b++;
}
if (a == 2 || b == 2)
cout << "YES"
... | #include <bits/stdc++.h>
#define lld long long
#define pb push_back
#define mk make_pair
using namespace std;
int main() {
string s;
cin >> s;
int a = 0, b = 0;
for (int i = 0; i < s.length(); i++) {
if (s[i] == 'A')
a++;
else
b++;
}
if (a == 2 || b == 2)
cout << "Yes"
... | [["-", 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 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] != s[1] || s[0] != s[2] || 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[0] != s[2] || s[1] != s[2])
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 | 71 |
S = input()
if S != "AAA" or "BBB":
print("Yes")
else:
print("No") | S = input()
if S != "AAA" and S != "BBB":
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 79]] | 5 | 30 |
/* _/ _/ _/_/_/ _/
_/_/_/_/ _/_/ _/_/_/_/ _/_/ _/ _/_/
_/ _/ _/ _/ _/ _/ _/_/_/ _/
_/ _/ _/ _/ _/ _/ _/ _/ _/
_/_/ _/_/ _/_/ _/_/ _/_/ _/ */
#include <algorithm>
#include <cmath>
#include <iomanip>
... | /* _/ _/ _/_/_/ _/
_/_/_/_/ _/_/ _/_/_/_/ _/_/ _/ _/_/
_/ _/ _/ _/ _/ _/ _/_/_/ _/
_/ _/ _/ _/ _/ _/ _/ _/ _/
_/_/ _/_/ _/_/ _/_/ _/_/ _/ */
#include <algorithm>
#include <cmath>
#include <iomanip>
... | [["+", 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 | 166 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string t;
cin >> t;
if (t == "AAA") {
cout << "NO";
} else if (t == "BBB") {
cout << "NO";
} else {
cout << "YES";
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string t;
cin >> t;
if (t == "AAA") {
cout << "No";
} else if (t == "BBB") {
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 | 64 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rvs(vec) reverse(vec.begin(), vec.end())
int main() {
string s, a, b;
cin >> s;
a = "aaa";
b = "bbb";
if (s == a || s == b) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rvs(vec) reverse(vec.begin(), vec.end())
int main() {
string s, a, b;
cin >> s;
a = "AAA";
b = "BBB";
if (s == a || s == b) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | [["-", 8, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 11, 12, 5, 0, 6]] | 1 | 80 |
S=input()
if S==AAA or S==BBB:
print("No")
else:
print("Yes") | S=input()
if S=="AAA" or S=="BBB":
print("No")
else:
print("Yes") | [["+", 0, 57, 15, 679, 31, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 679, 31, 666, 0, 557, 0, 655], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 655]] | 5 | 28 |
S = list(input())
if set(S) == 1:
print("No")
else:
print("Yes") | S = list(input())
if len(set(S)) == 1:
print("No")
else:
print("Yes")
| [["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 30 |
s = input()
As = s.count("A")
Bs = s.count("B")
if As == 3 or Bs == 3:
print("NO")
else:
print("YES") | s = input()
As = s.count("A")
Bs = s.count("B")
if As == 3 or Bs == 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 | 48 |
#include <bits/stdc++.h>
#define crap \
ios_base::sync_with_stdio(0); \
cin.tie(0)
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define endl "\n"
#define int ll
using nam... | #include <bits/stdc++.h>
#define crap \
ios_base::sync_with_stdio(0); \
cin.tie(0)
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define endl "\n"
#define int ll
using nam... | [["-", 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 | 128 |
str = $stdin.read.chomp
puts((str == "AAA" && str == "BBB") ? "No" : "Yes") | str = $stdin.read.chomp
puts((str == "AAA" || str == "BBB") ? "No" : "Yes") | [["-", 3, 4, 0, 754, 15, 739, 0, 738, 17, 98], ["+", 3, 4, 0, 754, 15, 739, 0, 738, 17, 106]] | 4 | 31 |
station = list(input())
message = ""
print(station)
for i in range(0, len(station)-1):
if (station[i] != station[i + 1]):
message = 'Yes'
break
else:
message = 'No'
print(message)
| station = list(input())
message = ""
for i in range(0, len(station)-1):
if (station[i] != station[i + 1]):
message = 'Yes'
break
else:
message = 'No'
print(message)
| [["-", 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 | 63 |
#include <bits/stdc++.h>
typedef long long ll;
#define rep(i, a, n) for (ll i = a; i < n; i++)
#define rrep(i, a, n) for (ll i = n; i >= a; i--)
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == s[1] && s[0] == s[2] && s[1] == s[2])
cout << "Yes" << endl;
else
cout << "Yes" << endl;
} | #include <bits/stdc++.h>
typedef long long ll;
#define rep(i, a, n) for (ll i = a; i < n; i++)
#define rrep(i, a, n) for (ll i = n; i >= a; i--)
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == s[1] && s[0] == s[2] && s[1] == s[2])
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]] | 1 | 93 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = 1; i <= 2; i++) {
if (str[1] != str[i]) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = 1; i <= 2; i++) {
if (str[0] != str[i]) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
}
| [["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13]] | 1 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "aaa" || s == "bbb") {
cout << "No" << endl;
}
else {
cout << "Yes" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "AAA" || s == "BBB") {
cout << "No" << endl;
}
else {
cout << "Yes" << endl;
}
} | [["-", 15, 339, 51, 16, 31, 16, 12, 5, 0, 6], ["+", 15, 339, 51, 16, 31, 16, 12, 5, 0, 6], ["-", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6], ["+", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6]] | 1 | 54 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S.at(0) == S.at(1) && S.at(1) == S.at(2)) {
cout << 'No' << endl;
} else {
cout << "Yes" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S.at(0) == S.at(1) && S.at(1) == S.at(2)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 71 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if ((S == "AAA") || (S == "BBB")) {
cout << "No" << endl;
return 0;
}
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if ((S == "AAA") || (S == "BBB")) {
cout << "No" << endl;
return 0;
}
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 | 61 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <numeric>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
using ll = long long;
void _cin() {}
template <class Head, class... Tail> void _cin(Head &&head, Tail &&...tail) {
cin >> head;
_cin(forward<Tail>(tail)...... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <numeric>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
using ll = long long;
void _cin() {}
template <class Head, class... Tail> void _cin(Head &&head, Tail &&...tail) {
cin >> head;
_cin(forward<Tail>(tail)...... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22]] | 1 | 458 |
import java.util.*;
public class Main {
public static void main() {
Scanner sc = new Scanner(System.in);
String S = sc.next();
boolean key = false;
if (S.equals("AAA") || S.equals("BBB"))
key = true;
else
;
System.out.println(key ? "No" : "Yes");
}
}
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String S = sc.next();
boolean key = false;
if (S.equals("AAA") || S.equals("BBB"))
key = true;
else
;
System.out.println(key ? "No" : "Yes");
}
} | [["+", 0, 195, 54, 495, 0, 496, 39, 224, 468, 78], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 70], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 73], ["+", 8, 498, 0, 195, 54, 495, 0, 496, 141, 22]] | 3 | 88 |
S = input()
ans = 'Yes'
if S[0] != S[1]:
ans = 'No'
elif S[1] != S[2]:
ans = 'No'
print(ans) | S = input()
ans = 'No'
if S[0] != S[1]:
ans = 'Yes'
elif S[1] != S[2]:
ans = 'Yes'
print(ans) | [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 46 |
s=input()
print("Yes" if s[0]==s[1]==s[2] else "No") | s=input()
print("No" if s[0]==s[1]==s[2] else "Yes") | [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 30 |
# encoding:utf-8
import copy
import random
import bisect #bisect_left これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
import collections
mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000
d = collections.deque()
def LI(): return list(map(int, sys.stdin.readline().split()))
S = str(i... | # encoding:utf-8
import copy
import random
import bisect #bisect_left これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
import collections
mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000
d = collections.deque()
def LI(): return list(map(int, sys.stdin.readline().split()))
S = str(i... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 98 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define dunk(n) cout << n << endl
#define all(a) (a).begin(), (a).end()
int main() {
string s;
cin >> s;
if (s == "AAA" || s == "BBB") {
dunk("Yes");
} else
dunk("No");
} | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define dunk(n) cout << n << endl
#define all(a) (a).begin(), (a).end()
int main() {
string s;
cin >> s;
if (s == "AAA" || s == "BBB") {
dunk("No");
} else
dunk("Yes");
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 72 |
#include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <deque> //両端アクセスのキュー
#include <iostream> //入出力
#include <map> //map(辞書)
#include <numeric> //iota(整数列の生成),gcdとlcm(c++17)
#include <queue> //キュー
#include <set> //集合
#include <stack> //... | #include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <deque> //両端アクセスのキュー
#include <iostream> //入出力
#include <map> //map(辞書)
#include <numeric> //iota(整数列の生成),gcdとlcm(c++17)
#include <queue> //キュー
#include <set> //集合
#include <stack> //... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 33], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 180 |
<?php
$S = fgets(STDIN);
if ($S[0] == $S[1] && $S[1] == $S[2]){
echo "No\n";
} else {
echo "Yes\n!";
}
?>
| <?php
$S = fgets(STDIN);
if ($S[0] == $S[1] && $S[1] == $S[2]){
echo "No\n";
} else {
echo "Yes\n";
}
?>
| [["-", 75, 76, 8, 9, 0, 608, 0, 609, 0, 610]] | 6 | 54 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.