Datasets:

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
p02640
#include <bits/stdc++.h> #include <iostream> #define int long long #define mod 1000000007 #define pb(x) push_back(x) #define gcd(a, b) __gcd(a, b) #define all(v) v.begin(), v.end() #define lcm(a, b) (a * b) / gcd(a, b) #define bits(x) __builtin_popcountll(x) #define fast ...
#include <bits/stdc++.h> #include <iostream> #define int long long #define mod 1000000007 #define pb(x) push_back(x) #define gcd(a, b) __gcd(a, b) #define all(v) v.begin(), v.end() #define lcm(a, b) (a * b) / gcd(a, b) #define bits(x) __builtin_popcountll(x) #define fast ...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
352,754
352,755
u123890193
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define ll long long using namespace std; int main() { int x, y; cin >> x >> y; rep(i, 102) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; // cout << i << " " << x - i << endl; return 0; } } cout ...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define ll long long using namespace std; int main() { int x, y; cin >> x >> y; rep(i, x + 1) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; // cout << i << " " << x - i << endl; return 0; } } cou...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
352,756
352,757
u234479322
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define ll long long using namespace std; int main() { int x, y; cin >> x >> y; rep(i, 101) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; // cout << i << " " << x - i << endl; return 0; } } cout ...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define ll long long using namespace std; int main() { int x, y; cin >> x >> y; rep(i, x + 1) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; // cout << i << " " << x - i << endl; return 0; } } cou...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
352,758
352,757
u234479322
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 1; i < (ll)(n); i++) #define ll long long using namespace std; int main() { int x, y; cin >> x >> y; rep(i, 101) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; // cout << i << " " << x - i << endl; return 0; } } cout ...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define ll long long using namespace std; int main() { int x, y; cin >> x >> y; rep(i, x + 1) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; // cout << i << " " << x - i << endl; return 0; } } cou...
[ "preprocessor.define.value.change", "literal.integer.change", "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
352,759
352,757
u234479322
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 1; i < (ll)(n); i++) #define ll long long using namespace std; int main() { int x, y; cin >> x >> y; rep(i, 101) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define ll long long using namespace std; int main() { int x, y; cin >> x >> y; rep(i, x + 1) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; // cout << i << " " << x - i << endl; return 0; } } cou...
[ "preprocessor.define.value.change", "literal.integer.change", "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
352,760
352,757
u234479322
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y, c, t; cin >> x; cin >> y; if (y % 2 != 0) { cout << "No" << endl; return 0; } c = 2 * x - y / 2; t = y / 2 - x; if (c >= 0 && t >= 0) cout << "yes"; else { cout << "No"; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, c, t; cin >> x; cin >> y; if (y % 2 != 0) { cout << "No" << endl; return 0; } c = 2 * x - y / 2; t = y / 2 - x; if (c >= 0 && t >= 0) cout << "Yes"; else { cout << "No"; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,769
352,770
u264112434
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; int main() { int x, y; cin >> x >> y; if (((4 * x - y) >= 0 && (4 * x - y) % 2 == 0) && (((-2) * x + y) % 2 >= 0 && ((-2) * x + y) % 2 == 0)) cout << "Yes" << en...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; int main() { int x, y; cin >> x >> y; if (((4 * x - y) >= 0 && (4 * x - y) % 2 == 0) && (((-2) * x + y) >= 0 && ((-2) * x + y) % 2 == 0)) cout << "Yes" << endl; ...
[ "expression.operation.binary.remove" ]
352,782
352,783
u529722835
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (x == 1 && y == 2) { cout << "Yes" << endl; return 0; } if (x == 1 && y == 4) { cout << "Yes" << endl; return 0; } if (x > 50) { cout << "No" << endl; return 0; } for (int i = 0; i < x; i++) { ...
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (x == 1 && y == 2) { cout << "Yes" << endl; return 0; } if (x == 1 && y == 4) { cout << "Yes" << endl; return 0; } if (x > 50) { cout << "No" << endl; return 0; } for (int i = 0; i < 100; i++) { ...
[ "identifier.replace.remove", "literal.replace.add", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.return.add", "control_flow.return.0.add" ]
352,784
352,785
u451954557
cpp
p02640
#include <iostream> using namespace std; int main(void) { int X, Y; int XX, YY, a, b; cin >> X >> Y; XX = X * 2; YY = Y / 2; a = XX - YY; b = YY - X; // cout << a << " " << b << endl; if (a > 0 && b > 0 && X == a + b && Y == 2 * a + 4 * b) cout << "Yes" << endl; else cout << "No" << e...
#include <iostream> using namespace std; int main(void) { int X, Y; int XX, YY, a, b; cin >> X >> Y; XX = X * 2; YY = Y / 2; a = XX - YY; b = YY - X; if (a >= 0 && b >= 0 && X == a + b && Y == 2 * a + 4 * b) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
352,788
352,789
u019200255
cpp
p02640
#include <iostream> using namespace std; int main(void) { int X, Y; int XX, YY, a, b; cin >> X >> Y; XX = X * 2; YY = Y / 2; a = XX - YY; b = YY - X; // cout << a << " " << b << endl; if (a > 0 && b > 0 && X == a + b && Y == 2 * a + 4 * b) cout << "Yes" << endl; else cout << "No" << e...
#include <iostream> using namespace std; int main(void) { int X, Y; int XX, YY, a, b; cin >> X >> Y; XX = X * 2; YY = Y / 2; a = XX - YY; b = YY - X; // cout << a << " " << b << endl; if (a >= 0 && b >= 0 && X == a + b && Y == 2 * a + 4 * b) cout << "Yes" << endl; else cout << "No" <<...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
352,788
352,790
u019200255
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y, i; cin >> x >> y; int legs = 0, cl = 0, tl = 0, c = 0, t = 0; for (i = 0; i <= x; i++) { c = i; t = x - i; cl = 2 * c; tl = 4 * t; legs = cl + tl; if (legs == y) { cout << "YES" << "\n"; return 0...
#include <bits/stdc++.h> using namespace std; int main() { int x, y, i; cin >> x >> y; int legs = 0, cl = 0, tl = 0, c = 0, t = 0; for (i = 0; i <= x; i++) { c = i; t = x - i; cl = 2 * c; tl = 4 * t; legs = cl + tl; if (legs == y) { cout << "Yes" << "\n"; return 0...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,800
352,801
u489075504
cpp
p02640
#include <iostream> using namespace std; int main(void) { int a, b; // Your code here! cin >> a >> b; if (b % 2 != 0 || b < a || b > 2 * a) { printf("No\n"); } else { printf("Yes\n"); } }
#include <iostream> using namespace std; int main(void) { int a, b; // Your code here! cin >> a >> b; if (b % 2 != 0 || b < 2 * a || b > 4 * a) { printf("No\n"); } else { printf("Yes\n"); } }
[ "control_flow.branch.if.condition.change", "literal.number.change" ]
352,809
352,810
u893178798
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int a, b, j = 0, c; cin >> a >> b; for (int i = 0; i <= a; i++) { c = i * 2 + (a - i) * 4; if (c == b) j = 1; } if (j == 0) cout << "NO"; else cout << "YES"; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, j = 0, c; cin >> a >> b; for (int i = 0; i <= a; i++) { c = i * 2 + (a - i) * 4; if (c == b) j = 1; } if (j == 0) cout << "No"; else cout << "Yes"; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,819
352,820
u098576215
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int a, b, j = 0, c; cin >> a >> b; for (int i = 0; i < a; i++) { c = i * 2 + (a - i) * 4; if (c == b) j = 1; } if (j == 0) cout << "NO"; else cout << "YES"; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, j = 0, c; cin >> a >> b; for (int i = 0; i <= a; i++) { c = i * 2 + (a - i) * 4; if (c == b) j = 1; } if (j == 0) cout << "No"; else cout << "Yes"; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,821
352,820
u098576215
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int a = y - 2 * x; if (a <= 0) { cout << "No" << endl; return 0; } if (a % 2 == 0) { int b = a / 2; if (b <= x) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return...
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int a = y - 2 * x; if (a < 0) { cout << "No" << endl; return 0; } if (a % 2 == 0) { int b = a / 2; if (b <= x) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
352,837
352,838
u432385629
cpp
p02640
#include <bits/stdc++.h> typedef long long LL; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 != 0) { cout << "No" << endl; return 0; } int tsuru, kame; tsuru = 2 * X - Y / 2; kame = -1 * X + Y / 2; // cout << tsuru << e...
#include <bits/stdc++.h> typedef long long LL; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 != 0) { cout << "No" << endl; return 0; } int tsuru, kame; tsuru = 2 * X - Y / 2; kame = -1 * X + Y / 2; // cout << tsuru << e...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
352,841
352,842
u811218531
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); ++i) #define reps(i, n) for (ll i = 1; i <= (n); ++i) #define _rep(i, n) for (ll i = (n)-1; i >= 0; --i) #define _reps(i, n) for (ll i = n; i > 0; --i) #define all(x) (x).begin(), (x).end() #define _all(x) (x).rbegin(), (x).rend() using namespace std;...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); ++i) #define reps(i, n) for (ll i = 1; i <= (n); ++i) #define _rep(i, n) for (ll i = (n)-1; i >= 0; --i) #define _reps(i, n) for (ll i = n; i > 0; --i) #define all(x) (x).begin(), (x).end() #define _all(x) (x).rbegin(), (x).rend() using namespace std;...
[ "control_flow.branch.if.condition.change" ]
352,846
352,847
u939529007
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int x, y; cin >> x >> y; int a = 0, B = 0; B = y - 2 * x; if (B > 0 && B % 2 != 0) { cout << "No" << endl; return 0; } a = x - B / 2; if (a >= 0) cout << "Yes" ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int x, y; cin >> x >> y; int a = 0, B = 0; B = y - 2 * x; if (B < 0 || B % 2 != 0) { cout << "No" << endl; return 0; } a = x - B / 2; if (a >= 0) cout << "Yes" ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
352,863
352,864
u822037230
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; typedef long long ll; const int mod = 1E9 + 7; const int inf = 1 << 29; int main() { int x, y; cin >> x >> y; float b = 2 * x - y / 2; float t = -x + y / 2; if (b < 0 | b != int(b)) { cout << "No" << endl; ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; typedef long long ll; const int mod = 1E9 + 7; const int inf = 1 << 29; int main() { float x, y; cin >> x >> y; float b = 2 * x - y / 2; float t = -x + y / 2; if (b < 0 | b != int(b)) { cout << "No" << endl...
[ "variable_declaration.type.primitive.change" ]
352,865
352,866
u994910167
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i <= n; i++) using namespace std; using ll = long long; int main() { int x, y; cin >> x >> y; bool conb = false; rep(i, x) { rep(j, x) { int sum = 2 * i + 4 * j; if ((i + j == x) && (sum == y)) conb = true; } } if (con...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i <= n; i++) using namespace std; using ll = long long; int main() { int x, y; cin >> x >> y; bool conb = false; rep(i, x) { rep(j, x) { int sum = 2 * i + 4 * j; if ((i + j == x) && (sum == y)) conb = true; } } if (con...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,869
352,870
u955481356
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define fio ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); #define tc(t) \ int t; \ cin >> t; ...
#include <bits/stdc++.h> using namespace std; #define fio ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); #define tc(t) \ int t; \ cin >> t; ...
[ "control_flow.branch.if.condition.change" ]
352,871
352,872
u677163137
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y - (2 * x) < 0) { cout << "No"; } else { int ans = (y - (2 * x)); if (ans % 2 == 0 && ans <= x) { cout << "Yes"; } else { cout << "No"; } } // your code goes here return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y - (2 * x) < 0) { cout << "No"; } else { int ans = (y - (2 * x)); if (ans % 2 == 0 && ans / 2 <= x) { cout << "Yes"; } else { cout << "No"; } } // your code goes here return 0; }
[ "control_flow.branch.if.condition.change" ]
352,877
352,878
u207085063
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y - 2 * x < 0) { cout << "No"; } else { int ans = (y - (2 * x)); if (ans % 2 == 0 && ans <= x) { cout << "Yes"; } else { cout << "No"; } } // your code goes here return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y - (2 * x) < 0) { cout << "No"; } else { int ans = (y - (2 * x)); if (ans % 2 == 0 && ans / 2 <= x) { cout << "Yes"; } else { cout << "No"; } } // your code goes here return 0; }
[ "control_flow.branch.if.condition.change" ]
352,879
352,878
u207085063
cpp
p02640
#include <iostream> using namespace std; #define f(i, a, b) for (int i = a; i <= b; ++i) int main() { int x, y; cin >> x >> y; if (x * 4 >= y && x * 2 <= y && y % 2 == 0) cout << "YES"; else cout << "NO"; return 0; }
#include <iostream> using namespace std; #define f(i, a, b) for (int i = a; i <= b; ++i) int main() { int x, y; cin >> x >> y; if (x * 4 >= y && x * 2 <= y && y % 2 == 0) cout << "Yes"; else cout << "No"; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,880
352,881
u670246297
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; const int INF = 1001001001; const int MOD = 1000000007; int main() { int x, y; cin >> x >> y; bool ok = false; for (int i = 0; i <= 100; ++i) { if (i * 2 + (x - i) * 4 == y) ok = true; ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; const int INF = 1001001001; const int MOD = 1000000007; int main() { int x, y; cin >> x >> y; bool ok = false; for (int i = 0; i <= x; ++i) { if (i * 2 + (x - i) * 4 == y) ok = true; ...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
352,890
352,891
u576335153
cpp
p02640
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <limits> #include <map> #include <queue> #include <set> #include <stack> #include <utility> #include <vector> #define rep(i, s, g) for (i = s; i < g; i++) using namespace std; using ll = long long; const int inf = 10...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <limits> #include <map> #include <queue> #include <set> #include <stack> #include <utility> #include <vector> #define rep(i, s, g) for (i = s; i < g; i++) using namespace std; using ll = long long; const int inf = 10...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
352,892
352,893
u170750497
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y, c = 0; cin >> x >> y; for (int i = 0; 2 <= y - (i * 4); i++) { if ((y - (i * 4)) % 2 == 0 && (((y - (i * 4)) / 2) + i) - x == 0) { c += 1; } } if (c == 1) { cout << "Yes" << endl; } else { cout << "No" << endl; } ...
#include <bits/stdc++.h> using namespace std; int main() { int x, y, c = 0; cin >> x >> y; for (int i = 0; 0 <= y - (i * 4); i++) { if ((y - (i * 4)) % 2 == 0 && (((y - (i * 4)) / 2) + i) - x == 0) { c += 1; } } if (c == 1) { cout << "Yes" << endl; } else { cout << "No" << endl; } ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
352,898
352,899
u268908539
cpp
p02640
// Problem : B - Crane and Turtle // Contest : AtCoder - AtCoder Beginner Contest 170 // URL : https://atcoder.jp/contests/abc170/tasks/abc170_b // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> using namespace std; bool legs(int ...
// Problem : B - Crane and Turtle // Contest : AtCoder - AtCoder Beginner Contest 170 // URL : https://atcoder.jp/contests/abc170/tasks/abc170_b // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> using namespace std; bool legs(int ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
352,900
352,901
u209366387
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; long long ans = 4 * a - b; if ((ans >= 0) && (ans % 2 == 0) && ((ans / 2) <= a)) cout << "YES"; else cout << "NO"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; long long ans = 4 * a - b; if ((ans >= 0) && (ans % 2 == 0) && ((ans / 2) <= a)) cout << "Yes"; else cout << "No"; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,902
352,903
u613537509
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y, Z, C; cin >> X; cin >> Y; Z = (4 * X); if (Z < Y || (2 * X) > Y) { cout << "No" << endl; return 0; } else { C = (Z - Y) % 2; } if (C == 0) { cout << "Yes" << endl; } else if (C > 1) { cout << "No" << endl; } ...
#include <bits/stdc++.h> using namespace std; int main() { long int X, Y, Z, C; cin >> X; cin >> Y; Z = (4 * X); if (Z < Y || (2 * X) > Y) { cout << "No" << endl; return 0; } else { C = (Z - Y) % 2; } if (C == 0) { cout << "Yes" << endl; } else if (C == 1) { cout << "No" << endl...
[ "variable_declaration.type.widen.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
352,904
352,905
u093319233
cpp
p02640
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; if ((Y % 2 != 0) || (2 * X > Y && Y > 4 * X)) { cout << "No"; } else { cout << "Yes"; } }
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; if ((Y % 2 != 0) || (2 * X > Y || Y > 4 * X)) { cout << "No"; } else { cout << "Yes"; } }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
352,906
352,907
u199648123
cpp
p02640
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; if ((Y % 2 != 0) || (2 * X < Y && Y < 4 * X)) { cout << "No"; } else { cout << "Yes"; } }
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; if ((Y % 2 != 0) || (2 * X > Y || Y > 4 * X)) { cout << "No"; } else { cout << "Yes"; } }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
352,908
352,907
u199648123
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define sf scanf #define pf printf #define pb push_back #define MP make_pair #define llu unsigned long long #define U unsigned int #define ff first #define ss second #define SIZE 100005 #define pie 3.14159265358979323 #define minu...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define sf scanf #define pf printf #define pb push_back #define MP make_pair #define llu unsigned long long #define U unsigned int #define ff first #define ss second #define SIZE 100005 #define pie 3.14159265358979323 #define minu...
[ "literal.number.change", "control_flow.loop.condition.change" ]
352,914
352,915
u853060245
cpp
p02640
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define INF 2e9 #define ALL(v) v.begin(), v.end() using namespace std; typedef long long ll; int main() { double a; int X, Y; cin >> X >> Y; a =...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define INF 2e9 #define ALL(v) v.begin(), v.end() using namespace std; typedef long long ll; int main() { double a; int X, Y; cin >> X >> Y; a =...
[ "expression.operation.binary.remove" ]
352,918
352,919
u408441941
cpp
p02640
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define INF 2e9 #define ALL(v) v.begin(), v.end() using namespace std; typedef long long ll; int main() { double a; int X, Y; cin >> X >> Y; a =...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define INF 2e9 #define ALL(v) v.begin(), v.end() using namespace std; typedef long long ll; int main() { double a; int X, Y; cin >> X >> Y; a =...
[ "control_flow.branch.if.condition.change" ]
352,920
352,919
u408441941
cpp
p02640
#include <bits/stdc++.h> using namespace std; // typedef typedef long long ll; typedef vector<int> vi; typedef vector<string> vs; // define #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = 0;...
#include <bits/stdc++.h> using namespace std; // typedef typedef long long ll; typedef vector<int> vi; typedef vector<string> vs; // define #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = x ...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.initializer.change" ]
352,925
352,926
u828907994
cpp
p02640
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 1; i < 100; i++) { for (int j = 1; j < 100; j++) { if (2 * i + 4 * j == Y && i + j == X) { cout << "Yes" << endl; return ...
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 0; i <= 100; i++) { for (int j = 0; j <= 100; j++) { if (2 * i + 4 * j == Y && i + j == X) { cout << "Yes" << endl; retur...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
352,927
352,928
u947485517
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 == 1) { cout << "No" << endl; return 0; } if (X * 2 > Y) { cout << "No" << endl; } else if (X * 4 < Y) { cout << "No" << endl; } else { for (int i = 0; i < Y / 4; i++) { if ((Y - 4 * ...
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 == 1) { cout << "No" << endl; return 0; } if (X * 2 > Y) { cout << "No" << endl; } else if (X * 4 < Y) { cout << "No" << endl; } else { for (int i = 0; i < 50; i++) { if ((Y - 4 * i) ...
[ "identifier.replace.remove", "literal.replace.add", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
352,929
352,930
u042170587
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { string ans = "No"; int x, y; cin >> x >> y; int crane = x, turtle = 0; for (int i = 0; i < x; i++) { crane = x - i; turtle = i; int buf = crane * 2 + turtle * 4; if (buf == y) { ans = "Yes"; break; } } cout << a...
#include <bits/stdc++.h> using namespace std; int main() { string ans = "No"; int x, y; cin >> x >> y; int crane = x, turtle = 0; for (int i = 0; i <= x; i++) { crane = x - i; turtle = i; int buf = crane * 2 + turtle * 4; if (buf == y) { ans = "Yes"; break; } } cout << ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
352,933
352,934
u650603304
cpp
p02640
#include <iostream> using namespace std; int main() { int n, x; cin >> n >> x; if (x >= 2 * n && x <= 4 * n && x % 2 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int n, x; cin >> n >> x; if (x >= 2 * n && x <= 4 * n && x % 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,945
352,946
u350971068
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int X, Y; cin >> X >> Y; if (Y % 2 == 0 && Y >= X * 2 && Y <= X * 4) { cout << "YES"; } else { cout << "NO"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int X, Y; cin >> X >> Y; if (Y % 2 == 0 && Y >= X * 2 && Y <= X * 4) { cout << "Yes"; } else { cout << "No"; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,952
352,953
u630411457
cpp
p02640
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define ll long long // int l[n+1]; int main() { int x, y; cin >> x >> y; int a; if ((4 * x - y) / 2 >= 0 && (4 * x - y) % 2 == 0 && y % 2 == 0) { cout << "Yes"; } else { cout << "No"; } }
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define ll long long // int l[n+1]; int main() { int x, y; cin >> x >> y; int a; if ((4 * x - y) / 2 >= 0 && (4 * x - y) % 2 == 0 && (y - 2 * x) >= 0) { cout << "Yes"; } else { cout << "No"; } }
[ "control_flow.branch.if.condition.change", "expression.operator.arithmetic.change" ]
352,958
352,959
u891945807
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int x, y; cin >> x >> y; if ((y - 2 * x) < 0 || (4 * x - y) < 0) { cout << "NO"; } else if ((y - 2 * x) % 2 == 0 && (4 * x - y) % 2 == 0) { cout << "YES"; } else { cout << "NO"; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int x, y; cin >> x >> y; if ((y - 2 * x) < 0 || (4 * x - y) < 0) { cout << "No"; } else if ((y - 2 * x) % 2 == 0 && (4 * x - y) % 2 == 0) { cout << "Yes"; } else { cout << "No"; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,962
352,963
u113431772
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int x, y; cin >> x >> y; if ((y - 2 * x) < 0 || (4 * x - y) < 0) { cout << "NO"; } else if ((y - 2 * x) % 2 == 0 && (4 * x - y) % 2 == 0) { cout << "YES"; } else { cout << "NO"; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int x, y; cin >> x >> y; if ((y - 2 * x) < 0 || (4 * x - y) < 0) { cout << "No"; } else if ((y - 2 * x) % 2 == 0 && (4 * x - y) % 2 == 0) { cout << "Yes"; } else { cout << "No"; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,964
352,963
u113431772
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 1 && (4 * x < y || 2 * x > y)) cout << "No" << endl; else cout << "Yes" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 1 || 4 * x < y || 2 * x > y) cout << "No" << endl; else cout << "Yes" << endl; }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
352,965
352,966
u351148423
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; if (n == 1 && m == 4) { cout << "Yes"; return 0; } if (n * 4 <= m) { cout << "No"; return 0; } int sum = n * 4 - m; if (sum % 2 == 0) { int c1 = sum / 2; int t1 = n - c1; if (t1 * 4 + c1 * ...
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; if (n == 1 && m == 4) { cout << "Yes"; return 0; } if (n * 4 < m) { cout << "No"; return 0; } int sum = n * 4 - m; if (sum % 2 == 0) { int c1 = sum / 2; int t1 = n - c1; if (t1 * 4 + c1 * 2...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
352,969
352,970
u226834541
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define CLR(a) memset(a, 0, sizeof(a)) #define SET(a) memset(a, -1, sizeof(a)) #define nl "\n"; #define FIO \ ios_base::sync_with_stdio(false); \ cout.setf(io...
#include <bits/stdc++.h> using namespace std; #define CLR(a) memset(a, 0, sizeof(a)) #define SET(a) memset(a, -1, sizeof(a)) #define nl "\n"; #define FIO \ ios_base::sync_with_stdio(false); \ cout.setf(io...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,978
352,979
u098704227
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll int #define nl endl #define pi 3.14159265358979323846 #define ff first #define ss second #define pb push_back #define watch(xxx) cerr << (#xxx) << " is " << xxx << nl; const int N = 200100; vector<int> v; //~ int m[1000006+100]; int main() { ll t = 1; //...
#include <bits/stdc++.h> using namespace std; #define ll int #define nl endl #define pi 3.14159265358979323846 #define ff first #define ss second #define pb push_back #define watch(xxx) cerr << (#xxx) << " is " << xxx << nl; const int N = 200100; vector<int> v; //~ int m[1000006+100]; int main() { ll t = 1; //...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,982
352,983
u719780128
cpp
p02640
#define lp(i, n) for (int i = 0; i < n; i++) typedef long long ll; using namespace std; #include <bits/stdc++.h> int main() { int x, y; bool f = false; cin >> x >> y; for (int i = 1; i <= x; ++i) { for (int j = 0; i + j <= x; ++j) { if (2 * i + 4 * j == y) if (i + j == x) { f = true...
#define lp(i, n) for (int i = 0; i < n; i++) typedef long long ll; using namespace std; #include <bits/stdc++.h> int main() { int x, y; bool f = false; cin >> x >> y; for (int i = 0; i <= x; ++i) { for (int j = 0; i + j <= x; ++j) { if (2 * i + 4 * j == y) if (i + j == x) { f = true...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
352,996
352,997
u919272156
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <typename T> ostream &operator<<(ostream &os, vector<T> &v) { string sep = " "; if (v.size()) os << v[0]; for (int i = 1; i < v.size(); i++) os << sep << v[i]; return os; } template <typename T> istream &operator>>(istream &i...
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <typename T> ostream &operator<<(ostream &os, vector<T> &v) { string sep = " "; if (v.size()) os << v[0]; for (int i = 1; i < v.size(); i++) os << sep << v[i]; return os; } template <typename T> istream &operator>>(istream &i...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,004
353,005
u534998883
cpp
p02640
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using Vec = vector<int>; int main() { int a, b; cin >> a >> b; bool x = true; for (int i = 1; i <= a; i++) { if (i * 2 + 4 * (a - i) == b) { cout << "Yes" << endl; x = false; break; } } i...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using Vec = vector<int>; int main() { int a, b; cin >> a >> b; bool x = true; for (int i = 0; i <= a; i++) { if (i * 2 + 4 * (a - i) == b) { cout << "Yes" << endl; x = false; break; } } i...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,008
353,009
u275409294
cpp
p02640
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using Vec = vector<int>; int main() { int a, b; cin >> a >> b; bool x = true; for (int i = 1; i <= a; i++) { if (i * 2 + 4 * (a - i) == b) { cout << "YES" << endl; x = false; break; } } i...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using Vec = vector<int>; int main() { int a, b; cin >> a >> b; bool x = true; for (int i = 0; i <= a; i++) { if (i * 2 + 4 * (a - i) == b) { cout << "Yes" << endl; x = false; break; } } i...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,010
353,009
u275409294
cpp
p02640
#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() { int x, y; cin >> x >> y; int kame, sum_legs; string ans = "No"; if (x == 1) { if (y == 2 || y == 4) { ans = "Yes"; } } else { for (int...
#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() { int x, y; cin >> x >> y; int kame, sum_legs; string ans = "No"; if (x == 1) { if (y == 2 || y == 4) { ans = "Yes"; } } else { for (int...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,025
353,026
u681229900
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll mx = 10000007; const ll mod = 1e9 + 7; #define gcd(a, b) __gcd((a), (b)) #define lcm(a, b) ((a) / __gcd((a), (b)) * (b)) int main() { ll n, t; cin >> n >> t; for (ll i = 0; i <= n; i++) { for (ll j = 0; j <= n; j++) { if ((((...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll mx = 10000007; const ll mod = 1e9 + 7; #define gcd(a, b) __gcd((a), (b)) #define lcm(a, b) ((a) / __gcd((a), (b)) * (b)) int main() { ll n, t; cin >> n >> t; for (ll i = 0; i <= n; i++) { for (ll j = 0; j <= n; j++) { if ((((...
[ "control_flow.branch.if.condition.change" ]
353,028
353,029
u305141544
cpp
p02640
#include <iostream> #include <string> int main() { int x, y; std::cin >> x >> y; std::string YorN = "No"; for (int i = 1; i <= x; i++) { if (2 * i + 4 * (x - i) == y) { YorN = "Yes"; } } std::cout << YorN << std::endl; }
#include <iostream> #include <string> int main() { int x, y; std::cin >> x >> y; std::string YorN = "No"; for (int i = 0; i <= x; i++) { if (2 * i + 4 * (x - i) == y) { YorN = "Yes"; } } std::cout << YorN << std::endl; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,036
353,037
u299955352
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define l long long #define pis acos(-1) int main() { l n, m, a, b, i, j, sum = 0, mx = LONG_LONG_MIN, mn = LONG_LONG_MAX; string str; vector<l> v; map<l, l> mp; set<l> s; cin >> n >> m; for (i = 0; i <= n; i++) { for (j = 0; j < n; j++) { if (i + j ...
#include <bits/stdc++.h> using namespace std; #define l long long #define pis acos(-1) int main() { l n, m, a, b, i, j, sum = 0, mx = LONG_LONG_MIN, mn = LONG_LONG_MAX; string str; vector<l> v; map<l, l> mp; set<l> s; cin >> n >> m; for (i = 0; i <= n; i++) { for (j = 0; j <= n; j++) { if (i + j...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
353,044
353,045
u794065738
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int leg1 = x * 4; int leg2 = x * 2; if (y == leg1 || y == leg2) { cout << "Yes\n"; } else { for (int i = 1; i <= x; i++) { if ((i * 2 + (x - i) * 4) == y) { cout << "Yes\n"; return 0; } ...
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int leg1 = x * 4; int leg2 = x * 2; if (y == leg1 || y == leg2) { cout << "Yes\n"; } else { for (int i = 1; i <= x; i++) { if ((i * 2 + (x - i) * 4) == y) { cout << "Yes\n"; return 0; } ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,055
353,056
u966219945
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int leg1 = x * 4; int leg2 = x * 2; if (y == leg1 || y == leg2) { cout << "yes\n"; } else { for (int i = 1; i <= x; i++) { if ((i * 2 + (x - i) * 4) == y) { cout << "Yes\n"; return 0; } ...
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int leg1 = x * 4; int leg2 = x * 2; if (y == leg1 || y == leg2) { cout << "Yes\n"; } else { for (int i = 1; i <= x; i++) { if ((i * 2 + (x - i) * 4) == y) { cout << "Yes\n"; return 0; } ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,057
353,056
u966219945
cpp
p02640
#include <stdio.h> int main() { int x, y; scanf("%d%d", &x, &y); for (int i = 0; i < x; i++) { if (2 * i + 4 * (x - i) == y) { printf("Yes"); return 0; } } printf("No"); return 0; }
#include <stdio.h> int main() { int x, y; scanf("%d%d", &x, &y); for (int i = 0; i <= x; i++) { if (2 * i + 4 * (x - i) == y) { printf("Yes"); return 0; } } printf("No"); return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
353,058
353,059
u980564132
cpp
p02640
#include <iostream> using namespace std; int main() { int a = 1, b, c = 0, x, y; cin >> x >> y; for (int i = 1; i <= x; i++) { b = 2 * a + 4 * (x - a); if (b == y) { c++; cout << "Yes"; break; } else { a++; continue; } } if (c == 0) cout << "No"; return 0;...
#include <iostream> using namespace std; int main() { int a = 0, b, c = 0, x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { b = 2 * a + 4 * (x - a); if (b == y) { c++; cout << "Yes"; break; } else { a++; continue; } } if (c == 0) cout << "No"; return 0;...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,064
353,065
u800771206
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int hiki, asi; cin >> hiki >> asi; int sa = asi - hiki * 2; if (hiki * 2 <= asi && hiki * 4 >= asi && sa % 2 == 0) { cout << "yes" << endl; } else { cout << "no" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int hiki, asi; cin >> hiki >> asi; int sa = asi - hiki * 2; if (hiki * 2 <= asi && hiki * 4 >= asi && sa % 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,080
353,081
u968899916
cpp
p02640
/* @uthor: Varun Mishra "varun21999" -> Codechef, Codeforce, Hackerrank, Hackerearth; */ //#include<boost/multiprecision/cpp_int.hpp> // using boost::multiprecision::cpp_int; #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using...
/* @uthor: Varun Mishra "varun21999" -> Codechef, Codeforce, Hackerrank, Hackerearth; */ //#include<boost/multiprecision/cpp_int.hpp> // using boost::multiprecision::cpp_int; #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,086
353,087
u233096836
cpp
p02640
#include <algorithm> #include <iomanip> // input output manipulation #include <iostream> // input output stream, cin cout( console in console out) #include <stdio.h> // standard input output #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define ll long lo...
#include <algorithm> #include <iomanip> // input output manipulation #include <iostream> // input output stream, cin cout( console in console out) #include <stdio.h> // standard input output #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define ll long lo...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,092
353,093
u907128973
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y > x * 4 || y % 2 != 0) cout << "No\n"; else cout << "Yes\n"; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y > x * 4 || y % 2 != 0 || x > y / 2) cout << "No\n"; else cout << "Yes\n"; /* int n; cin>>n; int a[n]; for(int i=0;i<n;i++) { cin>>a[i]; }*/ }
[ "control_flow.branch.if.condition.change" ]
353,101
353,102
u987295004
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; int main() { int xx, yy; cin >> xx >> yy; int ta, tb; ta = yy - 2 * xx; tb = 4 * xx - yy; if (ta % 2 == 0 && ta >= 0 && tb >= 0 && tb % 2 == 0) cout << "Yes" << endl; else cout <<...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; int main() { int xx, yy; cin >> xx >> yy; int ta, tb; ta = yy - 2 * xx; tb = 4 * xx - yy; if (ta % 2 == 0 && ta >= 0 && tb >= 0 && tb % 2 == 0) cout << "Yes" << endl; else cout <<...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,103
353,104
u586225028
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; scanf("%d%d", &x, &y); for (int i = 1; i <= x; i++) // This is the chicken { int j = x - i; if ((i * 2 + j * 4) == y) return printf("%s", "Yes"), 0; } printf("%s", "No"); }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; scanf("%d%d", &x, &y); for (int i = 0; i <= x; i++) // This is the chicken { int j = x - i; if ((i * 2 + j * 4) == y) return printf("%s", "Yes"), 0; } printf("%s", "No"); }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,109
353,110
u115867677
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { // 2 a or 4 b legs // X animals Y legs // a+b=X // 2*a + 4*b = Y int x, y, a, b; cin >> x >> y; for (int i = 0; i <= x; i++) { a = i; b = x - i; if ((2 * a + 4 * b) == y) { cout << "yes" << endl; return 0; } } co...
#include <bits/stdc++.h> using namespace std; int main() { // 2 a or 4 b legs // X animals Y legs // a+b=X // 2*a + 4*b = Y int x, y, a, b; cin >> x >> y; for (int i = 0; i <= x; i++) { a = i; b = x - i; if ((2 * a + 4 * b) == y) { cout << "Yes" << endl; return 0; } } co...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,119
353,120
u939901541
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { // 2 a or 4 b legs // X animals Y legs // a+b=X // 2*a + 4*b = Y int x, y, a, b; cin >> x >> y; for (int i = 0; i <= x; i++) { a = 0; b = x - i; if ((2 * a + 4 * b) == y) { cout << "yes" << endl; return 0; } } co...
#include <bits/stdc++.h> using namespace std; int main() { // 2 a or 4 b legs // X animals Y legs // a+b=X // 2*a + 4*b = Y int x, y, a, b; cin >> x >> y; for (int i = 0; i <= x; i++) { a = i; b = x - i; if ((2 * a + 4 * b) == y) { cout << "Yes" << endl; return 0; } } co...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,121
353,120
u939901541
cpp
p02640
#include <bits/stdc++.h> #define endl '\n' #define _USE_MATH_DEFINES using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int i, x, y, ans = 0; cin >> x, y; if (y >= x * 2 && y <= x * 4 && (y % 2 == 0)) { cout << "Yes"; } else cout << "No"; // cout<<ans+1; return 0; }
#include <bits/stdc++.h> #define endl '\n' #define _USE_MATH_DEFINES using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int i, x, y, ans = 0; cin >> x >> y; if (y >= x * 2 && y <= x * 4 && (y % 2 == 0)) { cout << "Yes"; } else cout << "No"; // cout<<ans+1; return 0; }
[]
353,124
353,125
u770039647
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long #define null NULL #define double dll #define endl "\n" #define mp make_pair #define pb push_back #define ff first #define ss second ll mod = (ll)(1e9 + 7); ll inf = (ll)(1e17 + 17); int main() { int x, y; cin >> x >> y; if (y > 4 * x) { cou...
#include <bits/stdc++.h> using namespace std; #define ll long long #define null NULL #define double dll #define endl "\n" #define mp make_pair #define pb push_back #define ff first #define ss second ll mod = (ll)(1e9 + 7); ll inf = (ll)(1e17 + 17); int main() { int x, y; cin >> x >> y; if (y > 4 * x) { cou...
[ "misc.opposites", "control_flow.branch.if.condition.change", "expression.operator.compare.change" ]
353,128
353,129
u253547997
cpp
p02640
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <complex> #include <iostream> #define FIXED_FLOAT(x) std::fixed << std::setprecision(7) << (x) #define fast \ ios::sync_with_stdio(0); ...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <complex> #include <iostream> #define FIXED_FLOAT(x) std::fixed << std::setprecision(7) << (x) #define fast \ ios::sync_with_stdio(0); ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,132
353,133
u141092992
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c = 0; cin >> a >> b; for (int i = 1; i <= a; i++) if (i * 2 + (a - i) * 4 == b) { c = 1; break; } if (c) cout << "Yes"; else cout << "No"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c = 0; cin >> a >> b; for (int i = 0; i <= a; i++) if (i * 2 + (a - i) * 4 == b) { c = 1; break; } if (c) cout << "Yes"; else cout << "No"; return 0; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,136
353,137
u841387469
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool flag = false; for (int i = 1; i <= x; i++) { int sum = i * 2 + (x - i) * 4; if (sum == y) { flag = true; break; } } if (flag) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool flag = false; for (int i = 0; i <= x; i++) { int sum = i * 2 + (x - i) * 4; if (sum == y) { flag = true; break; } } if (flag) cout << "Yes" << endl; else cout << "No" << endl; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,144
353,145
u853798114
cpp
p02640
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 1; i <= n; i++) int main(void) { int x, y; cin >> x >> y; string ans = "No"; if (x == 1 && y == 2) ans = "Yes"; if (x == 1 && y == 4) ans = "Yes"; rep(i, x) { if ((i * 2 + (x - i) * 4) == y) { ...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < n + 1; i++) int main(void) { int x, y; cin >> x >> y; string ans = "No"; if (x == 1 && y == 2) ans = "Yes"; if (x == 1 && y == 4) ans = "Yes"; rep(i, x) { if ((i * 2 + (x - i) * 4) == y) ...
[ "preprocessor.define.value.change", "literal.integer.change", "expression.operator.compare.change" ]
353,156
353,157
u354033656
cpp
p02640
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < n; i++) int main(void) { int x, y; cin >> x >> y; string ans = "No"; if (x == 1 && y == 2) ans = "Yes"; if (x == 1 && y == 4) ans = "Yes"; rep(i, x) { if ((i * 2 + (x - i) * 4) == y) { ...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < n + 1; i++) int main(void) { int x, y; cin >> x >> y; string ans = "No"; if (x == 1 && y == 2) ans = "Yes"; if (x == 1 && y == 4) ans = "Yes"; rep(i, x) { if ((i * 2 + (x - i) * 4) == y) ...
[]
353,158
353,157
u354033656
cpp
p02640
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 and x * 4 >= y and y > x * 2) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 and x * 4 >= y and y >= x * 2) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,161
353,162
u227618147
cpp
p02640
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 and x * 4 >= y and y > x) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 and x * 4 >= y and y >= x * 2) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,163
353,162
u227618147
cpp
p02640
#include <bits/stdc++.h> using namespace std; long long a[10]; int main() { cin.tie(NULL); cout.tie(NULL); ios_base::sync_with_stdio(false); int n, m; int num = 0; int i, j; cin >> n >> m; for (i = 0; i <= n; i++) { for (j = 0; j <= n; j++) { if (i + j <= n) { if (i * 2 + j * 4 == ...
#include <bits/stdc++.h> using namespace std; long long a[10]; int main() { cin.tie(NULL); cout.tie(NULL); ios_base::sync_with_stdio(false); int n, m; int num = 0; int i, j; cin >> n >> m; for (i = 0; i <= n; i++) { for (j = 0; j <= n; j++) { if (i + j == n) { if (i * 2 + j * 4 ==...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,168
353,169
u297476130
cpp
p02640
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> using namespace std; using namespace __gnu_pbds; #define ll long long #define mk make_pair template <class key, class cmp = std::less<key>> using ordered_set = tree<key, null_type, cmp, rb_...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> using namespace std; using namespace __gnu_pbds; #define ll long long #define mk make_pair template <class key, class cmp = std::less<key>> using ordered_set = tree<key, null_type, cmp, rb_...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,176
353,177
u747655895
cpp
p02640
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> using namespace std; using namespace __gnu_pbds; #define ll long long #define mk make_pair template <class key, class cmp = std::less<key>> using ordered_set = tree<key, null_type, cmp, rb_...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> using namespace std; using namespace __gnu_pbds; #define ll long long #define mk make_pair template <class key, class cmp = std::less<key>> using ordered_set = tree<key, null_type, cmp, rb_...
[ "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,178
353,177
u747655895
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int a = x * 2; int b = 0; for (int i = 1; i <= x; i++) { if (2 * i + a == y) { b = 1; break; } } if (b == 1) { cout << "Yes" << endl; } else if (b == 0) { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int a = x * 2; int b = 0; for (int i = 0; i <= x; i++) { if (2 * i + a == y) { b = 1; break; } } if (b == 1) { cout << "Yes" << endl; } else if (b == 0) { cout << "No" << endl; } }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,181
353,182
u128895028
cpp
p02640
#include <bits/stdc++.h> #define __STDC_LIMIT_MACROS #include <stdint.h> using namespace std; #define int long long bool isPrime(int n) { if (n <= 1) return false; if (n <= 3) return true; if (n % 2 == 0 || n % 3 == 0) return false; for (int i = 5; i * i <= n; i += 6) { if (n % i == 0 || n % (i...
#include <bits/stdc++.h> #define __STDC_LIMIT_MACROS #include <stdint.h> using namespace std; #define int long long bool isPrime(int n) { if (n <= 1) return false; if (n <= 3) return true; if (n % 2 == 0 || n % 3 == 0) return false; for (int i = 5; i * i <= n; i += 6) { if (n % i == 0 || n % (i...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,187
353,188
u126526069
cpp
p02640
#include <bits/stdc++.h> #define __STDC_LIMIT_MACROS #include <stdint.h> using namespace std; #define int long long bool isPrime(int n) { if (n <= 1) return false; if (n <= 3) return true; if (n % 2 == 0 || n % 3 == 0) return false; for (int i = 5; i * i <= n; i += 6) { if (n % i == 0 || n % (i...
#include <bits/stdc++.h> #define __STDC_LIMIT_MACROS #include <stdint.h> using namespace std; #define int long long bool isPrime(int n) { if (n <= 1) return false; if (n <= 3) return true; if (n % 2 == 0 || n % 3 == 0) return false; for (int i = 5; i * i <= n; i += 6) { if (n % i == 0 || n % (i...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "literal.string.change", "literal.s...
353,189
353,188
u126526069
cpp
p02640
// At Corder.cpp : このファイルには 'main' // 関数が含まれています。プログラム実行の開始と終了がそこで行われます。 // #include <algorithm> #include <iostream> using namespace std; #include <bits/stdc++.h> #include <math.h> #include <numeric> #include <vector> #define ld long double #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using p ...
// At Corder.cpp : このファイルには 'main' // 関数が含まれています。プログラム実行の開始と終了がそこで行われます。 // #include <algorithm> #include <iostream> using namespace std; #include <bits/stdc++.h> #include <math.h> #include <numeric> #include <vector> #define ld long double #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using p ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
353,200
353,201
u632275572
cpp
p02640
#include <bits/stdc++.h> #define PI 3.14159265358979323846 #define MAXINF (1e18L) #define INF (1e9L) #define EPS (1e-9) #define MOD ((ll)(1e9 + 7)) #define REP(i, n) for (int i = 0; i < int(n); ++i) #define Rep(i, sta, n) for (int i = sta; i < n; i++) #define RREP(i, n) for (int i = int(n) - 1; i >= 0; --i) #define ALL...
#include <bits/stdc++.h> #define PI 3.14159265358979323846 #define MAXINF (1e18L) #define INF (1e9L) #define EPS (1e-9) #define MOD ((ll)(1e9 + 7)) #define REP(i, n) for (int i = 0; i < int(n); ++i) #define Rep(i, sta, n) for (int i = sta; i < n; i++) #define RREP(i, n) for (int i = int(n) - 1; i >= 0; --i) #define ALL...
[ "expression.operation.binary.add" ]
353,210
353,211
u528720841
cpp
p02640
#include <algorithm> #include <cstdio> #include <cstring> #include <fstream> #include <iostream> #include <math.h> #include <queue> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string> #include <utility> #include <vector> //#include <random> #include <map> //#include <unordered_map> #include <cstdl...
#include <algorithm> #include <cstdio> #include <cstring> #include <fstream> #include <iostream> #include <math.h> #include <queue> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string> #include <utility> #include <vector> //#include <random> #include <map> //#include <unordered_map> #include <cstdl...
[ "control_flow.branch.if.condition.change" ]
353,212
353,213
u376103660
cpp
p02640
#include <iostream> using namespace std; int main() { long long int a, b, p; cin >> a >> b; p = (4 * a - b); if (p % 2 == 0 && p >= 0 && p >= 2 * a) cout << "Yes" << endl; else cout << "No" << endl; }
#include <iostream> using namespace std; int main() { long long int a, b, p; cin >> a >> b; p = (4 * a - b); if (p % 2 == 0 && p >= 0 && p <= b) cout << "Yes" << endl; else cout << "No" << endl; }
[ "expression.operation.binary.remove" ]
353,216
353,217
u607594565
cpp
p02640
#include <iostream> using namespace std; int main() { long long int a, b, p; cin >> a >> b; p = (4 * a - b); if (p % 2 == 0 && p >= 0) cout << "Yes" << endl; else cout << "No" << endl; }
#include <iostream> using namespace std; int main() { long long int a, b, p; cin >> a >> b; p = (4 * a - b); if (p % 2 == 0 && p >= 0 && p <= b) cout << "Yes" << endl; else cout << "No" << endl; }
[ "control_flow.branch.if.condition.change" ]
353,218
353,217
u607594565
cpp
p02640
#include <cmath> #include <cstdlib> #include <iostream> #include <string> #include <vector> using namespace std; bool dfs(int X, int Y) { if (X >= 0 && Y == 0) { return true; } if (X < 0) { return false; } // C if (dfs(X - 1, Y - 2)) { return true; } // T if (dfs(X - 1, Y - 4)) { ...
#include <cmath> #include <cstdlib> #include <iostream> #include <string> #include <vector> using namespace std; bool dfs(int X, int Y) { if (X >= 0 && Y == 0) { return true; } if (X < 0) { return false; } // C if (dfs(X - 1, Y - 2)) { return true; } // T if (dfs(X - 1, Y - 4)) { ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
353,219
353,220
u270220186
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; string ans; cin >> X >> Y; ans = "NO"; for (int i = 0; i < 101; i++) { for (int z = 0; z < 101; z++) { if (i * 2 + z * 4 == Y && i + z == X) { ans = "YES"; } } } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; string ans; cin >> X >> Y; ans = "No"; for (int i = 0; i < 101; i++) { for (int z = 0; z < 101; z++) { if (i * 2 + z * 4 == Y && i + z == X) { ans = "Yes"; } } } cout << ans << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "assignment.value.change" ]
353,221
353,222
u502028059
cpp
p02640
#include <bits/stdc++.h> using namespace std; int X, Y; int main() { cin >> X >> Y; int t = Y - (4 * X); if (t % 2 == 0 && t / 2 <= X && t >= 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int X, Y; int main() { cin >> X >> Y; int t = (4 * X) - Y; if (t % 2 == 0 && t / 2 <= X && t >= 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[ "expression.operation.binary.remove" ]
353,229
353,230
u558146042
cpp
p02640
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(n) for (ll i = 0; i < n; ++i) #define rep2(i, n) for (ll i = 0; i < n; ++i) #define rep3(i, a, b) for (ll i = a; i < b; ++i) #define rep4(i, a, b, c) for (ll i = a; i < b; i += c) #define erep(n) for (ll i = 0; i <= n; ++i) #define erep2(i,...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(n) for (ll i = 0; i < n; ++i) #define rep2(i, n) for (ll i = 0; i < n; ++i) #define rep3(i, a, b) for (ll i = a; i < b; ++i) #define rep4(i, a, b, c) for (ll i = a; i < b; i += c) #define erep(n) for (ll i = 0; i <= n; ++i) #define erep2(i,...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
353,233
353,234
u666733706
cpp
p02640
#include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using namespace ...
#include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using namespace ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,235
353,236
u961198482
cpp
p02640
#include <algorithm> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { ...
#include <algorithm> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,245
353,246
u976795333
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main(void) { double X, Y; cin >> X >> Y; double a, b; b = Y / 2 - X; a = X - b; // cout << b << " "<< a << " "<< floor(b) << endl; if (a < 0 || (floor(b) != b)) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { double X, Y; cin >> X >> Y; double a, b; b = Y / 2 - X; a = X - b; // cout << b << " "<< a << " "<< floor(b) << endl; if (a < 0 || (floor(b) != b) || b < 0) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
[ "control_flow.branch.if.condition.change" ]
353,252
353,253
u122347588
cpp
p02640
#include <algorithm> #include <array> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i...
#include <algorithm> #include <array> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
353,257
353,258
u941028483
cpp
p02636
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; } template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return true; } return false; } #define all(x) (x).b...
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; } template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return true; } return false; } #define all(x) (x).beg...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
353,270
353,271
u926963884
cpp
p02636
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <vector> using namespace std; #define mp make_pair #define pb push_back #define ll long long //#define debug(x) ; #define debug(x) cerr << #x << " = " << x << "\n"; ostream &operator<<(ostream &cerr, vector<ll> a...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <vector> using namespace std; #define mp make_pair #define pb push_back #define ll long long //#define debug(x) ; #define debug(x) cerr << #x << " = " << x << "\n"; ostream &operator<<(ostream &cerr, vector<ll> a...
[ "identifier.change", "expression.operation.binary.change" ]
353,275
353,276
u218169014
cpp
p02637
#include <algorithm> #include <cmath> #include <complex> #include <cstdio> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define MOD 1000000007 #define MOD2 998244353 #define PRIM 3 #define INF (1 << 29) #d...
#include <algorithm> #include <cmath> #include <complex> #include <cstdio> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define MOD 1000000007 #define MOD2 998244353 #define PRIM 3 #define INF (1 << 29) #d...
[ "identifier.change", "call.function.change" ]
353,287
353,288
u299869545
cpp
p02638
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 210; int N, K; ll P; ll dp[MAXN][MAXN]; ll choose[MAXN][MAXN]; ll res[MAXN]; ll rr[MAXN][MAXN]; ll gogo(int A, int B) { if (B < A / 2) return 0; if (A == 1) return 1; if (B > A - 2) B = A - 2; int blo = (A - ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 210; int N, K; ll P; ll dp[MAXN][MAXN]; ll choose[MAXN][MAXN]; ll res[MAXN]; ll rr[MAXN][MAXN]; ll gogo(int A, int B) { if (B < A / 2) return 0; if (A == 1) return 1; if (B > A - 2) B = A - 2; int blo = (A - ...
[ "identifier.change", "control_flow.loop.for.condition.change", "call.arguments.change", "expression.operation.binary.change" ]
353,293
353,294
u409373192
cpp