buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
cin >> s;
if (s.at(0) == s.at(1) && s.at(1) == s.at(2))
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
string s;
int main() {
cin >> s;
if (s.at(0) == s.at(1) && s.at(1) == s.at(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 | 69 |
#include <bits/stdc++.h>
#define ll long long int
#define sz 1000100
using namespace std;
int main() {
string s;
ll i, j, p;
cin >> s;
if (s == "AAA" || s == "BBB")
cout << "NO" << endl;
else
cout << "YES" << endl;
return 0;
}
| #include <bits/stdc++.h>
#define ll long long int
#define sz 1000100
using namespace std;
int main() {
string s;
ll i, j, p;
cin >> s;
if (s == "AAA" || s == "BBB")
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
}
| [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 66 |
unkoujyokyo=input()
if unkoujyokyo == 'AAA':
print('Yes')
elif unkoujyokyo == 'BBB':
print('Yes')
else:
print('No') | unkoujyokyo=input()
if unkoujyokyo == 'AAA':
print('No')
elif unkoujyokyo == '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 | 39 |
import java.util.Scanner;
/**
* @author yoshizaki
*
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String station = scanner.nextLine();
if (station.indexOf("A") >= 0 && station.indexOf("B") >= 0) {
System.out.println("No");
} else {... |
import java.util.Scanner;
/**
* @author yoshizaki
*
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String station = scanner.nextLine();
if (station.indexOf("A") >= 0 && station.indexOf("B") >= 0) {
System.out.println("Yes");
} else ... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 96 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
set<char> ans;
for (auto i : s) {
ans.insert(i);
}
ans.size() == 2 ? cout << "YES" : cout << "NO";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
set<char> ans;
for (auto i : s) {
ans.insert(i);
}
ans.size() == 2 ? cout << "Yes" : cout << "No";
return 0;
}
| [["-", 0, 1, 0, 41, 64, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 41, 64, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 41, 75, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 41, 75, 16, 12, 5, 0, 6]] | 1 | 64 |
a,b,c=input()
if a==b and b==c:
print("NO")
else:
print("YES")
| a,b,c=input()
if a==b and b==c:
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 |
s=input()
if s=="AAA" or s=="BBB":
print("Yes\n")
else:
print("No\n") | s=input()
if s=="AAA" or s=="BBB":
print("No\n")
else:
print("Yes\n") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 557, 0, 6, 0, 44], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 557, 0, 6, 0, 44]] | 5 | 34 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = 0; i < 2; i++) {
if (s[i] != s[i + 1]) {
cout << "YES";
return 0;
}
}
cout << "N0";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = 0; i < 2; i++) {
if (s[i] != s[i + 1]) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
}
| [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 69 |
#include <bits/stdc++.h>
typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ldb;
#define pb push_back
#define popb pop_back
#define si size()
#define be begin()
#define en end()
#define le length()
#define mp make_pair
#define mt make_tuple
#define fi
#define se second
#define forz(i... | #include <bits/stdc++.h>
typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ldb;
#define pb push_back
#define popb pop_back
#define si size()
#define be begin()
#define en end()
#define le length()
#define mp make_pair
#define mt make_tuple
#define fi
#define se second
#define forz(i... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 145 |
a = input()
b = a[0]
c = False
for i in range(len(a)):
if a[i] != b:
c = True
print("Yes")
return
print("No") | a = input()
b = a[0]
c = False
for i in range(len(a)):
if a[i] != b:
c = True
if c:
print("Yes")
else:
print("No") | [["+", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 36, 36, 0, 656, 0, 57, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 57, 0, 102], ["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102]] | 5 | 49 |
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef pair<int, int> pi;
typedef long long ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string s;
cin >> s;
int cnt1 = 0, cnt2 = 0;
for (int i = 0; i < s.size(); ++i) {
if (s[i] == 'A') {
++cn... | #include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef pair<int, int> pi;
typedef long long ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string s;
cin >> s;
int cnt1 = 0, cnt2 = 0;
for (int i = 0; i < s.size(); ++i) {
if (s[i] == 'A') {
++cn... | [["-", 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 | 130 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
string s;
cin >> s;
cout << (s == "AAA" || s == "BBB" ? "Yes" : "No") << "\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
string s;
cin >> s;
cout << (s == "AAA" || s == "BBB" ? "No" : "Yes") << "\n";
return 0;
}
| [["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 64 |
#include "bits/stdc++.h"
using namespace std;
int main() {
string s;
cin >> s;
set<char> st;
for (auto e : s) {
st.insert(e);
}
cout << (st.size() > 1 ? "YES" : "NO") << endl;
return 0;
} | #include "bits/stdc++.h"
using namespace std;
int main() {
string s;
cin >> s;
set<char> st;
for (auto e : s) {
st.insert(e);
}
cout << (st.size() > 1 ? "Yes" : "No") << endl;
return 0;
} | [["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 68 |
s = input()
s = set(list(s))
if len(s) == 1:
print('Yes')
else:
print('No') | s = input()
s = set(list(s))
if len(s) != 1:
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]] | 5 | 36 |
#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
char a;
int c = 0, d = 0;
for (int i = 0; i < 3; i++) {
cin >> a;
if (a == 'A')
c++;
else
d++;
}
if (c != 0 && d != 0)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
char a;
int c = 0, d = 0;
for (int i = 0; i < 3; i++) {
cin >> a;
if (a == 'A')
c++;
else
d++;
}
if (c != 0 && d != 0)
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 | 92 |
#include <stdio.h>
int main(void) {
char s[3];
scanf("%s", s);
for (int i = 0; i < 2; i++) {
if (s[i] != s[i + 1]) {
printf("Yes");
return (0);
} else {
printf("No");
return (0);
}
}
} | #include <stdio.h>
int main(void) {
char s[3];
scanf("%s", s);
for (int i = 0; i < 2; i++) {
if (s[i] != s[i + 1]) {
printf("Yes");
return (0);
}
}
printf("No");
return (0);
} | [["-", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 0 | 83 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define start \
int t; \
cin >> t; ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define start \
int t; \
cin >> t; ... | [["-", 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 | 221 |
S = input()
print("No" if S.count(A) == 3 or S.count(B) ==3 else "Yes") | S = input()
print("No" if S.count("A") == 3 or S.count("B") ==3 else "Yes")
| [["+", 31, 666, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 31, 666, 0, 652, 3, 4, 0, 557, 0, 655], ["+", 12, 666, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 12, 666, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 33 |
s = input()
if 'A' in s and 'B' in s:
print("YES")
else:
print("NO")
| s = input()
if 'A' in s and 'B' in s:
print("Yes")
else:
print("No")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 32 |
import static java.lang.Integer.min;
import static java.lang.Integer.parseInt;
import java.io.*;
import java.lang.String;
import java.util.*;
import java.util.Arrays;
public class Main extends PrintWriter {
Main() { super(System.out, true); }
Scanner sc = new Scanner(System.in);
public static void main(String[]... | import static java.lang.Integer.min;
import static java.lang.Integer.parseInt;
import java.io.*;
import java.lang.String;
import java.util.*;
import java.util.Arrays;
public class Main extends PrintWriter {
Main() { super(System.out, true); }
Scanner sc = new Scanner(System.in);
public static void main(String[]... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 207 |
//#pragma GCC optimize("Ofast")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
//#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#define pb push_back
#define sz(x) ((int)(x).size())
#define all(x) (x).begin(), (x).end()
#define ll long long
using namespace std;
void fil... | //#pragma GCC optimize("Ofast")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
//#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#define pb push_back
#define sz(x) ((int)(x).size())
#define all(x) (x).begin(), (x).end()
#define ll long long
using namespace std;
void fil... | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 155 |
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
#define gc getchar_unlocked
#define fo(i, n) for (ll i = 0; i < n; i++)
#define Fo(i, k, n) \
for (ll i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)
#define ll long ... | /*input
BBB
*/
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
#define gc getchar_unlocked
#define fo(i, n) for (ll i = 0; i < n; i++)
#define Fo(i, k, n) \
for (ll i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)
#... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 346 |
s = input().split()
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, 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 | 36 |
/// Astalavista Code........~CodeSlayer007
#include <bits/stdc++.h>
using namespace std;
#include <iterator>
#include <vector>
typedef long long int ll;
typedef long double ld;
#define PT(x) cout << (#x) << " is " << (x) << endl;
typedef vector<ll> vi;
typedef pair<ll, ll> ii;
typedef vector<ii> vii;
#define SPD_emerge... | /// Astalavista Code........~CodeSlayer007
#include <bits/stdc++.h>
using namespace std;
#include <iterator>
#include <vector>
typedef long long int ll;
typedef long double ld;
#define PT(x) cout << (#x) << " is " << (x) << endl;
typedef vector<ll> vi;
typedef pair<ll, ll> ii;
typedef vector<ii> vii;
#define SPD_emerge... | [["-", 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 | 207 |
s = gets.chomp.to_s
if s == "AAA" or s == "BBB"
puts "NO"
else
puts "YES"
end
| s = gets.chomp.to_s
if s == "AAA" or s == "BBB"
puts "No"
else
puts "Yes"
end
| [["-", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 29 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
char ste[4];
scanf("%s", ste);
if (strcmp(ste, "AAA") == 0 || strcmp(ste, "AAA") == 0) {
printf("No");
} else {
printf("Yes");
}
return 0;
} | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
char ste[4];
scanf("%s", ste);
if (strcmp(ste, "AAA") == 0 || strcmp(ste, "BBB") == 0) {
printf("No");
} else {
printf("Yes");
}
return 0;
} | [["-", 12, 16, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 12, 16, 31, 2, 3, 4, 0, 5, 0, 6]] | 0 | 73 |
#pragma GCC optimize(2)
#pragma GCC optimize(3)
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define rint register int
#define rep(i, l, r) for (rint i = l; i <= r; i++)
#define per(i, l, r) for (rint i = l; i >= r; i--)
#define mset(s, _) memset(s, _, sizeof(s))
#d... | #pragma GCC optimize(2)
#pragma GCC optimize(3)
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define rint register int
#define rep(i, l, r) for (rint i = l; i <= r; i++)
#define per(i, l, r) for (rint i = l; i >= r; i--)
#define mset(s, _) memset(s, _, sizeof(s))
#d... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 280 |
/*Function Template*/
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> pint;
const int MAX = 510000;
const int MOD = 1000000007;
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define Rep(i, n) for (ll i = 1; i < (n); i++)
#define ALL(a) (a).begin(), (a).end()
#define IOS ... | /*Function Template*/
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> pint;
const int MAX = 510000;
const int MOD = 1000000007;
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define Rep(i, n) for (ll i = 1; i < (n); i++)
#define ALL(a) (a).begin(), (a).end()
#define IOS ... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 15, 339, 51, 16, 12, 16, 12, 5, 0, 62], ["+", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6]] | 1 | 1,178 |
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define ctoi(x) x - '0'
#define pshb(a) \
cin >> x; \
a.push_back(x)
#define fr(i, n) for (ll i = 0; i < n; i++)
#def... | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define ctoi(x) x - '0'
#define pshb(a) \
cin >> x; \
a.push_back(x)
#define fr(i, n) for (ll i = 0; i < n; i++)
#def... | [["-", 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 | 103 |
#include <algorithm>
#include <iostream>
#include <vector>
int main() {
char *stations = new char[3];
for (int i = 0; i < 3; i++) {
std::cin >> *(stations + i);
}
if (*(stations + 0) == *(stations + 1) &&
*(stations + 1) == *(stations + 2)) {
std::cout << "Yes";
} else {
std::cout << "No";
... | #include <algorithm>
#include <iostream>
#include <vector>
int main() {
char *stations = new char[3];
for (int i = 0; i < 3; i++) {
std::cin >> *(stations + i);
}
if (*(stations + 0) == *(stations + 1) &&
*(stations + 1) == *(stations + 2)) {
std::cout << "No";
} else {
std::cout << "Yes";
... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 100 |
s=input()
s=list(s)
print(s)
if "A" not in s or "B" not in s:
print("No")
else:
print("Yes") | s=input()
s=list(s)
if "A" not in s or "B" not in s:
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 | 44 |
// To the MOTHER OF DRAGONS
#include <bits/stdc++.h>
#define ll long long int
#define llu unsigned long long
#define ld long double
#define pb push_back
#define mp make_pair
#define MOD 1000000007
#define PI 3.14159265358979323846
#define RAGE \
ios::... | // To the MOTHER OF DRAGONS
#include <bits/stdc++.h>
#define ll long long int
#define llu unsigned long long
#define ld long double
#define pb push_back
#define mp make_pair
#define MOD 1000000007
#define PI 3.14159265358979323846
#define RAGE \
ios::... | [["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "AAA" && S == "BBB") {
cout << "No";
} else {
cout << "Yes";
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "AAA" || S == "BBB") {
cout << "No";
} else {
cout << "Yes";
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 50 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define l long
#define pb push_back
#define mp make_pair
#define mt make_tuple
int main() {
// your code goes here
// ifstream cin("input.txt");
// ofstream cout("output.txt");
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string s;
cin... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define l long
#define pb push_back
#define mp make_pair
#define mt make_tuple
int main() {
// your code goes here
// ifstream cin("input.txt");
// ofstream cout("output.txt");
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string s;
cin... | [["-", 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 | 91 |
#include <stdio.h>
#include <string.h>
int main() {
char s[5];
int c = 0;
scanf("%s", s);
for (int i = 1; i < 3; i++) {
if (s[i] != s[i - 1])
c++;
}
if (c)
printf("YES");
else
printf("NO");
return 0;
}
| #include <stdio.h>
#include <string.h>
int main() {
char s[5];
int c = 0;
scanf("%s", s);
for (int i = 1; i < 3; i++) {
if (s[i] != s[i - 1])
c++;
}
if (c)
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>
typedef long long int lli;
using namespace std;
char a[1001][1001];
#define DADAH \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
typedef long long int lli;
using namespace std;
char a[1001][1001];
#define DADAH \
ios_base::sync_with_stdio(0); \
cin.tie(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 | 86 |
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, 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;
typedef long long ll;
typedef pair<int, int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
constexpr int di[] = {0, 1, 0, -1}, dj[] = {1, 0, -1, 0};
#define rep(i, n) for (int i = 0; i < n; i++)
#define repr(i, n) for (int i = n; i >= 0; i--)
#define SORT(v) sort((v).b... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
constexpr int di[] = {0, 1, 0, -1}, dj[] = {1, 0, -1, 0};
#define rep(i, n) for (int i = 0; i < n; i++)
#define repr(i, n) for (int i = n; i >= 0; i--)
#define SORT(v) sort((v).b... | [["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 22]] | 1 | 201 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
bool flag = true;
if (S[0] == S[1] && S[1 == S[2]])
flag = false;
cout << (flag ? "Yes" : "No") << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
bool flag = true;
if (S[0] == S[1] && S[1] == S[2])
flag = false;
cout << (flag ? "Yes" : "No") << endl;
}
| [["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 73], ["-", 341, 342, 0, 16, 12, 69, 341, 342, 0, 73]] | 1 | 66 |
a=input()
p1=a[0]
p2=a[1]
p3=a[3]
if p1==p2==p3:
print("No")
else:
print("Yes") | a=input()
p1=a[-1]
p2=a[0]
p3=a[1]
if p1==p2==p3:
print("No")
else:
print("Yes") | [["-", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 17, 33], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 28, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612]] | 5 | 44 |
/*BINH :))*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long llu;
#define IO \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | /*BINH :))*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long llu;
#define IO \
ios_base::sync_with_stdio(false); \
cin.tie(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 | 186 |
a, b, c = input()
s=set([a, b, c])
if len(s)==1:
print("NO")
else:
print("YES") | a, b, c = input()
s=set([a, b, c])
if len(s)==1:
print("No")
else:
print("Yes") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 43 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == s[1] && s[1] == s[2]) {
cout << "NO" << endl;
} else {
cout << "YES" << endl;
}
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == s[1] && s[1] == s[2]) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 64 |
a=input()
if a.count("A")>=1 & a.count("B")>=1:
print("Yes")
else:
print("No") | a=input()
if a.count("A")>=1 and a.count("B")>=1:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 67], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]] | 5 | 42 |
s = input()
if s.count("A") > 0 and s.count("B") > 0:
print("YES")
else:
print("NO") | s = input()
if s.count("A") > 0 and s.count("B") > 0:
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 | 42 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include <vector>
int main() {
std::string str;
std::cin >> str;
char prev = str[0];
for (auto &&c : str) {
if (c != prev) {
std::cout << "YES" << std::endl;
return 0;
}
}
std::... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include <vector>
int main() {
std::string str;
std::cin >> str;
char prev = str[0];
for (auto &&c : str) {
if (c != prev) {
std::cout << "Yes" << std::endl;
return 0;
}
}
std::... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 87 |
#include <bits/stdc++.h>
using namespace std;
using lint = long long int;
using pint = pair<int, int>;
using plint = pair<lint, lint>;
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) ((lint)(x).size())
#define POW2(n) (1LL << (n))
#define FOR(i, begin, end) \
f... | #include <bits/stdc++.h>
using namespace std;
using lint = long long int;
using pint = pair<int, int>;
using plint = pair<lint, lint>;
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) ((lint)(x).size())
#define POW2(n) (1LL << (n))
#define FOR(i, begin, end) \
f... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 43, 49, 50, 51, 69, 341, 342, 0, 70], ["-", 0, 43, 49, 50, 51, 69, 341, 342, 0, 13], ["-", 0, 43, 49... | 1 | 153 |
def resolve():
import sys
input = sys.stdin.readline
s = input()
print("No" if s == "AAA" or s == "BBB" else "Yes")
resolve() | def resolve():
import sys
input = sys.stdin.readline
s = input().rstrip()
print("No" if s == "AAA" or s == "BBB" else "Yes")
resolve() | [["+", 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 | 44 |
s=set(input())
if not len(s)%2==0:
print("NO")
else:
print("YES") | s=set(input())
if not len(s)%2==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 | 33 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
string s;
cin >> s;
ll a = 0, b = 0;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A')
a++;
else
b++;
}
if (a == 0 || b == 0)
cout << "NO";
else
cout << "YES";
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
string s;
cin >> s;
ll a = 0, b = 0;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A')
a++;
else
b++;
}
if (a == 0 || b == 0)
cout << "No";
else
cout << "Yes";
} | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 88 |
#include <bits/stdc++.h>
#define int long long
#define ld long double
#define endl '\n'
const int mod = 1e9 + 7;
const int inf = 1e17 + 10;
#define F first
#define S second
#define pb push_back
#define all(x) x.begin(), x.end()
#define si(a) a.size()
#define pii pair<int, int>
using namespace std;
int32_t main() {
s... | #include <bits/stdc++.h>
#define int long long
#define ld long double
#define endl '\n'
const int mod = 1e9 + 7;
const int inf = 1e17 + 10;
#define F first
#define S second
#define pb push_back
#define all(x) x.begin(), x.end()
#define si(a) a.size()
#define pii pair<int, int>
using namespace std;
int32_t main() {
s... | [["-", 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 | 141 |
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')
| [["+", 15, 679, 31, 23, 0, 666, 0, 557, 0, 654], ["+", 15, 679, 31, 23, 0, 666, 0, 557, 0, 655], ["+", 15, 679, 12, 23, 0, 666, 0, 557, 0, 654], ["+", 15, 679, 12, 23, 0, 666, 0, 557, 0, 655]] | 5 | 32 |
/* Manish Pant - insider_pants */
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define endl "\n"
#define pb push_back
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
template <class T> ostream &operator<<(ostream &os, cons... | /* Manish Pant - insider_pants */
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define endl "\n"
#define pb push_back
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
template <class T> ostream &operator<<(ostream &os, cons... | [["-", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22], ["+", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22]] | 1 | 384 |
#include <iostream>
using namespace std;
int main() {
char s[3];
cin >> s;
if ((s[0] == s[1]) && (s[1] == s[2])) {
cout << "NO"
<< "\n";
} else {
cout << "YES"
<< "\n";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
char s[3];
cin >> s;
if ((s[0] == s[1]) && (s[1] == s[2])) {
cout << "No"
<< "\n";
} else {
cout << "Yes"
<< "\n";
}
return 0;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 76 |
s = list(input().split())
if s[0] == s[1] and s[1] == s[2]:
print('No')
else:
print('Yes') | s = list(input())
if s[0] == s[1] and s[1] == s[2]:
print('No')
else:
print('Yes')
| [["-", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 47 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long int
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == 'A' && s[1] == 'A' && s[2] == 'A') {
cout << "No" << endl;
} else if (s[0] == 'A' && s[1] == 'A' && s[2] == 'A') {
cout << "No" << end... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long int
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == 'A' && s[1] == 'A' && s[2] == 'A') {
cout << "No" << endl;
} else if (s[0] == 'B' && s[1] == 'B' && s[2] == 'B') {
cout << "No" << end... | [["-", 51, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 51, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["-", 51, 16, 31, 16, 12, 16, 12, 103, 0, 125], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 125], ["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]] | 1 | 123 |
#include <algorithm>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
string s;
cin >> s;
if (s... | #include <algorithm>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
string s;
cin >> s;
if (s... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 116 |
//***___********* ___*****___****___***___*********//
/* | \ | | | | | \ | | | | **
/* | | | | |___| | _ |__ |___ |___| **
/* | | | | | \ | | | | | | | **
/* |___/ |___| | \ |__| | |___ ____| | | **
//************************************************... | //***___********* ___*****___****___***___*********//
/* | \ | | | | | \ | | | | **
/* | | | | |___| | _ |__ |___ |___| **
/* | | | | | \ | | | | | | | **
/* |___/ |___| | \ |__| | |___ ____| | | **
//************************************************... | [["-", 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 | 430 |
s = input()
if (s[0] != s[1] or s[0] != s[2]):
print("yes")
else:
print("no") | s = input()
if (s[0] != s[1] or s[0] != 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 | 42 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
string s;
cin >> s;
if (s == "AAA")
cout << "NO";
else if (s == "BBB")
cout << "No";
else
cout << "Yes";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
string s;
cin >> s;
if (s == "AAA")
cout << "No";
else if (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]] | 1 | 61 |
str = input()
a = str[0]
b = str[1]
c = str[2]
if a == b ==c:
print('NO')
elif a != b or a != c or b != c:
print('YES') | str = input()
a = str[0]
b = str[1]
c = str[2]
if a == b ==c:
print('No')
elif a != b or a != c or b != c:
print('Yes') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 55 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int flag = 0;
if (s[0] != s[1]) {
flag = 1;
}
if (s[2] != s[1]) {
flag = 1;
}
if (flag == 1) {
cout << "YES" << endl;
}
if (flag == 0) {
cout << "NO" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int flag = 0;
if (s[0] != s[1]) {
flag = 1;
}
if (s[2] != s[1]) {
flag = 1;
}
if (flag == 1) {
cout << "Yes" << endl;
}
if (flag == 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 | 95 |
#include <algorithm>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
#include <float.h>
#include ... | #include <algorithm>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
#include <float.h>
#include ... | [["+", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22]] | 1 | 379 |
#include <iostream>
#include <stddef.h>
#include <stdio.h>
using namespace std;
int main() {
string S;
if (S[0] == S[1] && S[1] == S[2]) {
cout << "No";
} else {
cout << "Yes";
}
}
| #include <iostream>
#include <stddef.h>
#include <stdio.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S[0] == S[1] && S[1] == S[2]) {
cout << "No";
} else {
cout << "Yes";
}
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 58 |
#include <algorithm>
#include <bits/stdc++.h>
#include <math.h>
#include <string.h>
#include <vector>
#define ll long long
#define M 1000000007
#define Mo 1000000000
#define mm 998244353
using namespace std;
ll prck(ll n) {
ll f = 1;
if (n == 1)
f = 0;
else if (n == 2)
f = 1;
else if (n % 2 == 0)
f... | #include <algorithm>
#include <bits/stdc++.h>
#include <math.h>
#include <string.h>
#include <vector>
#define ll long long
#define M 1000000007
#define Mo 1000000000
#define mm 998244353
using namespace std;
ll prck(ll n) {
ll f = 1;
if (n == 1)
f = 0;
else if (n == 2)
f = 1;
else if (n % 2 == 0)
f... | [["-", 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 | 1,411 |
N = str(input())
if N == 'AAA' or N == 'BBB':
print('Yes')
else:
print('No') | N = str(input())
if N == 'AAA' or N == '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 |
s = gets.chomp
if s.squeeze == 1
puts 'No'
else
puts 'Yes'
end | s = gets.chomp
if s.squeeze.length == 1
puts 'No'
else
puts 'Yes'
end | [["+", 0, 493, 0, 121, 15, 738, 31, 652, 17, 131], ["+", 0, 493, 0, 121, 15, 738, 31, 652, 735, 22]] | 4 | 21 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
string str;
cin >> str;
if (str[0] == str[1] && str[0] == str[2]) {
cout << "NO" << endl;
} else {
cout << "YES" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
string str;
cin >> str;
if (str[0] == str[1] && str[0] == str[2]) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 83 |
#include <bits/stdc++.h>
using namespace std;
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
string s;
cin >> s;
int c1 = 0, c2 = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'A')
c1++;
if (s[i] == 'B')
c2++;
}
if (c1 != 0 && c2 != 0)
cout << "YE... | #include <bits/stdc++.h>
using namespace std;
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
string s;
cin >> s;
int c1 = 0, c2 = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'A')
c1++;
if (s[i] == 'B')
c2++;
}
if (c1 != 0 && c2 != 0)
cout << "Ye... | [["-", 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 | 125 |
s = input()
if s == 'B'*len(s) or s == 'A'*len(s):
print("NO")
else:
print("YES") | s = input()
if s == 'B'*len(s) or s == 'A'*len(s):
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 <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";
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\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]] | 1 | 59 |
import math
import string
import itertools
import fractions
import heapq
import collections
import re
import array
import bisect
import sys
import random
import time
inf = 10**9
def main():
s = input()
if s == 'AAA' or s == 'BBB':
print("Yes")
else:
print('No')
if __name__ == '__main__':... | import math
import string
import itertools
import fractions
import heapq
import collections
import re
import array
import bisect
import sys
import random
import time
inf = 10**9
def main():
s = input()
if s == 'AAA' or s == 'BBB':
print("No")
else:
print('Yes')
if __name__ == '__main__':... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 76 |
i=input();'YNeos'[i=='AAA' or i=='BBB'::2] | i=input();print('YNeos'[i=='AAA' or i=='BBB'::2]) | [["+", 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, 25]] | 5 | 25 |
#include <iostream>
using namespace std;
int main() {
char s[3];
char judge;
int count = 0;
for (int i = 0; i < 3; i++) {
cin >> s[i];
judge = s[0];
if (judge = s[i]) {
count++;
}
}
if (count == 3) {
cout << "Yes";
} else {
cout << "No";
}
}
| #include <iostream>
using namespace std;
int main() {
char s[3];
char judge;
int count = 0;
for (int i = 0; i < 3; i++) {
cin >> s[i];
judge = s[0];
if (judge == s[i]) {
count++;
}
}
if (count == 3) {
cout << "No";
} else {
cout << "Yes";
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 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, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 93 |
#include <algorithm>
#include <cmath>
#include <fstream>
#include <functional>
#include <initializer_list>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unord... | #include <algorithm>
#include <cmath>
#include <fstream>
#include <functional>
#include <initializer_list>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unord... | [["-", 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 | 91 |
#include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int cnt = 0;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A') {
cnt++;
}
}
if (cnt == 3 || cnt == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int cnt = 0;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A') {
cnt++;
}
}
if (cnt == 3 || cnt == 0) {
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 | 87 |
s=[]
a=input()
for i in a:
s.append(i)
if len(list(set(s)))==3:
print("Yes")
else:
print("No") | s=[]
a=input()
for i in a:
s.append(i)
if len(list(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 | 48 |
import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
if (input.equals("AAA") == true) {
System.out.println("Yes");
} else if (input.equals("BBB") == true) {
System.out.println("Yes")... | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
if (input.equals("AAA") == true) {
System.out.println("No");
} else if (input.equals("BBB") == true) {
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 | 110 |
x = set(input().split())
print('No' if len(x)==1 else 'Yes') | x = set(input())
print('No' if len(x)==1 else 'Yes') | [["-", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 29 |
#include <bits/stdc++.h>
#define ll unsigned long long int
#define pb push_back
using namespace std;
ll cnt, mini = 1e9, maxi = -1;
ll n, m, k, x, a, b, c;
ll mini1 = 1e9, maxi1 = -1, cnt1, cnt2, cnt3, ans, sum;
int main() {
ios_base::sync_with_stdio(0);
// freopen (" .txt", "r", stdin);
// freopen (" .txt", "w",... | #include <bits/stdc++.h>
#define ll unsigned long long int
#define pb push_back
using namespace std;
ll cnt, mini = 1e9, maxi = -1;
ll n, m, k, x, a, b, c;
ll mini1 = 1e9, maxi1 = -1, cnt1, cnt2, cnt3, ans, sum;
int main() {
ios_base::sync_with_stdio(0);
// freopen (" .txt", "r", stdin);
// freopen (" .txt", "w",... | [["-", 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 | 152 |
S = input()
if S[0]==S[1] or S[1]==S[2] or S[2]==S[0]:
print("Yes")
else:
print("No") | S = input()
if S[0]==S[1] and S[1]==S[2] and S[2]==S[0]:
print("No")
else:
print("Yes")
| [["-", 0, 656, 0, 57, 15, 679, 31, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 679, 31, 679, 17, 355], ["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 50 |
#include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "AAA") {
cout << "Yes" << endl;
} else if (s == "BBB") {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} |
#include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "AAA") {
cout << "No" << endl;
} else if (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 | 67 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll unsigned long long
#define md 1000000007
#define pb push_back
#define ff first
#define ss second
#define fio() \
ios_base::sync_with_stdio(... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll unsigned long long
#define md 1000000007
#define pb push_back
#define ff first
#define ss second
#define fio() \
ios_base::sync_with_stdio(... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 355], ["+", 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 | 244 |
print("YNeos"[3-len(set(input()))::2]) | print("YNeos"[2-len(set(input()))::2]) | [["-", 3, 4, 0, 206, 206, 663, 0, 657, 31, 612], ["+", 3, 4, 0, 206, 206, 663, 0, 657, 31, 612]] | 5 | 22 |
#include <bits/stdc++.h>
using namespace std;
// using namespace __gnu_pbds;
#define pb push_back
#define ff first
#define ss second
#define SIZE 2001
#define INF 2e9 + 9
#define acmpIN "input.txt"
#define acmpOUT "output.txt"
#define usacoIN "buckets.in"
#define usacoOUT "buckets.out"
typedef long long ll;
typedef l... | #include <bits/stdc++.h>
using namespace std;
// using namespace __gnu_pbds;
#define pb push_back
#define ff first
#define ss second
#define SIZE 2001
#define INF 2e9 + 9
#define acmpIN "input.txt"
#define acmpOUT "output.txt"
#define usacoIN "buckets.in"
#define usacoOUT "buckets.out"
typedef long long ll;
typedef l... | [["-", 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 |
from sys import stdin
def get_result(data):
S = data[0]
return 'Yes' if S != 'AAA' and S != 'BBB' else 'No'
if __name__ == '__main__':
data = list(map(str, stdin.readline().split(' ')))
result = get_result(data)
print(result)
| from sys import stdin
def get_result(data):
S = data[0]
return 'Yes' if S != 'AAA' and S != 'BBB' else 'No'
if __name__ == '__main__':
data = list(map(str, stdin.readline().rstrip('\n').split(' ')))
result = get_result(data)
print(result)
| [["+", 0, 652, 63, 319, 500, 652, 63, 319, 319, 22], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 63, 319, 500, 652, 3, 4, 0, 557, 0, 654], ["+", 500, 652, 3, 4, 0, 557, 0, 6, 0, 44], ["+", 63, 319, 500, 652, 3, 4, 0, 557, 0, 655], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25], ["+", 0, 652, 3, 4, 0, 652, 63, 3... | 5 | 75 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
char c = S[0];
bool yes = false;
for (int i = 1; i < S.length(); ++i) {
if (c == S[i]) {
continue;
} else {
yes = true;
break;
}
}
if (yes) {
cout << "YES" << endl;
} else {
cout << "N... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
char c = S[0];
bool yes = false;
for (int i = 1; i < S.length(); ++i) {
if (c == S[i]) {
continue;
} else {
yes = true;
break;
}
}
if (yes) {
cout << "Yes" << endl;
} else {
cout << "N... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 99 |
#include <iostream>
main() {
char a, b, c;
std::cin >> a >> b >> c;
std::cout << (a + b + c & 2 ? "Yes" : "No");
} | #include <iostream>
main() {
char a, b, c;
std::cin >> a >> b >> c;
std::cout << (a + b + c & 2 ? "No" : "Yes");
} | [["-", 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 | 46 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
string S;
cin >> S;
if (S.find('A') == string::npos || S.find('B') == string::npos) {
cout << "NO" << '\n';
} else {
cout << "Yes" << '\n';
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
string S;
cin >> S;
if (S.find('A') == string::npos || S.find('B') == string::npos) {
cout << "No" << '\n';
} else {
cout << "Yes" << '\n';
}
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 96 |
#include <iostream>
using namespace std;
int main() {
string a;
cin >> a;
if (a[0] == 'A' && a[1] == 'A' && a[2] == 'A') {
cout << "NO\n";
} else if (a[0] == 'B' && a[1] == 'B' && a[2] == 'B') {
cout << "No\n";
} else {
cout << "Yes\n";
}
} | #include <iostream>
using namespace std;
int main() {
string a;
cin >> a;
if (a[0] == 'A' && a[1] == 'A' && a[2] == 'A') {
cout << "No\n";
} else if (a[0] == 'B' && a[1] == 'B' && a[2] == 'B') {
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]] | 1 | 106 |
package main
import(
"fmt"
)
func main() {
var inp string
fmt.Scan(&inp)
i := 0
result := true
var t rune
for _, c := range inp {
i += 1
if i == 1 {
t = c
}
if t != c {
result = false
break
}
}
if result == true {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}
| package main
import(
"fmt"
)
func main() {
var inp string
fmt.Scan(&inp)
i := 0
result := true
var t rune
for _, c := range inp {
i += 1
if i == 1 {
t = c
}
if t != c {
result = false
break
}
}
if result == true {
fmt.Println("No")
} else {
fmt.Println("Yes")
}
}
| [] | 7 | 108 |
/*
Anki:未済
作成日:
*/
#include <stdio.h>
int main() {
char a, b, c;
scanf("%d%d%d", &a, &b, &c);
if (a == 'A' && b == 'B')
printf("Yes\n");
else if (a == 'B' && b == 'A')
printf("Yes\n");
else if (b == 'A' && c == 'B')
printf("Yes\n");
else if (b == 'B' && c == 'A')
printf("Yes\n");
else
... | /*
Anki:未済
作成日:
*/
#include <stdio.h>
int main() {
char a, b, c;
scanf("%c%c%c", &a, &b, &c);
if (a == 'A' && b == 'B')
printf("Yes\n");
else if (a == 'B' && b == 'A')
printf("Yes\n");
else if (b == 'A' && c == 'B')
printf("Yes\n");
else if (b == 'B' && c == 'A')
printf("Yes\n");
else
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 135 |
s=set(list(input()))
if len(s)==1:
print("Yes")
else:
print("No") | s=set(list(input()))
if len(s)==1:
print("No")
else:
print("Yes") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 33 |
str = input()
if (str[0] == str[1]) & (str[1] == str[2]):
print("Yes")
else:
print("No") | str = input()
if (str[0] == str[1]) & (str[1] == str[2]):
print("No")
else:
print("Yes") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 44 |
if len(set(input())) == 2:
print('yes')
else:
print('No') | if len(set(input())) == 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 | 27 |
if __name__ == '__main__':
s = input()
print("no" if s == "AAA" or s == "BBB" else "yes") | if __name__ == '__main__':
s = input()
print("No" if s == "AAA" or s == "BBB" else "Yes") | [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 34 |
S = input()
if S.replace("A" ,"") == "" or S.replace("B", "") == "":
print("No")
else:
print("YES") | S = input()
if S.replace("A" ,"") == "" or S.replace("B", "") == "":
print("No")
else:
print("Yes") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 50 |
s = input()
if s == 'AAB' or s == "ABA" or s == 'ABB' or s == 'BAA' or s =="BAB" or s=="BBA":
print("YES")
else:
print('NO')
| s = input()
if s == 'AAB' or s == "ABA" or s == 'ABB' or s == 'BAA' or s =="BAB" or s=="BBA":
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 | 56 |
#include <bits/stdc++.h>
//#define int long long
using namespace std;
int main() {
string s;
int a = 0, b = 0;
cin >> s;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A')
a++;
else
b++;
}
if (a == 0 || b == 0)
cout << "no";
else
cout << "yes";
return 0;
} | #include <bits/stdc++.h>
//#define int long long
using namespace std;
int main() {
string s;
int a = 0, b = 0;
cin >> s;
for (int i = 0; i < 3; i++) {
if (s[i] == 'A')
a++;
else
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 | 89 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll countGreater(ll arr[], ll n, ll k) {
ll l = 0;
ll r = n - 1;
ll leftGreater = n;
while (l <= r) {
ll m = l + (r - l) / 2;
if (arr[m] > k) {
leftGreater = m;
r = m - 1;
}
else
l = m + 1;
}
return... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll countGreater(ll arr[], ll n, ll k) {
ll l = 0;
ll r = n - 1;
ll leftGreater = n;
while (l <= r) {
ll m = l + (r - l) / 2;
if (arr[m] > k) {
leftGreater = m;
r = m - 1;
}
else
l = m + 1;
}
return... | [["-", 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 | 486 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.