problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02730 | #include <bits/stdc++.h>
#include <string>
using namespace std;
bool kaibunn(string S) {
int i;
for (i = 0; i < S.length(); i++) {
if (S[i] == S[S.length() - i]) {
continue;
} else {
return false;
}
}
return true;
}
int main() {
string S;
cin >> S;
string substr = S.substr(1, (S.... | #include <bits/stdc++.h>
#include <string>
using namespace std;
bool kaibunn(string S) {
int i;
for (i = 0; i < S.length(); i++) {
if (S[i] == S[S.length() - i - 1]) {
continue;
} else {
return false;
}
}
return true;
}
int main() {
string S;
cin >> S;
string substr = S.substr(0,... | null | 506,610 | 506,611 | u210244646 | cpp |
p02730 | /* *****fireice**** */
#include <bits/stdc++.h>
#define ll long long int
#define vi vector<int>
#define vc vector<char>
#define vl vector<ll>
#define vii vector<pair<int, int>>
#define vll vector<pair<ll, ll>>
#define pii pair<int, int>
#define pb push_back
#define el '\n'
#define N 1000000007
#define re return
#defi... | /* *****fireice**** */
#include <bits/stdc++.h>
#define ll long long int
#define vi vector<int>
#define vc vector<char>
#define vl vector<ll>
#define vii vector<pair<int, int>>
#define vll vector<pair<ll, ll>>
#define pii pair<int, int>
#define pb push_back
#define el '\n'
#define N 1000000007
#define re return
#defi... | null | 507,060 | 507,061 | u093730269 | cpp |
p02730 | // Author: 0ChanAk
#include <bits/stdc++.h>
using namespace std;
void isDoublePalindrome(string str, int n) {
// int length = string.length();
// if length is not even, then it is not a double palindrome
int start = 0, f = 0;
int end = n - 1;
int middle = ((n - 1) / 2) - 1;
while (start <= middle) {
/... | // Author: 0ChanAk
#include <bits/stdc++.h>
using namespace std;
void isDoublePalindrome(string str, int n) {
// int length = string.length();
// if length is not even, then it is not a double palindrome
int start = 0, f = 0;
int end = n - 1;
int middle = ((n - 1) / 2) - 1;
while (middle >= 0) {
// if... | null | 507,464 | 507,465 | u481050822 | cpp |
p02730 | #include <iostream>
#include <string>
using namespace std;
bool rev(string s) {
int N = s.length();
for (int i = 0; i < (N + 1) / 2; i++) {
if (s[i] != s[N - i - 1]) {
return false;
}
}
return true;
}
int main() {
string S;
cin >> S;
bool rev1 = rev(S);
int N = S.length();
string ... | #include <iostream>
#include <string>
using namespace std;
bool rev(string s) {
int N = s.length();
for (int i = 0; i < (N + 1) / 2; i++) {
if (s[i] != s[N - i - 1]) {
return false;
}
}
return true;
}
int main() {
string S;
cin >> S;
bool rev1 = rev(S);
int N = S.length();
string ... | null | 506,444 | 506,445 | u825343780 | cpp |
p02730 | /*
Nothing is absolute.
This is the only absolute truth.
*/
#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
using ll = long long;
#define READ freopen("in.txt", "r", stdin)
#define ROUT freopen("out.txt", "w", stdout)
#define pb push_back
#define endl '\n'
void fasterI... | /*
Nothing is absolute.
This is the only absolute truth.
*/
#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
using ll = long long;
#define READ freopen("in.txt", "r", stdin)
#define ROUT freopen("out.txt", "w", stdout)
#define pb push_back
#define endl '\n'
void fasterI... | null | 507,859 | 507,860 | u100452936 | cpp |
p02730 | #include <bits/stdc++.h>
#define int long long
#define pb push_back
#define mp make_pair
using namespace std;
const int inf = 1e18 + 7;
const int N = 1e2 + 7;
const int md = 1e9 + 7;
int isp(string s) {
string r = s;
reverse(s.begin(), s.end());
return r == s;
}
void sol() {
string s, s1, s2, S;
cin >> S;
s... | #include <bits/stdc++.h>
#define int long long
#define pb push_back
#define mp make_pair
using namespace std;
const int inf = 1e18 + 7;
const int N = 1e2 + 7;
const int md = 1e9 + 7;
int isp(string s) {
string r = s;
reverse(s.begin(), s.end());
return r == s;
}
void sol() {
string s, s1, s2, S;
cin >> S;
s... | null | 508,373 | 508,374 | u372124866 | cpp |
p02731 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pint = pair<int, int>;
using pll = pair<ll, ll>;
using pld = pair<ld, ld>;
const int INF = 1e9 + 7;
const ll LINF = 9223372036854775807;
const ll MOD = 1e9 + 7;
const ld PI = acos(-1);
const ld EPS = 1e-9; //微調整... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pint = pair<int, int>;
using pll = pair<ll, ll>;
using pld = pair<ld, ld>;
const int INF = 1e9 + 7;
const ll LINF = 9223372036854775807;
const ll MOD = 1e9 + 7;
const ld PI = acos(-1);
const ld EPS = 1e-9; //微調整... | null | 508,946 | 508,947 | u778814286 | cpp |
p02731 | #include <bits/stdc++.h>
using namespace std;
// long long
using ll = long long;
// pair<int, int>
using PII = pair<int, int>;
//最大値、mod
const int MOD = 1000000007;
const int INF = 1000000000;
const long long LINF = 1e18;
const int MAX = 510000;
//出力系
#define print(x) cout << x << endl
#define prints(x) cout << fix... | #include <bits/stdc++.h>
using namespace std;
// long long
using ll = long long;
// pair<int, int>
using PII = pair<int, int>;
//最大値、mod
const int MOD = 1000000007;
const int INF = 1000000000;
const long long LINF = 1e18;
const int MAX = 510000;
//出力系
#define print(x) cout << x << endl
#define prints(x) cout << fix... | null | 508,529 | 508,530 | u832995587 | cpp |
p02731 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
const int INF = 1000000000; // 10^9
int main() {
// ifstream in("data1.txt");
// cin.rdbuf(in.rdbuf());
double L;
cin >> L;
cout << printf("%.10f\n", pow(L / 3, 3)) << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
const int INF = 1000000000; // 10^9
int main() {
// ifstream in("data1.txt");
// cin.rdbuf(in.rdbuf());
double L;
cin >> L;
printf("%.10f\n", pow(L / 3, 3));
}
| null | 509,758 | 509,759 | u154650168 | cpp |
p02731 | #pragma GCC optimize(2)
#include <bits/stdc++.h>
#define ll long long
#define maxn 1000005
#define inf 1e9
#define eps 1e-10
using namespace std;
inline int read() {
int x = 0, w = 1;
char c = getchar();
while (c < '0' || c > '9') {
if (c == '-')
w = -1;
c = getchar();
}
while (c <= '9' && c >=... | #pragma GCC optimize(2)
#include <bits/stdc++.h>
#define ll long long
#define maxn 1000005
#define inf 1e9
#define eps 1e-10
using namespace std;
inline int read() {
int x = 0, w = 1;
char c = getchar();
while (c < '0' || c > '9') {
if (c == '-')
w = -1;
c = getchar();
}
while (c <= '9' && c >=... | null | 510,507 | 510,508 | u766349042 | cpp |
p02733 | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <deque>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#inclu... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <deque>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#inclu... | null | 515,853 | 515,854 | u227304144 | cpp |
p02735 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 100, INF = (1 << 30) - 1;
int n, m;
char s[N + 9][N + 9];
void into() {
scanf("%d%d", &n, &m);
for (int i = 1; i <= n; ++i)
scanf("%s", s[i] + 1);
}
int dp[N + 9][N + 9];
void Get_dp() {
dp[1][1] = s[1][1] == '#';
for (i... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 100, INF = (1 << 30) - 1;
int n, m;
char s[N + 9][N + 9];
void into() {
scanf("%d%d", &n, &m);
for (int i = 1; i <= n; ++i)
scanf("%s", s[i] + 1);
}
int dp[N + 9][N + 9];
void Get_dp() {
dp[1][1] = s[1][1] == '#';
for (i... | null | 516,264 | 516,265 | u690281951 | cpp |
p02736 | #include <bits/stdc++.h>
using namespace std;
int solve(vector<int> a) {
int n = a.size();
int odd = 0;
for (int i = 0; i < n; i++) {
int ev = 0;
if (((n - 1) & i) != i || a[i] % 2 == 0)
ev = 1;
if (ev)
continue;
odd ^= 1;
}
if (odd)
return 1;
for (int i = 0; i < n; i++)
... | #include <bits/stdc++.h>
using namespace std;
int solve(vector<int> a) {
int n = a.size();
int odd = 0;
for (int i = 0; i < n; i++) {
int ev = 0;
if (((n - 1) & i) != i || a[i] % 2 == 0)
ev = 1;
if (ev)
continue;
odd ^= 1;
}
if (odd)
return 1;
for (int i = 0; i < n; i++)
... | null | 520,494 | 520,495 | u272470801 | cpp |
p02736 | #pragma GCC optimize("Ofast")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <ctime>
#include <fstream>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <vector>
using namespace std;
int mod = 998244353;
typedef long long ll;
typedef u... | #pragma GCC optimize("Ofast")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <ctime>
#include <fstream>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <vector>
using namespace std;
int mod = 998244353;
typedef long long ll;
typedef u... | null | 516,896 | 516,897 | u852086502 | cpp |
p02736 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ar array
const int mxN = 1e6;
int n;
string s;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cin >> n >> s;
int s1 = 0;
for (int i = 0; i < n; ++i)
if ((i & n - 1) == i)
s1 += s[i] - 1 - '0';
if (s1 & 1) {
cout ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ar array
const int mxN = 1e6;
int n;
string s;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cin >> n >> s;
int s1 = 0;
for (int i = 0; i < n; ++i)
if ((i & n - 1) == i)
s1 += s[i] - 1 - '0';
if (s1 & 1) {
cout ... | null | 517,026 | 517,027 | u460603067 | cpp |
p02741 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int c, a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14,
1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51};
cin >> c;
cout << a[c];
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int c, a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14,
1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51};
cin >> c;
cout << a[c - 1];
return 0;
} | null | 517,876 | 517,877 | u924721750 | cpp |
p02742 | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w;
cin >> h >> w;
if (h == 1 || w == 1) {
cout << "0\n";
exit(0);
}
int64_t res = (int64_t)h * w;
if (res % 2 != 0)
res++;
res /= 2;
cout << res << '\n';
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w;
cin >> h >> w;
if (h == 1 || w == 1) {
cout << "1\n";
exit(0);
}
int64_t res = (int64_t)h * w;
if (res % 2 != 0)
res++;
res /= 2;
cout << res << '\n';
return 0;
}
| null | 519,177 | 519,178 | u953471422 | cpp |
p02742 | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w;
scanf("%d %d", &h, &w);
if (h == 1) {
puts("1");
return 0;
}
long long ans = h * 1LL * w;
ans = (ans + 1) >> 1;
printf("%lld\n", ans);
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w;
scanf("%d %d", &h, &w);
if (h == 1 || w == 1) {
puts("1");
return 0;
}
long long ans = h * 1LL * w;
ans = (ans + 1) >> 1;
printf("%lld\n", ans);
return 0;
}
| null | 519,590 | 519,591 | u142832918 | cpp |
p02742 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#define LL long long
using namespace std;
int main() {
LL h, w;
cin >> h >> w;
LL a, ans;
// 1列or1行だったら0で終了
if (h == 1 || w == 1) {
cout << "0" << endl;
return 0;
}
... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#define LL long long
using namespace std;
int main() {
LL h, w;
cin >> h >> w;
LL a, ans;
// 1列or1行だったら0で終了
if (h == 1 || w == 1) {
cout << "1" << endl;
return 0;
}
... | null | 519,677 | 519,678 | u198469037 | cpp |
p02742 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define ALL(a) (a).begin(), (a).end()
using ll = long long;
using namespace std;
int main() {
ll H, W;
cin >> H >> W;
if (H == 1 || W == 1)
cout << 1 << endl;
ll result = H * W;
if (result % 2 != 0)
cout << (result + 1) / 2 << e... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define ALL(a) (a).begin(), (a).end()
using ll = long long;
using namespace std;
int main() {
ll H, W;
cin >> H >> W;
if (H == 1 || W == 1) {
cout << 1 << endl;
return 0;
}
ll result = H * W;
if (result % 2 != 0)
cout << (... | null | 520,183 | 520,184 | u350162664 | cpp |
p02742 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 1; i <= n; ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll h, w;
cin >> h >> w;
if (h == 1)
cout << 1 << endl;
else if (h * w % 2 == 0)
cout << h * w / 2 << endl;
else
cout << (h * w + 1) / 2 << endl;... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 1; i <= n; ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll h, w;
cin >> h >> w;
if (h == 1 || w == 1)
cout << 1 << endl;
else if (h * w % 2 == 0)
cout << h * w / 2 << endl;
else
cout << (h * w + 1) / ... | null | 521,299 | 521,300 | u375398641 | cpp |
p02742 | #include <bits/stdc++.h>
#define F first
#define S second
#define pb(x) push_back(x)
#define forr(i, a, b) for (int i = a; i <= b; i++)
#define sz(s) int(s.size())
#define ioi ios_base::sync_with_stdio(false)
#define all(x) x.begin(), x.end()
#define tie ... | #include <bits/stdc++.h>
#define F first
#define S second
#define pb(x) push_back(x)
#define forr(i, a, b) for (int i = a; i <= b; i++)
#define sz(s) int(s.size())
#define ioi ios_base::sync_with_stdio(false)
#define all(x) x.begin(), x.end()
#define tie ... | null | 521,332 | 521,333 | u259677943 | cpp |
p02743 | #include <bits/stdc++.h>
#define pb push_back
#define sz(v) (v).size()
#define all(v) (v).begin(), (v).end()
#define mp make_pair
#define fi first
#define se second
using namespace std;
template <class T> void chmax(T &x, T y) {
x = x > y ? x : y;
return;
}
template <class T> void chmin(T &x, T y) {
x = x > y ? x... | #include <bits/stdc++.h>
#define pb push_back
#define sz(v) (v).size()
#define all(v) (v).begin(), (v).end()
#define mp make_pair
#define fi first
#define se second
using namespace std;
template <class T> void chmax(T &x, T y) {
x = x > y ? x : y;
return;
}
template <class T> void chmin(T &x, T y) {
x = x > y ? x... | null | 521,801 | 521,802 | u301961138 | cpp |
p02743 | #include <iostream>
using namespace std;
using ll = long long;
int main() {
ll a, b, c;
cin >> a >> b >> c;
ll d = c - a - b;
cout << (4 * a * b < d * d ? "Yes" : "No") << endl;
}
| #include <iostream>
using namespace std;
using ll = long long;
int main() {
ll a, b, c;
cin >> a >> b >> c;
ll d = c - a - b;
cout << (d > 0 && 4 * a * b < d * d ? "Yes" : "No") << endl;
}
| null | 521,877 | 521,878 | u462257825 | cpp |
p02743 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF 1LL << 62
#define inf 1000000007
int main() {
ll a, b, c;
cin >> a >> b >> c;
if (c - a - c < 0) {
cout << "No";
return 0;
}
ll sum = a * a + b * b + c * c - 2 * (a * b + b * c + c * a);
if (sum > 0) {
cout << "Yes"... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF 1LL << 62
#define inf 1000000007
int main() {
ll a, b, c;
cin >> a >> b >> c;
if (c - a - b < 0) {
cout << "No";
return 0;
}
ll sum = a * a + b * b + c * c - 2 * (a * b + b * c + c * a);
if (sum > 0) {
cout << "Yes"... | null | 521,805 | 521,806 | u166378830 | cpp |
p02743 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
const double PI = acos(-1);
int main() {
ll a, b, c;
cin >> a >> b >> c;
ll d = (c - a - b);
if (d < 0 && (4 * a * b) < (d * d))
cout << "Yes";
else
cout << "No";
cout << endl;
retur... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
const double PI = acos(-1);
int main() {
ll a, b, c;
cin >> a >> b >> c;
ll d = (c - a - b);
if (d > 0 && (4 * a * b) < (d * d))
cout << "Yes";
else
cout << "No";
cout << endl;
retur... | null | 522,001 | 522,002 | u470123394 | cpp |
p02743 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
const double PI = acos(-1);
int main() {
ll a, b, c;
cin >> a >> b >> c;
ll d = (c - a - b);
if ((4 * a * b) < (d * d))
cout << "Yes";
else
cout << "No";
cout << endl;
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
const double PI = acos(-1);
int main() {
ll a, b, c;
cin >> a >> b >> c;
ll d = (c - a - b);
if (d > 0 && (4 * a * b) < (d * d))
cout << "Yes";
else
cout << "No";
cout << endl;
retur... | null | 522,003 | 522,002 | u470123394 | cpp |
p02743 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (c - a - b < 0)
return cout << "NO", 0;
cout << (4 * a * b < (c - a - b) * (c - a - b) ? "Yes" : "No");
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (c - a - b < 0)
return cout << "No", 0;
cout << (4ll * a * b < (c - a - b) * 1ll * (c - a - b) ? "Yes" : "No");
}
| null | 522,024 | 522,023 | u084411645 | cpp |
p02743 | #include <bits/stdc++.h>
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
using namespace std;
using P = pair<ll, ll>;
ll gcd(ll a, ll b) {
if (b > a)
swap(a, b);
if (b == 0)
return a;
return gcd(b, a % b);
}
ll lcm(ll a, ll b) {
ll g = gcd(a, b);
return a / g * b;
}
int main(... | #include <bits/stdc++.h>
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
using namespace std;
using P = pair<ll, ll>;
ll gcd(ll a, ll b) {
if (b > a)
swap(a, b);
if (b == 0)
return a;
return gcd(b, a % b);
}
ll lcm(ll a, ll b) {
ll g = gcd(a, b);
return a / g * b;
}
int main(... | null | 522,171 | 522,172 | u613945234 | cpp |
p02743 | #include <bits/stdc++.h>
#define int long long
#define watch cerr <<
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
using namespace std;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int a, b, c;
cin >> a >> b >> c;
if (c < a + b) {
cout... | #include <bits/stdc++.h>
#define int long long
#define watch cerr <<
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
using namespace std;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int a, b, c;
cin >> a >> b >> c;
if (c < a + b) {
cout... | null | 522,460 | 522,461 | u287226050 | cpp |
p02743 | #include <bits/stdc++.h>
using namespace std;
int main() {
unsigned long long int a, b, c, d;
cin >> a >> b >> c;
d = c - a - b;
if (d > 0 && d * d > 4 * a * b)
cout << "Yes\n";
else
cout << "No\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c, d;
cin >> a >> b >> c;
d = c - a - b;
if (d > 0 && d * d > 4 * a * b)
cout << "Yes\n";
else
cout << "No\n";
return 0;
}
| null | 522,522 | 522,523 | u962942925 | cpp |
p02743 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main() {
long long a, b, c;
cin >> a >> b >> c;
long long x = c - (a + b);
long long y2 = 4LL * a * b;
if (x * x > y2) {
cout << "Yes" << endl;
} else {
cout ... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main() {
long long a, b, c;
cin >> a >> b >> c;
long long x = c - (a + b);
long long y2 = 4LL * a * b;
if (x > 0 && x * x > y2) {
cout << "Yes" << endl;
} else {
... | null | 522,563 | 522,564 | u590241855 | cpp |
p02743 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c, p, x, u, v, d;
cin >> a >> b >> c;
d = c - a - b;
if (d >= 0 && d * d > 4 * a * b) {
cout << "YES" << endl;
} else
{
cout << "NO" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c, p, x, u, v, d;
cin >> a >> b >> c;
d = c - a - b;
if (d >= 0 && d * d > 4 * a * b) {
cout << "Yes" << endl;
} else
{
cout << "No" << endl;
}
return 0;
}
| null | 522,982 | 522,983 | u754189797 | cpp |
p02743 | #include <iostream>
using namespace std;
int main() {
long long int a, b, c, X, Y;
cin >> a >> b >> c;
X = (c - a - b);
Y = 4 * a * b;
cout << ((X * X - Y) ? " Yes\n" : "No\n");
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long int a, b, c, X, Y;
cin >> a >> b >> c;
X = (c - a - b);
Y = 4 * a * b;
cout << ((X > 0 && X * X > Y) ? "Yes\n" : "No\n");
return 0;
} | null | 523,318 | 523,319 | u912438064 | cpp |
p02743 | #include <bits/stdc++.h>
#define N 100005
#define FOR(i, a, b) for (int i = a; i <= b; ++i)
#define ll unsigned long long
using namespace std;
ll a, b, c;
int main() {
ios_base::sync_with_stdio(0);
cin.tie();
cout.tie();
cin >> a >> b >> c;
ll d = c - a - b;
if (d > 0 && d * d > 4 * a * b)
cout << "Ye... | #include <bits/stdc++.h>
#define N 100005
#define FOR(i, a, b) for (int i = a; i <= b; ++i)
#define ll long long
using namespace std;
ll a, b, c;
int main() {
ios_base::sync_with_stdio(0);
cin.tie();
cout.tie();
cin >> a >> b >> c;
ll d = c - a - b;
if (d > 0 && d * d > 4 * a * b)
cout << "Yes";
els... | null | 523,661 | 523,662 | u047756993 | cpp |
p02743 | #include <bits/stdc++.h>
using namespace std;
#define ll int64_t
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <math.h>
#define FOR(I, A, B) for (ll I = (A); I <= (B); I++)
#define IOS \
ios::sync_with_stdio(false); ... | #include <bits/stdc++.h>
using namespace std;
#define ll int64_t
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <math.h>
#define FOR(I, A, B) for (ll I = (A); I <= (B); I++)
#define IOS \
ios::sync_with_stdio(false); ... | null | 523,685 | 523,686 | u866529295 | cpp |
p02743 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#define ll long long
using namespace std;
int main() {
ll a, b, c;
cin >> a >> b >> c;
if (c - a - b >= 0 && (a - b - c) * (a - b - c) - 4 * a * b > 0) {
cout << "Yes" << endl;
... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#define ll long long
using namespace std;
int main() {
ll a, b, c;
cin >> a >> b >> c;
if (c - a - b >= 0 && (a + b - c) * (a + b - c) - 4 * a * b > 0) {
cout << "Yes" << endl;
... | null | 522,800 | 522,801 | u465478140 | cpp |
p02743 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (ll i = a; i <= b; i++)
#define repr(i, a, b) for (ll i = a; i >= b; i--)
int main() {
// your code goes here
ll a, b, c;
cin >> a >> b >> c;
if (a + b >= c)
cout << "No" << endl;
if ((c - b - a) * (c - b - a) > ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (ll i = a; i <= b; i++)
#define repr(i, a, b) for (ll i = a; i >= b; i--)
int main() {
// your code goes here
ll a, b, c;
cin >> a >> b >> c;
if (a + b >= c)
cout << "No" << endl;
else if ((c - b - a) * (c - b - ... | null | 522,837 | 522,838 | u073082475 | cpp |
p02743 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<ll> vl;
typedef pair<ll, ll> PP;
#define rep(i, n) for (ll i = 0; i < ll(n); i++)
#define all(v) v.begin(), v.end()
bool chmin(ll &a, ll b) {
if (b < a) {
a = b;
return 1;
}
return 0;
}
bool chmax(ll &a, ll b) {
if (b... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<ll> vl;
typedef pair<ll, ll> PP;
#define rep(i, n) for (ll i = 0; i < ll(n); i++)
#define all(v) v.begin(), v.end()
bool chmin(ll &a, ll b) {
if (b < a) {
a = b;
return 1;
}
return 0;
}
bool chmax(ll &a, ll b) {
if (b... | null | 524,232 | 524,233 | u268571052 | cpp |
p02743 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, c;
cin >> a >> b >> c;
if (4 * a * b < (c - a - b) * (c - a - b) || (c - a - b) < 0)
puts("Yes");
else
puts("No");
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, c;
cin >> a >> b >> c;
if (4 * a * b < (c - a - b) * (c - a - b) && (c - a - b) > 0)
puts("Yes");
else
puts("No");
return 0;
} | null | 524,553 | 524,554 | u361558096 | cpp |
p02743 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
re... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
re... | null | 524,441 | 524,442 | u980655160 | cpp |
p02743 | /*
Though leaves are many , the root is one.
Through all the lying days of my youth
I swayed my leaves and flowers in the sun.
Now I may wither into the truth.
- William Butler Yeats
*/
//#pragma GCC optimize("Ofast,no-stack-protector")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,m... | /*
Though leaves are many , the root is one.
Through all the lying days of my youth
I swayed my leaves and flowers in the sun.
Now I may wither into the truth.
- William Butler Yeats
*/
//#pragma GCC optimize("Ofast,no-stack-protector")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,m... | null | 524,443 | 524,444 | u247664404 | cpp |
p02743 | #pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define ll long long
#define rep2(i, a, b) for (ll i = a; i <= b; ++i)
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rep3(i, a, b) for (ll i = a; i >= b; i--)
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pq priority_queue
#define pb push_back
#de... | #pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define ll long long
#define rep2(i, a, b) for (ll i = a; i <= b; ++i)
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rep3(i, a, b) for (ll i = a; i >= b; i--)
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pq priority_queue
#define pb push_back
#de... | null | 524,445 | 524,446 | u495699318 | cpp |
p02744 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int n;
string alpha = "abcdefghijklmn";
void dfs(string s, int a) {
if (s.size() == n) {
cout << s << endl;
return;
} else if (s == "") {
string p = "a";
dfs(p, 1);
} else {
string p;
for (int i = 0; i <= a; i++) {
... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int n;
string alpha = "abcdefghijklmn";
void dfs(string s, int a) {
if (s.size() == n) {
cout << s << endl;
return;
} else if (s == "") {
string p = "a";
dfs(p, 1);
} else {
string p;
for (int i = 0; i <= a; i++) {
... | null | 524,759 | 524,760 | u363369454 | cpp |
p02744 | #include <bits/stdc++.h>
using namespace std;
int n;
void dfs(string s, char c) {
if (s.size() == n) {
cout << s << endl;
return;
}
for (char i = 'a'; i <= c; ++i) {
string t = s;
t += i;
dfs(t, (i == c) ? i + 1 : i);
}
}
int main() {
cin >> n;
dfs("", 'a');
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int n;
void dfs(string s, char c) {
if (s.size() == n) {
cout << s << endl;
return;
}
for (char i = 'a'; i <= c; ++i) {
string t = s;
t += i;
dfs(t, (i == c) ? c + 1 : c);
}
}
int main() {
cin >> n;
dfs("", 'a');
return 0;
} | null | 524,867 | 524,868 | u561143568 | cpp |
p02744 | #include <algorithm>
#include <iostream>
#include <set>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)n; i++) // n回繰り返す
using namespace std;
using ll = long long;
using P = pair<int, int>;
int N;
void dfs(string s, char mx) {
if (s.size() == N) {
cout << s << e... | #include <algorithm>
#include <iostream>
#include <set>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)n; i++) // n回繰り返す
using namespace std;
using ll = long long;
using P = pair<int, int>;
int N;
void dfs(string s, char mx) {
if (s.size() == N) {
cout << s << e... | null | 525,094 | 525,095 | u690272026 | cpp |
p02744 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; ++i... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; ++i... | null | 525,153 | 525,154 | u288087195 | cpp |
p02744 | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <q... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <q... | null | 525,338 | 525,339 | u736004166 | cpp |
p02745 | #include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
// std::cout << ... | #include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
// std::cout << ... | null | 534,394 | 534,395 | u866733412 | cpp |
p02745 | #include <bits/stdc++.h>
using namespace std;
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(), A.end()
#define RALL(A) A.rbegin(), A.rend()
typedef long long ll;
typedef pair<ll, ll> P;
const ll mod = 1000000007;
const ll LINF = 1LL << 60;
co... | #include <bits/stdc++.h>
using namespace std;
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(), A.end()
#define RALL(A) A.rbegin(), A.rend()
typedef long long ll;
typedef pair<ll, ll> P;
const ll mod = 1000000007;
const ll LINF = 1LL << 60;
co... | null | 534,503 | 534,504 | u471212175 | cpp |
p02747 | #include <bits/stdc++.h>
using namespace std;
//型に気を付けよう
// a=0x61=97
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
char a, b;
rep(i, 5) {
a = 0;
b = 0;
cin >> a >> b;
if (a == 0)
break;
if (a != 'h' || b != 'i') {
cout << "No" << endl;
break;
}
}
cout << "... | #include <bits/stdc++.h>
using namespace std;
//型に気を付けよう
// a=0x61=97
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
char a, b;
rep(i, 5) {
a = 0;
b = 0;
cin >> a >> b;
if (a == 0)
break;
if (a != 'h' || b != 'i') {
cout << "No" << endl;
return 0;
}
}
cout <... | null | 525,500 | 525,501 | u744783976 | cpp |
p02747 | // url:
// problem name: Brick Break
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
... | // url:
// problem name: Brick Break
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
... | null | 525,534 | 525,535 | u446371873 | cpp |
p02747 | #include <iostream>
using namespace std;
int main() {
int i;
string s;
cin >> s;
int n = s.size();
if (n % 2 == 1) {
cout << "No";
return 0;
}
for (i = 0; i < n - 1; i++) {
if (s[i] == 'h' and s[i + 1] == 'i')
;
else {
cout << "No";
return 0;
}
}
cout << "Yes";
... | #include <iostream>
using namespace std;
int main() {
int i;
string s;
cin >> s;
int n = s.size();
if (n % 2 == 1) {
cout << "No";
return 0;
}
for (i = 0; i < n - 1; i += 2) {
if (s[i] == 'h' and s[i + 1] == 'i')
;
else {
cout << "No";
return 0;
}
}
cout << "Yes";... | null | 525,687 | 525,688 | u476054945 | cpp |
p02747 | #pragma region template
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
/*
const long long MOD = 1e9 + 7, MAX = 1e18, larg = 1e5, INF = -1e9;
long long max_value = INF, max_index = -1;
long long min_value = MAX, min_index = -1;*/
long long A, B, C, D, E, F, G, H, I, J,... | #pragma region template
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
/*
const long long MOD = 1e9 + 7, MAX = 1e18, larg = 1e5, INF = -1e9;
long long max_value = INF, max_index = -1;
long long min_value = MAX, min_index = -1;*/
long long A, B, C, D, E, F, G, H, I, J,... | null | 525,855 | 525,856 | u554988565 | cpp |
p02747 | #include <bits/stdc++.h>
#include <string>
using namespace std;
int main() {
string S;
int i = 0;
int FLUG = 0;
int num;
S = "oooooooooo";
cin >> S;
num = S.size();
if (num % 2 != 1) {
for (i = 0; i < num - 1; i = i + 2) {
if (S.at(i) == 'h' && S.at(i + 1) == 'i') {
FLUG++;
}... | #include <bits/stdc++.h>
#include <string>
using namespace std;
int main() {
string S;
int i = 0;
int FLUG = 0;
int num;
S = "oooooooooo";
cin >> S;
num = S.size();
if (num % 2 == 0) {
for (i = 0; i < num - 1; i = i + 2) {
if (S.at(i) == 'h' && S.at(i + 1) == 'i') {
FLUG++;
}... | null | 526,106 | 526,107 | u010543883 | cpp |
p02747 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
#define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
#define rREP(i, m, n) for (int(i) = (n)-1; (i) >= (m); --(i))
#define all(x) (x).begin(), (x).end()
#define out(y, x, h, w)... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
#define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
#define rREP(i, m, n) for (int(i) = (n)-1; (i) >= (m); --(i))
#define all(x) (x).begin(), (x).end()
#define out(y, x, h, w)... | null | 526,213 | 526,214 | u813559924 | cpp |
p02747 | #include <bits/stdc++.h>
using namespace std;
string s;
int main() {
cin >> s;
if (s.length() % 2 == 1)
cout << "No";
for (int i = 0; i < s.length(); i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i')
return cout << "No" && 0;
}
cout << "Yes";
} | #include <bits/stdc++.h>
using namespace std;
string s;
int main() {
cin >> s;
if (s.length() % 2 == 1)
return cout << "No" && 0;
for (int i = 0; i < s.length(); i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i')
return cout << "No" && 0;
}
cout << "Yes";
} | null | 526,281 | 526,282 | u709966987 | cpp |
p02747 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vl = vector<ll>;
using vd = vector<ld>;
using vs = vector<string>;
using vb = vector<bool>;
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
template <class T> using vc = vector<T>;
template ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vl = vector<ll>;
using vd = vector<ld>;
using vs = vector<string>;
using vb = vector<bool>;
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
template <class T> using vc = vector<T>;
template ... | null | 526,544 | 526,545 | u852839243 | cpp |
p02753 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
int main() {
string s;
if (s.at(0) == s.at(1) && s.at(1) == s.at(2))
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
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;
return 0;
}
| null | 528,763 | 528,764 | u442855610 | cpp |
p02753 | #include <bits/stdc++.h>
#include <numeric>
using namespace std;
#define ll long long
#define mod 100000007
#define rep(i, n) for (int i = 0; i < n; ++i)
using Graph = vector<vector<int>>;
#define grepq priority_queue<double, std::vector<double>, std::greater<double>>
int lcm(ll a, ll b) { return a * b / __gcd(a, b); ... | #include <bits/stdc++.h>
#include <numeric>
using namespace std;
#define ll long long
#define mod 100000007
#define rep(i, n) for (int i = 0; i < n; ++i)
using Graph = vector<vector<int>>;
#define grepq priority_queue<double, std::vector<double>, std::greater<double>>
int lcm(ll a, ll b) { return a * b / __gcd(a, b); ... | null | 528,909 | 528,910 | u935370883 | cpp |
p02753 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define ll long long int
#define mp(a, b) make_pair(a, b)
#define pb(a) push_back(a)
int main() {
string s;
cin >> s;
if ((s[0] == s[1] && s[1] != s[2]) || (s[0] == s[2] && s[0] != s[1]) ||
(s[1] == s[2] && s[1] != s[0]))
cout << "YES";
... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define ll long long int
#define mp(a, b) make_pair(a, b)
#define pb(a) push_back(a)
int main() {
string s;
cin >> s;
if ((s[0] == s[1] && s[1] != s[2]) || (s[0] == s[2] && s[0] != s[1]) ||
(s[1] == s[2] && s[1] != s[0]))
cout << "Yes";
... | null | 529,960 | 529,961 | u497730624 | cpp |
p02753 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == s[1] && s[1] == s[2])
cout << "NO";
else
cout << "YES";
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";
else
cout << "Yes";
return 0;
}
| null | 530,225 | 530,226 | u712100290 | cpp |
p02753 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
const ll N = 2e5 + 10;
void solve() {
string s;
cin >> s;
set<char> st;
for (auto &k : s) {
st.insert(k);
}
st.size() == 1 ? cout << "no" : cout << "yes";
}
int main() {
#ifdef debug
freopen("input.txt", "r... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
const ll N = 2e5 + 10;
void solve() {
string s;
cin >> s;
set<char> st;
for (auto &k : s) {
st.insert(k);
}
st.size() == 1 ? cout << "No" : cout << "Yes";
}
int main() {
#ifdef debug
freopen("input.txt", "r... | null | 531,007 | 531,008 | u913106609 | cpp |
p02753 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
string S;
cin >> S;
char C = S[0];
bool ok = true;
for (int i = 1; i < S.size(); i++) {
if (S[i] != C) {
ok = false;
break;
}
}
if (ok) {
cout << "Yes" << endl;
} els... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
string S;
cin >> S;
char C = S[0];
bool ok = true;
for (int i = 1; i < S.size(); i++) {
if (S[i] != C) {
ok = false;
break;
}
}
if (ok) {
cout << "No" << endl;
} else... | null | 531,056 | 531,057 | u483304397 | cpp |
p02753 | #include <bits/stdc++.h>
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(x) (x).begin(), (x).end()
int main() {
string s;
cin >> s;
string ans = "";
bool existA = false;
bool existB = false;
rep(i, 3) {
if (s.at(i) ... | #include <bits/stdc++.h>
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(x) (x).begin(), (x).end()
int main() {
string s;
cin >> s;
string ans = "";
bool existA = false;
bool existB = false;
rep(i, 3) {
if (s.at(i) ... | null | 531,058 | 531,059 | u151505386 | cpp |
p02753 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "AAA")
cout << "No" << endl;
if (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")
cout << "No" << endl;
else if (s == "BBB")
cout << "No" << endl;
else
cout << "Yes" << endl;
}
| null | 531,082 | 531,083 | u678961336 | cpp |
p02753 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
char s[5];
cin >> s;
if (s[0] == s[1] && s[1] == s[2])
cout << "NO";
else
cout << "YES";
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
char s[5];
cin >> s;
if (s[0] == s[1] && s[1] == s[2])
cout << "No";
else
cout << "Yes";
}
| null | 531,088 | 531,089 | u296343454 | cpp |
p02753 | #include <bits/stdc++.h>
using namespace std;
int main() {
std::string a;
cin >> a;
if (a == "AAA")
cout << "No" << endl;
if (a == "ABA")
cout << "Yes" << endl;
if (a == "AAB")
cout << "No" << endl;
if (a == "ABB")
cout << "No" << endl;
if (a == "BAA")
cout << "Yes" << endl;
if (a... | #include <bits/stdc++.h>
using namespace std;
int main() {
std::string a;
cin >> a;
if (a == "AAA")
cout << "No" << endl;
if (a == "ABA")
cout << "Yes" << endl;
if (a == "AAB")
cout << "Yes" << endl;
if (a == "ABB")
cout << "Yes" << endl;
if (a == "BAA")
cout << "Yes" << endl;
if ... | null | 531,208 | 531,209 | u404842368 | cpp |
p02753 | /*
Mbak Sana Dong
Mbak Chaeyoung Dong
*/
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
int n, i, j, k, x, y, ans, temp, curr, m;
int tc;
string s;
cin >> s;
ans = 0;
for (i = 0; i < 3; i++)
if (s[i] == 'A')
ans++;
if (ans == 0 || ans == 3)
cout <... | /*
Mbak Sana Dong
Mbak Chaeyoung Dong
*/
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
int n, i, j, k, x, y, ans, temp, curr, m;
int tc;
string s;
cin >> s;
ans = 0;
for (i = 0; i < 3; i++)
if (s[i] == 'A')
ans++;
if (ans == 0 || ans == 3)
cout <... | null | 531,659 | 531,660 | u389388073 | cpp |
p02754 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FOR(i, a, b) for (ll i = (a); i < (b); ++i)
#define REP(i, n) for (ll i = 0; i < (n); ++i)
#define ARRAY_LENGTH(array) sizeof(array) / sizeof(*array)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FOR(i, a, b) for (ll i = (a); i < (b); ++i)
#define REP(i, n) for (ll i = 0; i < (n); ++i)
#define ARRAY_LENGTH(array) sizeof(array) / sizeof(*array)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
... | null | 531,698 | 531,699 | u693209970 | cpp |
p02754 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/detail/standard_policies.hpp>
#include <ext/rope>
using namespace std;
using namespace __gnu_pbds;
using namespace __gnu_cxx;
#define IOS \
ios::sync_with_stdio(0)... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/detail/standard_policies.hpp>
#include <ext/rope>
using namespace std;
using namespace __gnu_pbds;
using namespace __gnu_cxx;
#define IOS \
ios::sync_with_stdio(0)... | null | 532,231 | 532,232 | u746800706 | cpp |
p02754 | #include <iostream>
using namespace std;
int main() {
long long n, a, b;
cin >> n >> a >> b;
long long set = n / (a + b);
long long nokori = n - set * (a + b);
long long nokorib;
nokorib = ((nokori > a) ? b : nokori);
long long brue = set * a + nokorib;
cout << brue << "\n";
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long n, a, b;
cin >> n >> a >> b;
long long set = n / (a + b);
long long nokori = n - set * (a + b);
long long nokorib;
nokorib = ((nokori > a) ? a : nokori);
long long brue = set * a + nokorib;
cout << brue << "\n";
return 0;
}
| null | 533,095 | 533,096 | u114396358 | cpp |
p02754 | #include <bits/stdc++.h>
#include <functional>
#include <iostream>
#define pb push_back
#define xx first
#define yy second
//#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
using namespace std;
typedef long long ll;
typedef vector<string> vi;
typedef pair<int, int> pi;
ll bigmod(long lo... | #include <bits/stdc++.h>
#include <functional>
#include <iostream>
#define pb push_back
#define xx first
#define yy second
//#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
using namespace std;
typedef long long ll;
typedef vector<string> vi;
typedef pair<int, int> pi;
ll bigmod(long lo... | null | 535,954 | 535,955 | u802712220 | cpp |
p02754 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define nl '\n'
us... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define nl '\n'
us... | null | 536,013 | 536,014 | u690445001 | cpp |
p02765 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int N, R;
cin >> N >> R;
if (N < 2) {
cout << R + 100 * (10 - N);
} else {
cout << R;
}
} | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int N, R;
cin >> N >> R;
if (N < 10) {
cout << R + 100 * (10 - N);
} else {
cout << R;
}
} | null | 556,099 | 556,100 | u200033580 | cpp |
p02765 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) (v).begin(), (v).end()
#define out(a) cout << (a) << endl
using namespace std;
using ll = long long;
int main() {
int n, r;
cin >> n >> r;
if (n < 10) {
r += 100 * (10 - 2);
}
out(r);
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) (v).begin(), (v).end()
#define out(a) cout << (a) << endl
using namespace std;
using ll = long long;
int main() {
int n, r;
cin >> n >> r;
if (n < 10) {
r += 100 * (10 - n);
}
out(r);
} | null | 556,372 | 556,373 | u654949547 | cpp |
p02765 | using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++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 EACH(i, s) \
for (__typeo... | using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++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 EACH(i, s) \
for (__typeo... | null | 556,446 | 556,447 | u535810324 | cpp |
p02765 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, r;
cin >> n >> r;
if (n >= 10)
cout << r << endl;
else
cout << r - 100 * (10 - n) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, r;
cin >> n >> r;
if (n >= 10)
cout << r << endl;
else
cout << r + 100 * (10 - n) << endl;
}
| null | 556,485 | 556,486 | u513850599 | cpp |
p02765 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, R;
cin >> N >> R;
cout << ((N >= 10) ? R : R + 100 * (10 - R)) << "\n";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, R;
cin >> N >> R;
cout << ((N >= 10) ? R : R + 100 * (10 - N)) << "\n";
} | null | 555,553 | 555,554 | u045289115 | cpp |
p02765 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, R;
cin >> N >> R;
cout << ((N >= 10) ? R : R - 100 * (10 - R)) << "\n";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, R;
cin >> N >> R;
cout << ((N >= 10) ? R : R + 100 * (10 - N)) << "\n";
} | null | 555,555 | 555,554 | u045289115 | cpp |
p02765 | // include
//------------------------------------------
#include <bits/stdc++.h>
using namespace std;
// typedef
//------------------------------------------
using LL = int64_t;
using VL = vector<LL>;
using VVL = vector<VL>;
using VS = vector<string>;
using PLL = pair<LL, LL>;
// container util
//--------------------... | // include
//------------------------------------------
#include <bits/stdc++.h>
using namespace std;
// typedef
//------------------------------------------
using LL = int64_t;
using VL = vector<LL>;
using VVL = vector<VL>;
using VS = vector<string>;
using PLL = pair<LL, LL>;
// container util
//--------------------... | null | 557,673 | 557,674 | u150376070 | cpp |
p02765 | #include <bits/stdc++.h>
#define rep(i, a, b) for (int i = a; i < (int)(b); ++i)
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n, r;
cin >> n >> r;
int ans = r;
if (n <= 10) {
ans = r - 100 + (10 - n);
cout << ans << "\n";
} else
cout << ans << "\n";
} | #include <bits/stdc++.h>
#define rep(i, a, b) for (int i = a; i < (int)(b); ++i)
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n, r;
cin >> n >> r;
int ans = r;
if (n < 10) {
ans = r + 100 * (10 - n);
cout << ans << "\n";
} else
cout << ans << "\n";
} | null | 557,804 | 557,805 | u709373021 | cpp |
p02765 | #include <bits/stdc++.h>
#define rep(i, a, b) for (int i = a; i < (int)(b); ++i)
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n, r;
cin >> n >> r;
int ans = r;
if (n < 10) {
ans = r - 100 + (10 - n);
cout << ans << "\n";
} else
cout << ans << "\n";
} | #include <bits/stdc++.h>
#define rep(i, a, b) for (int i = a; i < (int)(b); ++i)
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n, r;
cin >> n >> r;
int ans = r;
if (n < 10) {
ans = r + 100 * (10 - n);
cout << ans << "\n";
} else
cout << ans << "\n";
} | null | 557,806 | 557,805 | u709373021 | cpp |
p02765 | #include <stdio.h>
int main(void) {
int N, R, I;
scanf("%d%d", &N, &R);
if (N >= 10) {
printf("%d\n", R);
} else {
I = 100 * (10 - N);
printf("%d\n", I);
}
return 0;
} | #include <stdio.h>
int main(void) {
int N, R, I;
scanf("%d%d", &N, &R);
if (N >= 10) {
printf("%d", R);
} else {
I = R + 100 * (10 - N);
printf("%d", I);
}
return 0;
}
| null | 557,800 | 557,801 | u065991447 | cpp |
p02765 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define int ll
#define REP(i, n) FOR(i, 0, n)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define ALL(a) (a).begin(), (a).end()
typedef vector<ll> vi;
typedef vector<vector<ll>> vvi;
typedef pair<ll, ll> pii;
const ll INF = 1LL << 58;
const ll MOD ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define int ll
#define REP(i, n) FOR(i, 0, n)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define ALL(a) (a).begin(), (a).end()
typedef vector<ll> vi;
typedef vector<vector<ll>> vvi;
typedef pair<ll, ll> pii;
const ll INF = 1LL << 58;
const ll MOD ... | null | 558,292 | 558,293 | u913836622 | cpp |
p02766 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n, k;
cin >> n >> k;
ll m = k;
int ans = 0;
if (n < k)
return cout << n, 0;
while (k <= n) {
k *= m;
ans++;
}
cout << ans;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n, k;
cin >> n >> k;
ll m = k;
int ans = 0;
if (n < k)
return cout << n, 0;
while (k <= n) {
k *= m;
ans++;
}
cout << ans + 1;
}
| null | 560,108 | 560,109 | u901813121 | cpp |
p02766 | #include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <vector>
#define ll long long
#define ALLv(a) (a).begin(), (a).end()
#define ALL(a, n) (a), (a) + n
#define INF 1010000000000000017LL
#define MOD 1000000007LL
#define EPS 1e-12
#define PI 3.14159265358979323846... | #include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <vector>
#define ll long long
#define ALLv(a) (a).begin(), (a).end()
#define ALL(a, n) (a), (a) + n
#define INF 1010000000000000017LL
#define MOD 1000000007LL
#define EPS 1e-12
#define PI 3.14159265358979323846... | null | 560,885 | 560,886 | u334644046 | cpp |
p02767 | #include "bits/stdc++.h"
using ll = long long;
using namespace std;
int get(vector<int> &v, int d) {
int ans = 0;
for (auto &e : v) {
ans += (e - d) * (e - d);
}
return ans;
}
void solve() {
int n;
cin >> n;
vector<int> v(n);
for (int i = 0; i < n; i++) {
cin >> v[i];
}
int sum = accumulat... | #include "bits/stdc++.h"
using ll = long long;
using namespace std;
int get(vector<int> &v, int d) {
int ans = 0;
for (auto &e : v) {
ans += (e - d) * (e - d);
}
return ans;
}
void solve() {
int n;
cin >> n;
vector<int> v(n);
for (int i = 0; i < n; i++) {
cin >> v[i];
}
int sum = accumulat... | null | 561,402 | 561,403 | u361662514 | cpp |
p02767 | #include "bits/stdc++.h"
using ll = long long;
using namespace std;
int get(vector<int> &v, int d) {
int ans = 0;
for (auto &e : v) {
ans += (e - d) * (e - d);
}
return ans;
}
void solve() {
int n;
cin >> n;
vector<int> v(n);
for (int i = 0; i < n; i++) {
cin >> v[i];
}
int sum = accumulat... | #include "bits/stdc++.h"
using ll = long long;
using namespace std;
int get(vector<int> &v, int d) {
int ans = 0;
for (auto &e : v) {
ans += (e - d) * (e - d);
}
return ans;
}
void solve() {
int n;
cin >> n;
vector<int> v(n);
for (int i = 0; i < n; i++) {
cin >> v[i];
}
int sum = accumulat... | null | 561,404 | 561,403 | u361662514 | cpp |
p02767 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using p = pair<int, int>;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n, p, sum = 0, min_s = 10000009;
cin >> n;
vector<int> x(n);
rep(i, n) cin >> x[i];
sort(x.begin(), x.end... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using p = pair<int, int>;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n, p, sum = 0, min_s = 10000009;
cin >> n;
vector<int> x(n);
rep(i, n) cin >> x[i];
sort(x.begin(), x.end... | null | 561,896 | 561,897 | u843929518 | cpp |
p02767 | #include <algorithm>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
namespace Mylib {
using namespace std;
int RangeCalc(int a, int b) {
int tempInt;
tempInt = (a - b) * (a - b);
return tempInt;
}
} // namespace Mylib
int main(void) {
using namespace std;
int N;
cin >> N;
in... | #include <algorithm>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
namespace Mylib {
using namespace std;
int RangeCalc(int a, int b) {
int tempInt;
tempInt = (a - b) * (a - b);
return tempInt;
}
} // namespace Mylib
int main(void) {
using namespace std;
int N;
cin >> N;
in... | null | 562,146 | 562,147 | u587243477 | cpp |
p02767 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <math.h>
#include <numeric>
#include <queue>
#include <string>
#include <vector>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = ... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <math.h>
#include <numeric>
#include <queue>
#include <string>
#include <vector>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = ... | null | 562,269 | 562,270 | u999904282 | cpp |
p02767 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int N;
cin >> N;
vector<int> X(N);
rep(i, N) cin >> X[i];
sort(X.begin(), X.end());
int sum = 0;
int min = 99999999;
rep(i, X[N - 1]) {
int P = i;
sum = 0;
re... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int N;
cin >> N;
vector<int> X(N);
rep(i, N) cin >> X[i];
sort(X.begin(), X.end());
int sum = 0;
int min = 99999999;
rep(i, 100 + 1) {
int P = i;
sum = 0;
rep... | null | 562,315 | 562,316 | u872158847 | cpp |
p02767 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
const int INF = 1 << 29;
int main() {
int N;
cin >> N;
vector<int> X(N);
for (int i = 0; i < N; ++i)
cin >> X[i];
sort(X.begin(), X.end(), greater<int>());
int M = X[0];
int min_cost = I... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
const int INF = 1 << 29;
int main() {
int N;
cin >> N;
vector<int> X(N);
for (int i = 0; i < N; ++i)
cin >> X[i];
sort(X.begin(), X.end(), greater<int>());
int M = X[0];
int min_cost = I... | null | 563,461 | 563,462 | u189867560 | cpp |
p02768 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod = 1e9 + 7;
ll qmi(ll a, ll b) {
ll res = 1;
while (b) {
if (b & 1)
res = res * a % mod;
a = a * a % mod;
b >>= 1;
}
return res;
}
ll C(int n, int a) {
ll res = 1, ans = 1;
for (int i = 1; i <= a; i++)
res... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod = 1e9 + 7;
ll qmi(ll a, ll b) {
ll res = 1;
while (b) {
if (b & 1)
res = res * a % mod;
a = a * a % mod;
b >>= 1;
}
return res;
}
ll C(ll n, ll a) {
ll res = 1, ans = 1;
for (ll i = 1; i <= a; i++)
res = ... | null | 564,399 | 564,400 | u408544110 | cpp |
p02769 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPP(i, n) for (int i = 1; i <= n; i++)
#define ALL(obj) (obj).begin(), (obj).end()
long long INF = (long long)1E17;
#define i_7 (long long)(1E9 + 7)
//#define i_7 998'244'353
long mod(long a) {
long long c = a % i_7;
if (c >= 0)
ret... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPP(i, n) for (int i = 1; i <= n; i++)
#define ALL(obj) (obj).begin(), (obj).end()
long long INF = (long long)1E17;
#define i_7 (long long)(1E9 + 7)
//#define i_7 998'244'353
long mod(long a) {
long long c = a % i_7;
if (c >= 0)
ret... | null | 565,167 | 565,168 | u222293734 | cpp |
p02770 | /*** author: yuji9511 ***/
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using lpair = pair<ll, ll>;
const ll MOD = 1e9 + 7;
const ll INF = 1e18;
#define rep(i, m, n) for (ll i = (m); i < (n); i++)
#define rrep(i, m, n) for (ll i = (m); i >= (n); i--)
#define printa(x, n) ... | /*** author: yuji9511 ***/
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using lpair = pair<ll, ll>;
const ll MOD = 1e9 + 7;
const ll INF = 1e18;
#define rep(i, m, n) for (ll i = (m); i < (n); i++)
#define rrep(i, m, n) for (ll i = (m); i >= (n); i--)
#define printa(x, n) ... | null | 565,791 | 565,792 | u218842729 | cpp |
p02771 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
string ans;
ans = "No";
if (a == b && a != c) {
ans = "Yes";
}
if (a == c && a != b) {
ans = "Yes";
}
if (c == b && a != a) {
ans = "Yes";
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
string ans;
ans = "No";
if (a == b && a != c) {
ans = "Yes";
}
if (a == c && a != b) {
ans = "Yes";
}
if (c == b && b != a) {
ans = "Yes";
}
cout << ans << endl;
} | null | 565,870 | 565,871 | u520687794 | cpp |
p02771 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
string ans;
cin >> a >> b >> c;
if ((a == b && a != c) || (b == c && b != a) || (c == a && c != b)) {
ans == "Yes";
} else
ans == "No";
cout << ans << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
string ans = "";
cin >> a >> b >> c;
if ((a == b && a != c) || (b == c && b != a) || (c == a && c != b)) {
ans = "Yes";
} else
ans = "No";
cout << ans << endl;
} | null | 565,476 | 565,477 | u540695932 | cpp |
p02771 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if ((a == b && a != b) || (a = c && a != b) || (b = c && b != c)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if ((a == b && a != c) || (a == c && a != b) || (b == c && b != a)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| null | 565,969 | 565,970 | u210234656 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.