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
p02639
#include <bits/stdc++.h> using namespace std; int main() { int ar[5]; for (int i = 1; i < 5; i++) { cin >> ar[i]; } for (int i = 1; i < 5; i++) { if (ar[i] == 0) { cout << i << endl; } } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int ar[5]; for (int i = 0; i < 5; i++) { cin >> ar[i]; } for (int i = 0; i < 5; i++) { if (ar[i] == 0) { cout << i + 1 << endl; } } return 0; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,306
353,305
u551941929
cpp
p02639
#include <bits/stdc++.h> using namespace std; #define NIL -1 #define ll long long #define MAX 100 int main() { int arr[5]; int pos = 0; for (int i = 0; i < 4; i++) { cin >> arr[i]; if (arr[i] == 0) pos = i + 1; } cout << pos << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define NIL -1 #define ll long long #define MAX 100 int main() { int arr[5]; int pos = -1; for (int i = 0; i < 5; i++) { cin >> arr[i]; if (arr[i] == 0) pos = i + 1; } cout << pos << endl; return 0; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
353,309
353,310
u497160855
cpp
p02639
#include <iostream> using namespace std; int main(void) { int n[5]; int ans; for (int i = 0; i < 5; i++) { cin >> n[i]; if (n[i] == 0) { ans = i; break; } } cout << ans; return 0; }
#include <iostream> using namespace std; int main(void) { int n[5]; int ans = 0; for (int i = 1; i <= 5; i++) { cin >> n[i]; if (n[i] == 0) { ans = i; break; } } cout << ans; return 0; }
[ "variable_declaration.value.change", "literal.number.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" ]
353,311
353,312
u542317152
cpp
p02639
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 0; i < 5; i++) { cin >> x; if (x == 0) { cout << i << endl; return 0; } } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 0; i < 5; i++) { cin >> x; if (x == 0) { cout << i + 1 << endl; return 0; } } return 0; }
[ "expression.operation.binary.add" ]
353,318
353,319
u522200796
cpp
p02639
#include <bits/stdc++.h> using namespace std; int main() { vector<int> x(5); for (int i = 0; i < 5; i++) { cin >> x.at(i); } for (int i = 0; i < 5; i++) { if (x.at(i) == 0) cout << i + 1 << endl; exit(0); } }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> x(5); for (int i = 0; i < 5; i++) { cin >> x.at(i); } for (int i = 0; i < 5; i++) { if (x.at(i) == 0) { cout << i + 1 << endl; exit(0); } } }
[]
353,322
353,323
u515074753
cpp
p02639
#include <bits/stdc++.h> using namespace std; int main() { vector<int> x(5); for (int i = 0; i < 5; i++) { cin >> x.at(i); } for (int i = 0; i < 5; i++) { if (x.at(i) == 0) ; cout << i + 1 << endl; exit(0); } }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> x(5); for (int i = 0; i < 5; i++) { cin >> x.at(i); } for (int i = 0; i < 5; i++) { if (x.at(i) == 0) { cout << i + 1 << endl; exit(0); } } }
[]
353,324
353,323
u515074753
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int a = 4 * x - y; if (a % 2 == 0 && a >= 0 && x - a >= 0) { cout << "Yes"; } else { cout << "No"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int a = 4 * x - y; if (a % 2 == 0 && a >= 0 && x - a / 2 >= 0) { cout << "Yes"; } else { cout << "No"; } return 0; }
[ "control_flow.branch.if.condition.change" ]
353,330
353,331
u450093740
cpp
p02640
#include <bits/stdc++.h> #include <sstream> using namespace std; typedef long long ll; // loop #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++) #define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--) // STL #def...
#include <bits/stdc++.h> #include <sstream> using namespace std; typedef long long ll; // loop #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++) #define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--) // STL #def...
[ "literal.number.change", "call.arguments.change" ]
353,334
353,335
u820888375
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; string str = "No"; for (int i = 0; i < x + 1; i++) { int total = 2 * x + 2 * i; if (total == y) { string str = "Yes"; } } cout << str << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; string str = "No"; for (int i = 0; i < x + 1; i++) { int total = 2 * x + 2 * i; if (total == y) { str = "Yes"; } } cout << str << endl; }
[]
353,336
353,337
u667099095
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (2 * X <= Y && Y <= 4 * Y && Y % 2 == 0) { cout << "Yes" << endl; } else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (2 * X <= Y && Y <= 4 * X && Y % 2 == 0) { cout << "Yes" << endl; } else cout << "No" << endl; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
353,339
353,340
u392973556
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define froop1(a, n) for (int i = a; i < n; i++) #define froop2(a, n) for (int i = a; i > n; i--) int main() { int a, b; cin >> a >> b; for (int i = 0; i <= a; i++) { for (int j = 0; j <= a - i; j++) { if (i * 2 + j * 4 == b && i + j == b) { cout <<...
#include <bits/stdc++.h> using namespace std; #define froop1(a, n) for (int i = a; i < n; i++) #define froop2(a, n) for (int i = a; i > n; i--) int main() { int a, b; cin >> a >> b; for (int i = 0; i <= a; i++) { for (int j = 0; j <= a - i; j++) { if (i * 2 + j * 4 == b && i + j == a) { cout <<...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
353,343
353,344
u475471747
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x && i * 4 <= y; i++) { if (i * 4 + (x - i) * 2 == y) { cout << "Yes" << endl; return 0; } else cout << "No" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x && i * 4 <= y; i++) { if (i * 4 + (x - i) * 2 == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
[]
353,352
353,353
u811402429
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool a = false; for (int i = 0; i < x + 1; i++) { if (4 * x - y - 2 * i == 0) { a = true; break; } } if (a) cout << "YES" << endl; else cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool a = false; for (int i = 0; i < x + 1; i++) { if (4 * x - y - 2 * i == 0) { a = true; break; } } if (a) cout << "Yes" << endl; else cout << "No" << endl; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,358
353,359
u595949581
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { long long X, Y; cin >> X >> Y; int doubleT = Y - 2 * X; if (doubleT < 0) { cout << "No"; return 0; } int doubleC = 4 * X - Y; if (doubleC < 0) { cout << "No"; return 0; } if (doubleC + doubleT != 2 * X) { cout << "No"; ...
#include <bits/stdc++.h> using namespace std; int main() { long long X, Y; cin >> X >> Y; int doubleT = Y - 2 * X; if (doubleT < 0) { cout << "No"; return 0; } int doubleC = 4 * X - Y; if (doubleC < 0) { cout << "No"; return 0; } if (Y % 2 != 0) { cout << "No"; return 0; } ...
[ "expression.operation.binary.remove" ]
353,360
353,361
u261332793
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { int x, y; cin >> x >> y; bool flg = false; rep(i, x + 1) { rep(j, x + 1) { if (i * 4 + j * 2 == y && i + j <= x) flg = true; } } if (flg == false) ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { int x, y; cin >> x >> y; bool flg = false; rep(i, x + 1) { rep(j, x + 1) { if (i * 4 + j * 2 == y && i + j == x) flg = true; } } if (flg == false) ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,364
353,365
u409417260
cpp
p02640
// I'm a f*cking looser #include <bits/stdc++.h> using namespace std; #define ll long long #define fasino \ ios_base::sync_with_stdio(false); \ cin.tie(0); ...
// I'm a f*cking looser #include <bits/stdc++.h> using namespace std; #define ll long long #define fasino \ ios_base::sync_with_stdio(false); \ cin.tie(0); ...
[ "control_flow.branch.if.condition.change" ]
353,366
353,367
u600227865
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long #define vi vector<int> #define REP(i, n) for (int i = 0; i < n; i++) #define check cout << "OK" << endl int main() { int x, y; cin >> x >> y; if (x * 4 >= y && x * 2 <= y && x % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl;...
#include <bits/stdc++.h> using namespace std; #define ll long long #define vi vector<int> #define REP(i, n) for (int i = 0; i < n; i++) #define check cout << "OK" << endl int main() { int x, y; cin >> x >> y; if (x * 4 >= y && x * 2 <= y && y % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl;...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
353,373
353,374
u792598082
cpp
p02640
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if (b % 2 != 0) { cout << "No"; } else if (a * 4 < b) { cout << "No"; } else if (a * 2 <= b && b <= a * 4) { cout << "Yes"; } return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if (b % 2 != 0) { cout << "No"; } else if (a * 4 < b || a * 2 > b) { cout << "No"; } else if (a * 2 <= b && b <= a * 4) { cout << "Yes"; } return 0; }
[ "control_flow.branch.if.condition.change" ]
353,375
353,376
u602639661
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> b >> a; if (2 * a <= b && b <= 4 * a && 2 * b % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (2 * a <= b && b <= 4 * a && b % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
[ "expression.operation.binary.remove" ]
353,379
353,380
u100792685
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (2 * a <= b && b <= 4 * a && 2 * b % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (2 * a <= b && b <= 4 * a && b % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
[ "expression.operation.binary.remove" ]
353,381
353,380
u100792685
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int flag = 0; if (4 * x < y || 2 * x > y || y % 2 == 1) { flag = 1; } if (!flag) { for (int i = 0, j = x; i <= x && j >= 0; i++, j--) { if (4 * j + 2 * i == y) { flag = 1; break; } } ...
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int flag = 0; if (4 * x < y || 2 * x > y || y % 2 == 1) { flag = 1; } if (!flag) { for (int i = 0, j = x; i <= x && j >= 0; i++, j--) { if (4 * j + 2 * i == y) { flag = 0; break; } } ...
[ "literal.number.change", "assignment.value.change", "literal.string.change", "io.output.change" ]
353,399
353,400
u406965923
cpp
p02640
#include <bits/stdc++.h> #define MOD 1000000007 #define PI 3.141592653589793 typedef unsigned long long ull; typedef long long ll; using namespace std; set<pair<int, int>> dp; string ans = "No"; void func(int x, int y) { if (y < 0 || x < 0) return; if (!y && !x) { ans = "Yes"; return; } if (dp.fi...
#include <bits/stdc++.h> #define MOD 1000000007 #define PI 3.141592653589793 typedef unsigned long long ull; typedef long long ll; using namespace std; set<pair<int, int>> dp; string ans = "No"; void func(int x, int y) { if (y < 0 || x < 0) return; if (!y && !x) { ans = "Yes"; return; } if (dp.fi...
[ "control_flow.branch.if.condition.change" ]
353,401
353,402
u494103482
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (ll i = (a); i < (b); i++) #define REP(i, n) rep(i, 0, n) void solve() { int x, y; cin >> x >> y; if (y % 2) { cout << "No" << endl; return; } cout << (x >= (1 + y / 4) && x <= y / 2 ? "Yes" : "No") << endl; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (ll i = (a); i < (b); i++) #define REP(i, n) rep(i, 0, n) void solve() { int x, y; cin >> x >> y; if (y % 2) { cout << "No" << endl; return; } cout << (x >= ((y + 2) / 4) && x <= y / 2 ? "Yes" : "No") << endl...
[ "control_flow.loop.for.condition.change", "io.output.change" ]
353,415
353,416
u973991908
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (ll i = (a); i < (b); i++) #define REP(i, n) rep(i, 0, n) void solve() { int x, y; cin >> x >> y; if (y % 2) { cout << "No" << endl; return; } cout << (x >= y / 4 && x <= y / 2 ? "Yes" : "No") << endl; } int...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (ll i = (a); i < (b); i++) #define REP(i, n) rep(i, 0, n) void solve() { int x, y; cin >> x >> y; if (y % 2) { cout << "No" << endl; return; } cout << (x >= ((y + 2) / 4) && x <= y / 2 ? "Yes" : "No") << endl...
[]
353,417
353,416
u973991908
cpp
p02640
#include <iostream> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; int t = y - 2 * x; int c = 4 * x - y; if (t > 0 && c > 0 && (t % 2 == 0) && (c % 2 == 0)) cout << "Yes"; else cout << "No"; return 0; }
#include <iostream> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; int t = y - 2 * x; int c = 4 * x - y; if (t >= 0 && c >= 0 && (t % 2 == 0) && (c % 2 == 0)) cout << "Yes"; else cout << "No"; return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,422
353,423
u756239487
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; #define pb push_back #define ld long double #define f first #define s second #define in insert #define sz(x) (int)x.size() #define all(x) (x).begin(), (x).end() #define speed ...
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; #define pb push_back #define ld long double #define f first #define s second #define in insert #define sz(x) (int)x.size() #define all(x) (x).begin(), (x).end() #define speed ...
[ "control_flow.branch.if.condition.change" ]
353,424
353,425
u104074027
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i < x; i++) { if ((i * 2) + (x - i) * 4 == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i < (x + 1); i++) { if ((i * 2) + (x - i) * 4 == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
[ "control_flow.loop.for.condition.change" ]
353,426
353,427
u100204439
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i < x; i++) { if ((i * 2 + (x - i) * 4) == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i < (x + 1); i++) { if ((i * 2) + (x - i) * 4 == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
[ "control_flow.loop.for.condition.change", "control_flow.branch.if.condition.change" ]
353,428
353,427
u100204439
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if ((4 * x - y) % 2 == 0 && y < 4 * x && 4 * x < 2 * y) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if ((4 * x - y) % 2 == 0 && y <= 4 * x && 4 * x <= 2 * y) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,429
353,430
u734310505
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if ((4 * x - y) % 2 == 0 && y < 4 * x && 4 * x < 2 + y) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if ((4 * x - y) % 2 == 0 && y <= 4 * x && 4 * x <= 2 * y) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operator.arithmetic.change" ]
353,431
353,430
u734310505
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int N, M, k, a1, a2, b1, b2, c1, c2, d1, d2, e1, e2; cin >> N; cin >> M; if (M % 2 == 1) { cout << "No" << endl; } else { if (M - 2 * N < 0) { cout << "No" << endl; } else { if (M - 4 * M > 0) { cout << "No" << endl; ...
#include <bits/stdc++.h> using namespace std; int main() { int N, M, k, a1, a2, b1, b2, c1, c2, d1, d2, e1, e2; cin >> N; cin >> M; if (M % 2 == 1) { cout << "No" << endl; } else { if (M - 2 * N < 0) { cout << "No" << endl; } else { if (M - 4 * N > 0) { cout << "No" << endl; ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
353,434
353,435
u924860504
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int N, M, k, a1, a2, b1, b2, c1, c2, d1, d2, e1, e2; cin >> N; cin >> M; if (M % 2 == 1) { cout << "No" << endl; } else { if (M - 2 * N > 0) { cout << "No" << endl; } else { if (M - 4 * M > 0) { cout << "No" << endl; ...
#include <bits/stdc++.h> using namespace std; int main() { int N, M, k, a1, a2, b1, b2, c1, c2, d1, d2, e1, e2; cin >> N; cin >> M; if (M % 2 == 1) { cout << "No" << endl; } else { if (M - 2 * N < 0) { cout << "No" << endl; } else { if (M - 4 * N > 0) { cout << "No" << endl; ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "identifier.change" ]
353,436
353,435
u924860504
cpp
p02640
#include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main() { int X = 0; int Y = 0; cin >> X >> Y; for (int i = 0; i < X; i++) { for (int j = 0; j < X; j++) { if ((2 * i + 4 * j) == Y) { if ((i + j) == X) { cout << "Yes" << endl; ...
#include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main() { int X = 0; int Y = 0; cin >> X >> Y; for (int i = 0; i <= X; i++) { for (int j = 0; j <= X; j++) { if ((2 * i + 4 * j) == Y) { if ((i + j) == X) { cout << "Yes" << endl; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
353,441
353,442
u903588740
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 1; i <= X; i++) { if (2 * i + 4 * (X - i) == Y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 0; i <= X; i++) { if (2 * i + 4 * (X - i) == Y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,446
353,447
u738646116
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y, a; cin >> X >> Y; a = Y - 2 * X; if (a % 2 == 0) { if (X >= a / 2) cout << "Yes" << endl; else cout << "No" << endl; } else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y, a; cin >> X >> Y; a = Y - 2 * X; if (a % 2 == 0) { if (X >= a / 2 && a >= 0) cout << "Yes" << endl; else cout << "No" << endl; } else cout << "No" << endl; }
[ "control_flow.branch.if.condition.change" ]
353,455
353,456
u638440267
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (4 * X - Y < 0) { cout << "No" << endl; } else if (4 * X - Y >= 0 && (4 * X - Y) % 2 == 0 && (4 * X - Y) % 2 <= X) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (4 * X - Y < 0) { cout << "No" << endl; } else if (4 * X - Y >= 0 && (4 * X - Y) % 2 == 0 && (4 * X - Y) / 2 <= X) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
353,457
353,458
u997102595
cpp
p02640
#include <bits/stdc++.h> #pragma GCC optimize("Ofast,no-stack-protector,unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #define ll long long #define pb push_back #define eb emplace_back #define mp make_pair #define pii pair<ll, ll> #define vi vector<ll> #define vii vector<pi...
#include <bits/stdc++.h> #pragma GCC optimize("Ofast,no-stack-protector,unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #define ll long long #define pb push_back #define eb emplace_back #define mp make_pair #define pii pair<ll, ll> #define vi vector<ll> #define vii vector<pi...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,459
353,460
u513424663
cpp
p02640
#include <algorithm> #include <iostream> #include <map> #include <numeric> #include <set> #include <vector> using namespace std; int main(int argc, char const *argv[]) { int a, b; cin >> a >> b; bool flag = 0; int x = 2 * a; int y = 4 * a; if (b >= x && b <= y && (b % 2 == 0)) { cout << "Yes" << endl...
#include <algorithm> #include <iostream> #include <map> #include <numeric> #include <set> #include <vector> using namespace std; int main(int argc, char const *argv[]) { int a, b; cin >> a >> b; bool flag = 0; int x = 2 * a; int y = 4 * a; if (b >= x && b <= y && (b % 2 == 0)) { cout << "Yes" << endl...
[ "literal.string.change", "io.output.change" ]
353,463
353,464
u647953759
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define ok() puts(ok ? "Yes" : "No"); using namespace std; using ll = long long; using vi = vector<int>; using ii = pair<int, int>; using vvi = vector<vi>; using vii = vector<ii>; using gt = greater<int>; using minq = priority_queue<int, vector<in...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define ok() puts(ok ? "Yes" : "No"); using namespace std; using ll = long long; using vi = vector<int>; using ii = pair<int, int>; using vvi = vector<vi>; using vii = vector<ii>; using gt = greater<int>; using minq = priority_queue<int, vector<in...
[ "control_flow.branch.if.condition.change" ]
353,465
353,466
u213868052
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { double x, y; double a, b; cin >> x >> y; // 2a+2b=2x // 2a+4b=y b = (y - 2 * x) / 2; a = (4 * x - y) / 2; if (a - int(a) > 0 || a < 0 || b - int(b) > 0 || b < 0) { cout << "No\n"; } else { cout << "yes\n"; } }
#include <bits/stdc++.h> using namespace std; int main() { double x, y; double a, b; cin >> x >> y; // 2a+2b=2x // 2a+4b=y b = (y - 2 * x) / 2; a = (4 * x - y) / 2; if (a - int(a) > 0 || a < 0 || b - int(b) > 0 || b < 0) { cout << "No\n"; } else { cout << "Yes\n"; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,471
353,472
u126771764
cpp
p02640
#include <iostream> #include <string> using namespace std; int main() { int X, Y; cin >> X >> Y; string A = "Yes"; if (Y % 2 != 0) { A = "No"; } if (Y > X * 4) { A = "No"; } if (X >= 51) { A = "No"; } if (X * 2 >= Y) { A = "No"; } cout << A << endl; }
#include <iostream> #include <string> using namespace std; int main() { int X, Y; cin >> X >> Y; string A = "Yes"; if (Y % 2 != 0) { A = "No"; } if (Y > X * 4) { A = "No"; } if (X >= 51) { A = "No"; } if (X * 2 > Y) { A = "No"; } cout << A << endl; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,473
353,474
u858244177
cpp
p02640
#include <iostream> #include <string> using namespace std; int main() { int X, Y; cin >> X >> Y; string A = "Yes"; if (Y % 2 != 0) { A = "No"; } if (Y > X * 4) { A = "No"; } if (X >= 51) { A = "No"; } if (X >= Y) { A = "No"; } cout << A << endl; }
#include <iostream> #include <string> using namespace std; int main() { int X, Y; cin >> X >> Y; string A = "Yes"; if (Y % 2 != 0) { A = "No"; } if (Y > X * 4) { A = "No"; } if (X >= 51) { A = "No"; } if (X * 2 > Y) { A = "No"; } cout << A << endl; }
[ "control_flow.branch.if.condition.change" ]
353,475
353,474
u858244177
cpp
p02640
#include <iostream> #include <string> using namespace std; int main() { int X, Y; cin >> X >> Y; string A = "Yes"; if (Y % 2 != 0) { A = "No"; } if (Y > X * 4) { A = "No"; } if (X >= 51) { A = "No"; } if (X <= Y) { A = "No"; } cout << A << endl; }
#include <iostream> #include <string> using namespace std; int main() { int X, Y; cin >> X >> Y; string A = "Yes"; if (Y % 2 != 0) { A = "No"; } if (Y > X * 4) { A = "No"; } if (X >= 51) { A = "No"; } if (X * 2 > Y) { A = "No"; } cout << A << endl; }
[ "control_flow.branch.if.condition.change" ]
353,476
353,474
u858244177
cpp
p02640
#include <bits/stdc++.h> #include <math.h> using namespace std; const double pi = acos(-1.0); int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main(void) { int x, y, z; cin >> x >> y; for (int i = 0; i <= x; ++i) { ...
#include <bits/stdc++.h> #include <math.h> using namespace std; const double pi = acos(-1.0); int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main(void) { int x, y, z; cin >> x >> y; for (int i = 0; i <= x; ++i) { ...
[ "assignment.change" ]
353,477
353,478
u831628341
cpp
p02640
#include <bits/stdc++.h> #include <math.h> using namespace std; const double pi = acos(-1.0); int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main(void) { int x, y, z; cin >> x >> y; for (int i = 0; i <= x; ++i) { ...
#include <bits/stdc++.h> #include <math.h> using namespace std; const double pi = acos(-1.0); int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main(void) { int x, y, z; cin >> x >> y; for (int i = 0; i <= x; ++i) { ...
[ "assignment.change", "expression.operation.binary.remove" ]
353,479
353,478
u831628341
cpp
p02640
#include <bits/stdc++.h> #include <math.h> using namespace std; const double pi = acos(-1.0); int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main(void) { int x, y, z; cin >> x >> y; for (int i = 1; i <= x; ++i) { ...
#include <bits/stdc++.h> #include <math.h> using namespace std; const double pi = acos(-1.0); int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main(void) { int x, y, z; cin >> x >> y; for (int i = 0; i <= x; ++i) { ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "assignment.change" ]
353,480
353,478
u831628341
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define int long long int int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout << setprecision(9) << fixed; int x, y; cin >> x >> y; if (y % 2 == 0) { int a2 = y / 2 - x; int a1 = x - a2; if (a1 >= 0 && a2 >= 0) cout << "YE...
#include <bits/stdc++.h> using namespace std; #define int long long int int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout << setprecision(9) << fixed; int x, y; cin >> x >> y; if (y % 2 == 0) { int a2 = y / 2 - x; int a1 = x - a2; if (a1 >= 0 && a2 >= 0) cout << "Ye...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,484
353,485
u381877079
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 <iostream> #include <stdio.h> using namespace std; ...
// 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 <iostream> #include <stdio.h> using namespace std; ...
[ "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
353,490
353,491
u197541395
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 1; i < y / 2; i++) { if (i * 2 + (x - i) * 4 == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= y / 2; i++) { if (i * 2 + (x - i) * 4 == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
[ "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" ]
353,492
353,493
u288181134
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 1; i <= y / 2; i++) { if (i * 2 + (x - i) * 4 == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= y / 2; i++) { if (i * 2 + (x - i) * 4 == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,494
353,493
u288181134
cpp
p02640
#include <algorithm> #include <iostream> #include <vector> using std::make_pair; using std::pair; using std::max; using std::min; using std::sort; using std::cin; using std::cout; using std::vector; int main() { int x, y; cin >> x >> y; bool f = false; for (int turtle = 0; turtle <= x; turtle++) { if ...
#include <algorithm> #include <iostream> #include <vector> using std::make_pair; using std::pair; using std::max; using std::min; using std::sort; using std::cin; using std::cout; using std::vector; int main() { int x, y; cin >> x >> y; bool f = false; for (int turtle = 0; turtle <= x; turtle++) { if ...
[]
353,495
353,496
u356069145
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { int X, Y; cin >> X >> Y; int temp; for (int i = 0; i < 101; i++) { temp = 2 * i + 4 * (X - i); if (temp == Y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { int X, Y; cin >> X >> Y; int temp; for (int i = 0; i <= X; i++) { temp = 2 * i + 4 * (X - i); if (temp == Y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[ "control_flow.loop.for.condition.change" ]
353,497
353,498
u463510901
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { int X, Y; cin >> X >> Y; int temp; for (int i = 0; i < 100; i++) { temp = 2 * i + 4 * (X - i); if (temp == Y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { int X, Y; cin >> X >> Y; int temp; for (int i = 0; i <= X; i++) { temp = 2 * i + 4 * (X - i); if (temp == Y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[ "control_flow.loop.for.condition.change" ]
353,499
353,498
u463510901
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; long long ans = 0; if ((4 * x - y) % 2 == 0 && (4 * x - y >= 0) && (y - 2 * x) >= 0) { ans = 1; } if (ans == 1) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; long long ans = 0; if ((4 * x - y) % 2 == 0 && (4 * x - y >= 0) && (y - 2 * x) >= 0) { ans = 1; } if (ans == 1) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,500
353,501
u063871883
cpp
p02640
#include <iostream> using namespace std; int main() { int a, b, x, y; cin >> x >> y; if (y % 2 != 0) cout << "No"; else { b = ((y - 2 * x) / 2); a = x - b; if (a < 0) cout << "No"; else { if (2 * a + 4 * b == y) cout << "Yes"; else cout << "No"; } } }
#include <iostream> using namespace std; int main() { int a, b, x, y; cin >> x >> y; if (y % 2 != 0) cout << "No"; else { b = ((y - 2 * x) / 2); a = x - b; if (a < 0 || b < 0) cout << "No"; else { if (2 * a + 4 * b == y) cout << "Yes"; else cout << "No"; ...
[ "control_flow.branch.if.condition.change" ]
353,519
353,520
u165068796
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; string ans = "NO"; int kame; if (Y % 2 == 0) { kame = Y / 2 - X; if (0 <= kame && kame <= 100) { if (0 <= X - kame && X - kame <= 100) { ans = "YES"; } } } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; string ans = "No"; int kame; if (Y % 2 == 0) { kame = Y / 2 - X; if (0 <= kame && kame <= 100) { if (0 <= X - kame && X - kame <= 100) { ans = "Yes"; } } } cout << ans << endl; }
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change", "assignment.value.change" ]
353,525
353,526
u893337809
cpp
p02640
#include <bits/stdc++.h> #define fastIO \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); using namespace std; int main() { ...
#include <bits/stdc++.h> #define fastIO \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); using namespace std; int main() { ...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
353,532
353,533
u199585756
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; int sum = 4 * x; if (sum == y) { cout << "Yes"; return 0; } if (y > sum) { cout << "No"; return 0; } for (int i = 1; i <= x; i++) { sum -= 2; if (sum == y) { cout << "Yes"; break; } ...
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; int sum = 4 * x; if (sum == y) { cout << "Yes"; return 0; } if (y > sum or x * 2 > y) { cout << "No"; return 0; } for (int i = 1; i <= x; i++) { sum -= 2; if (sum == y) { cout << "Yes"; ...
[ "control_flow.branch.if.condition.change" ]
353,543
353,544
u599586769
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x, cin >> y; for (int i = 1; i < x + 1; i++) { if ((2 * i) + (4 * (x - i)) == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x, cin >> y; for (int i = 0; i < x + 1; i++) { if ((2 * i) + (4 * (x - i)) == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,549
353,550
u631226890
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll a, b; cin >> a >> b; if (b & 1) cout << "No" << "\n"; else if (b > a * 4 || b < a * 2) cout << "No" << "\n"; if (a * 4 == b || a * 2 == b) cout << "Yes" << "\n"; else { int flag = 0...
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll a, b; cin >> a >> b; if (b & 1) cout << "No" << "\n"; else if (b > a * 4 || b < a * 2) cout << "No" << "\n"; else if (a * 4 == b || a * 2 == b) cout << "Yes" << "\n"; else { int fla...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
353,551
353,552
u036472658
cpp
p02640
#include <bits/stdc++.h> using namespace std; using ll = long long int; using str = string; using P = pair<int, int>; using Pll = pair<ll, ll>; const double PI = 3.141592653589793238; const ll mod = 1000000007; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define REP(i, m, n) for (int i = m; i < (int)n; i++) #def...
#include <bits/stdc++.h> using namespace std; using ll = long long int; using str = string; using P = pair<int, int>; using Pll = pair<ll, ll>; const double PI = 3.141592653589793238; const ll mod = 1000000007; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define REP(i, m, n) for (int i = m; i < (int)n; i++) #def...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.initializer.change", "control_flow.loop.for.condition.change" ]
353,565
353,564
u007099475
cpp
p02640
// Author := Abhishek Giri #include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define mp make_pair #define mod 1000000007 #define V(type) vecapital_in_tor<(type)> #define all(c) ((c).begin(), (c).end()) #define in(var) cin >> (var) #define out(var) cout << (var) #define on(var) cou...
// Author := Abhishek Giri #include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define mp make_pair #define mod 1000000007 #define V(type) vecapital_in_tor<(type)> #define all(c) ((c).begin(), (c).end()) #define in(var) cin >> (var) #define out(var) cout << (var) #define on(var) cou...
[ "control_flow.branch.if.condition.change" ]
353,568
353,569
u273848160
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y < X * 4 && Y > X * 2 && X % 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y <= X * 4 && Y >= X * 2 && Y % 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "identifier.change" ]
353,572
353,573
u740002394
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y < X * 4 && Y > X * 2 && Y % 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y <= X * 4 && Y >= X * 2 && Y % 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,574
353,573
u740002394
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; int ans1 = n * 2, ans2 = n * 4; if (m >= ans1 && m <= ans2 && m % 2 == 0) cout << "YES"; else cout << "NO"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; int ans1 = n * 2, ans2 = n * 4; if (m >= ans1 && m <= ans2 && m % 2 == 0) cout << "Yes"; else cout << "No"; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,577
353,578
u648636329
cpp
p02640
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <stdio.h> #include <string.h> #include <vector> using namespace std; int main() { int X, Y; cin >> X >> Y; bool kumiawase = true; for (int i = 0; i < X; i++) { if (Y == 2 * (X - i) + 4 * i) { cout << "Yes" << e...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <stdio.h> #include <string.h> #include <vector> using namespace std; int main() { int X, Y; cin >> X >> Y; bool kumiawase = true; for (int i = 0; i <= X; i++) { if (Y == 2 * (X - i) + 4 * i) { cout << "Yes" << ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
353,579
353,580
u711804184
cpp
p02640
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <set> #include <stdio.h> #include <string> #include <utility> #include <vector> typedef long long ll; using namespace std; int main() { int x, y; cin >> x >> y; int ch = y - 2 * x; if (ch < 0) { cout << "No" << endl; } el...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <set> #include <stdio.h> #include <string> #include <utility> #include <vector> typedef long long ll; using namespace std; int main() { int x, y; cin >> x >> y; int ch = y - 2 * x; if (ch < 0) { cout << "No" << endl; } el...
[ "control_flow.branch.if.condition.change" ]
353,590
353,591
u537371817
cpp
p02640
/*input 1 2 */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define rep(i, j, n) for (i = j; i < n; i++) #define repi(i, j, n) for (i = j; i > n; i--) #define inf 100001 #define M 1000000007 #define pie 3.141592653589793238 #define ll long long #define ld long...
/*input 1 2 */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define rep(i, j, n) for (i = j; i < n; i++) #define repi(i, j, n) for (i = j; i > n; i--) #define inf 100001 #define M 1000000007 #define pie 3.141592653589793238 #define ll long long #define ld long...
[ "control_flow.branch.if.condition.change" ]
353,592
353,593
u633697116
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int x, y; cin >> x >> y; for (int i = 0; i < y / 4 + 1; i++) { if (i * 4 + (x - i) * 2 == y) { cout << "YES"; return 0; } } cout << "NO"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int x, y; cin >> x >> y; for (int i = 0; i < y / 4 + 1; i++) { if (i * 4 + (x - i) * 2 == y) { cout << "Yes"; return 0; } } cout << "No"; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,594
353,595
u906199847
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define CPP_CAT(x, y) CPP_CAT_I(x, y) #define CPP_CAT_I(x, y) x##y using i8 = int8_t; using u8 = uint8_t; using i16 = int16_t; using u16 = uint16_t; using i32 = int32_t; using u32 = uint32_t; using i64 = int64_t; using u64 = uint64_t; using f32 = float; using f64 = double;...
#include <bits/stdc++.h> using namespace std; #define CPP_CAT(x, y) CPP_CAT_I(x, y) #define CPP_CAT_I(x, y) x##y using i8 = int8_t; using u8 = uint8_t; using i16 = int16_t; using u16 = uint16_t; using i32 = int32_t; using u32 = uint32_t; using i64 = int64_t; using u64 = uint64_t; using f32 = float; using f64 = double;...
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change" ]
353,600
353,601
u853146173
cpp
p02640
#include <iostream> int main() { int X = 0, Y = 0; std::cin >> X >> Y; if (Y <= X * 4 && Y >= X * 2 && Y % 2 == 0) std::cout << "YES"; else std::cout << "NO"; return 0; }
#include <iostream> int main() { int X = 0, Y = 0; std::cin >> X >> Y; if (Y <= X * 4 && Y >= X * 2 && Y % 2 == 0) std::cout << "Yes"; else std::cout << "No"; return 0; }
[ "literal.string.change", "literal.string.case.change", "expression.operation.binary.change" ]
353,602
353,603
u572483500
cpp
p02640
#include <algorithm> #include <cmath> #include <iostream> using namespace std; int main() { int x, y, flag = 0, cnt = 0; cin >> x >> y; for (int i = 1; i <= x; i++) { cnt = i * 2 + (x - i) * 4; if (cnt == y) { flag = 1; } cnt = 0; } if (flag == 1) { cout << "Yes" << endl; } else { ...
#include <algorithm> #include <cmath> #include <iostream> using namespace std; int main() { int x, y, flag = 0, cnt = 0; cin >> x >> y; for (int i = 0; i <= x; i++) { cnt = i * 2 + (x - i) * 4; if (cnt == y) { flag = 1; } cnt = 0; } if (flag == 1) { cout << "Yes" << endl; } else { ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,604
353,605
u067101640
cpp
p02640
#include "bits/stdc++.h" #define rep(i, j) for (int i = 0; i < j; i++) using namespace std; using ll = long long; using ull = unsigned long long; int gcd(int x, int y); const int INF = 1001001001; /*struct mint { ll x; // typedef long long ll; mint(ll x = 0) :x((x% mod + mod) % mod) {} mint operator-() c...
#include "bits/stdc++.h" #define rep(i, j) for (int i = 0; i < j; i++) using namespace std; using ll = long long; using ull = unsigned long long; int gcd(int x, int y); const int INF = 1001001001; /*struct mint { ll x; // typedef long long ll; mint(ll x = 0) :x((x% mod + mod) % mod) {} mint operator-() c...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,609
353,610
u616794313
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool ans = false; for (int i = 0; i < x; i++) { if (2 * (i + 1) + 4 * (x - i + 1) == y) { ans = true; break; } else { continue; } } if (ans) { cout << "Yes" << endl; } else { cout <...
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool ans = false; for (int i = 0; i <= x; i++) { if (2 * (i) + 4 * (x - i) == y) { ans = true; break; } else { continue; } } if (ans) { cout << "Yes" << endl; } else { cout << "No" ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.remove" ]
353,613
353,614
u687672623
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool ans = false; for (int i = 1; i <= x; i++) { if (2 * i + 4 * (x - i) == y) { ans = true; break; } else { continue; } } if (ans) { cout << "Yes" << endl; } else { cout << "No" <<...
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool ans = false; for (int i = 0; i <= x; i++) { if (2 * (i) + 4 * (x - i) == y) { ans = true; break; } else { continue; } } if (ans) { cout << "Yes" << endl; } else { cout << "No" ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "control_flow.branch.if.condition.change" ]
353,615
353,614
u687672623
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; string result = "No"; cin >> X >> Y; for (int i = 1; i <= X; i++) { if (2 * i + 4 * (X - i) == Y) { result = "Yes"; break; } } cout << result << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; string result = "No"; cin >> X >> Y; for (int i = 0; i <= X; i++) { if (2 * i + 4 * (X - i) == Y) { result = "Yes"; break; } } cout << result << endl; return 0; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,618
353,619
u851024856
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int TESTS = 1; // cin>>TESTS; while (TESTS--) { int a, b; cin >> a >> b; if (b >= 2 * a && b <= 4 * a && b % 2 != 0) cout << "Yes" << endl; else cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int TESTS = 1; // cin>>TESTS; while (TESTS--) { int a, b; cin >> a >> b; if (b >= 2 * a && b <= 4 * a && b % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl; } }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,620
353,621
u915716225
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); int x, y; cin >> x >> y; if (x * 2 > y || x * 4 < y || y % 2) { cout << "No" << endl; } cout << "Yes" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); int x, y; cin >> x >> y; if (x * 2 > y || x * 4 < y || y % 2) { cout << "No" << endl; } else cout << "Yes" << endl; return 0; }
[ "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
353,626
353,627
u596571459
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; int a, b; bool c = true; for (int i = 0; i < X; i++) { a = i, b = X - i; if (4 * a + 2 * b == Y) { cout << "Yes" << endl; c = false; break; } } if (c) { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; int a, b; bool c = true; for (int i = 0; i < X + 1; i++) { a = i, b = X - i; if (4 * a + 2 * b == Y) { cout << "Yes" << endl; c = false; break; } } if (c) { cout << "No" << endl; } }
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
353,628
353,629
u602711435
cpp
p02640
#include <iomanip> #include <iostream> /*cout <<setprecision(11)<<ret<<endl;で、数字部分を計11桁表示*/ #include <algorithm> #include <cmath> #include <cstdio> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) // Shift+Command+bでデバッグ //その...
#include <iomanip> #include <iostream> /*cout <<setprecision(11)<<ret<<endl;で、数字部分を計11桁表示*/ #include <algorithm> #include <cmath> #include <cstdio> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) // Shift+Command+bでデバッグ //その...
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change", "assignment.value.change" ]
353,636
353,637
u317432339
cpp
p02640
#include <cstdio> int main() { int X, Y; scanf("%d %d", &X, &Y); int a, b; int ans; if ((Y - 2 * X) % 2 != 0) ans = 0; else { b = Y - 2 * X; if (b < 0 || b > X) ans = 0; else ans = 1; } if (ans == 0) printf("No"); else printf("Yes"); return 0; }
#include <cstdio> int main() { int X, Y; scanf("%d %d", &X, &Y); int a, b; int ans; if ((Y - 2 * X) % 2 != 0) ans = 0; else { b = (Y - 2 * X) / 2; if (b < 0 || b > X) ans = 0; else ans = 1; } if (ans == 0) printf("No"); else printf("Yes"); return 0; }
[ "assignment.change" ]
353,639
353,640
u795485790
cpp
p02640
#include <bits/stdc++.h> //短縮 #define rep(i, n) for (int i = 0; i < (n); ++i) // sort()用 #define all(v) v.begin(), v.end() #define PB(N) push_back(N) using namespace std; using Graph = vector<vector<int>>; int main() { int X, Y; cin >> X >> Y; bool flag = 0; for (int i = 1; i <= X; i++) { int j = X - i...
#include <bits/stdc++.h> //短縮 #define rep(i, n) for (int i = 0; i < (n); ++i) // sort()用 #define all(v) v.begin(), v.end() #define PB(N) push_back(N) using namespace std; using Graph = vector<vector<int>>; int main() { int X, Y; cin >> X >> Y; bool flag = 0; for (int i = 0; i <= X; i++) { int j = X - i...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,641
353,642
u384333008
cpp
p02640
#include <bits/stdc++.h> //短縮 #define rep(i, n) for (int i = 0; i < (n); ++i) // sort()用 #define all(v) v.begin(), v.end() #define PB(N) push_back(N) using namespace std; using Graph = vector<vector<int>>; int main() { int X, Y; cin >> X >> Y; bool flag = 0; for (int i = 1; i <= X; i++) { int j = X - i...
#include <bits/stdc++.h> //短縮 #define rep(i, n) for (int i = 0; i < (n); ++i) // sort()用 #define all(v) v.begin(), v.end() #define PB(N) push_back(N) using namespace std; using Graph = vector<vector<int>>; int main() { int X, Y; cin >> X >> Y; bool flag = 0; for (int i = 0; i <= X; i++) { int j = X - 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,643
353,642
u384333008
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define all(v) begin(v), end(v) #define endl '\n'; #define int long long #define pii pair<int, int> int32_t main() { ios_base::sync_with_stdio(0); cin.tie(0); int x, y; cin >> x >> y; int a = 4 * x - y; if (a & 1 || a < 0) { cout << "NO" << endl; } else...
#include <bits/stdc++.h> using namespace std; #define all(v) begin(v), end(v) #define endl '\n'; #define int long long #define pii pair<int, int> int32_t main() { ios_base::sync_with_stdio(0); cin.tie(0); int x, y; cin >> x >> y; int a = 4 * x - y; if (a & 1 || a < 0) { cout << "No" << endl; } else...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,653
353,654
u395150805
cpp
p02640
/* CODED BY ************** DARSHAN JAIN darshanjain31 ************** */ #include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define mp make_pair #define fast \ ios_base::sync_with_stdio(false); ...
/* CODED BY ************** DARSHAN JAIN darshanjain31 ************** */ #include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define mp make_pair #define fast \ ios_base::sync_with_stdio(false); ...
[ "control_flow.branch.if.condition.change" ]
353,657
353,658
u211855881
cpp
p02640
#include <bits/stdc++.h> #include <iostream> #include <map> #include <vector> using namespace std; int main() { // your code goes here int x, y; cin >> x >> y; int min = x * 2; int max = x * 4; if (y >= min || y <= max) { if (y % 4 == 0 || y % 2 == 0) { cout << "Yes" << endl; } else co...
#include <bits/stdc++.h> #include <iostream> #include <map> #include <vector> using namespace std; int main() { // your code goes here int x, y; cin >> x >> y; int min = x * 2; int max = x * 4; if (y >= min && y <= max) { if (y % 4 == 0 || y % 2 == 0) { cout << "Yes" << endl; } else co...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
353,659
353,660
u612382332
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<string> vs; typedef pair<int, int> pii; #define sz(a) int((a).size()) #define pb push_back #define mp make_pair #define fi first #define se second #define all(c) (c).begin(), (c).end() #...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<string> vs; typedef pair<int, int> pii; #define sz(a) int((a).size()) #define pb push_back #define mp make_pair #define fi first #define se second #define all(c) (c).begin(), (c).end() #...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,665
353,666
u523451669
cpp
p02640
#include <bits/stdc++.h> #define debug(x) \ cout << "DEBUG" \ << " " << #x << ":" << x << '\n' #define rep(i, n) \ for (int_...
#include <bits/stdc++.h> #define debug(x) \ cout << "DEBUG" \ << " " << #x << ":" << x << '\n' #define rep(i, n) \ for (int_...
[ "expression.operation.binary.add" ]
353,671
353,672
u457985479
cpp
p02640
#include <bits/stdc++.h> #define debug(x) \ cout << "DEBUG" \ << " " << #x << ":" << x << '\n' #define rep(i, n) \ for (int_...
#include <bits/stdc++.h> #define debug(x) \ cout << "DEBUG" \ << " " << #x << ":" << x << '\n' #define rep(i, n) \ for (int_...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,673
353,672
u457985479
cpp
p02640
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <ctime> #include <fstream> #include <iostream> #include <set> #include <sstream> #include <typeinfo> #include <vector> using namespace std; int main() { int X, Y; int max, min; cin >> X >> Y; max = X * 4; min = X * 2; if...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <ctime> #include <fstream> #include <iostream> #include <set> #include <sstream> #include <typeinfo> #include <vector> using namespace std; int main() { int X, Y; int max, min; cin >> X >> Y; max = X * 4; min = X * 2; if...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,674
353,675
u253866125
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if ((4 * a - b) % 2 == 0 && (b - 2 * a) % 2 == 0 && (4 * a - b) > 0 && (b - 2 * a) > 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if ((4 * a - b) % 2 == 0 && (b - 2 * a) % 2 == 0 && (4 * a - b) >= 0 && (b - 2 * a) >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,680
353,681
u021915951
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll x, y; cin >> x >> y; if ((y >= 2 * x) && (4 * x >= y) && ((4 * x - y) % 2 == 0) && ((y - 2 * x) % 2 == 0)) cout << "yes"; else cout << "No"; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll x, y; cin >> x >> y; if ((y >= 2 * x) && (4 * x >= y) && ((4 * x - y) % 2 == 0) && ((y - 2 * x) % 2 == 0)) cout << "Yes"; else cout << "No"; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,685
353,686
u048097519
cpp
p02640
#include <bits/stdc++.h> #include <cmath> using namespace std; #define _GLIBCXX_DEBUG #define ll long long #define rep(i, n) for (ll i = 0; i < n; i++) #define vl vector<ll> #define vpl vector<pair<ll, ll>> #define vvl vector<vector<ll>> // a(縦行,vector<ll>(横列)); #include <algorithm> //__gcd(a,b) #include <cst...
#include <bits/stdc++.h> #include <cmath> using namespace std; #define _GLIBCXX_DEBUG #define ll long long #define rep(i, n) for (ll i = 0; i < n; i++) #define vl vector<ll> #define vpl vector<pair<ll, ll>> #define vvl vector<vector<ll>> // a(縦行,vector<ll>(横列)); #include <algorithm> //__gcd(a,b) #include <cst...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
353,689
353,690
u454600293
cpp
p02640
#include <iostream> using namespace std; int main() { int animals; int legs; cin >> animals; cin >> legs; if (legs >= 2 * animals && legs <= 4 * animals) { if (legs % 2 == 0) { cout << "YES"; return 0; } else { cout << "NO"; return 0; } } else { cout << "NO"; } }
#include <iostream> using namespace std; int main() { int animals; int legs; cin >> animals; cin >> legs; if (legs >= 2 * animals && legs <= 4 * animals) { if (legs % 2 == 0) { cout << "Yes"; return 0; } else { cout << "No"; return 0; } } else { cout << "No"; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,693
353,694
u510386684
cpp
p02640
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; int main(void) { int x, y, a, b; scanf("%d %d", &x, &y); if (y % 2 == 0) { b = y / 2 - x; a = x - b; if ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; int main(void) { int x, y, a, b; scanf("%d %d", &x, &y); if (y % 2 == 0) { b = y / 2 - x; a = x - b; if ...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
353,700
353,701
u645304183
cpp
p02640
#include <bits/stdc++.h> #include <iomanip> #define fast \ { \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> #include <iomanip> #define fast \ { \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,702
353,703
u416759946
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define rep(i, m, n) for (int(i) = (int)(m); i < (int)(n); ++i) #define rep2(i, m, n) for (int(i) = (int)(n)-1; i >= (int)(m); --i) #define REP(i, n) rep(i, 0, n) #define REP2(i, n) rep2(i, 0, n) #define FOR(i, c) ...
#include <bits/stdc++.h> using namespace std; #define rep(i, m, n) for (int(i) = (int)(m); i < (int)(n); ++i) #define rep2(i, m, n) for (int(i) = (int)(n)-1; i >= (int)(m); --i) #define REP(i, n) rep(i, 0, n) #define REP2(i, n) rep2(i, 0, n) #define FOR(i, c) ...
[ "literal.number.change", "call.arguments.change" ]
353,704
353,705
u712993629
cpp
p02640
#include <algorithm> #include <iostream> int main() { int x, y; scanf("%d%d", &x, &y); for (int i = 1; i <= x; i++) { int ans = 2 * i + 4 * (x - i); if (ans == y) { printf("Yes"); return 0; } } printf("No"); return 0; }
#include <algorithm> #include <iostream> int main() { int x, y; scanf("%d%d", &x, &y); for (int i = 0; i <= x; i++) { int ans = 2 * i + 4 * (x - i); if (ans == y) { printf("Yes"); return 0; } } printf("No"); return 0; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,710
353,711
u489527104
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; bool check = false; for (int i = 1; i < X + 1; i++) { if (2 * i + 4 * (X - i) == Y) { check = true; } } if (check) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; bool check = false; for (int i = 0; i < X + 1; i++) { if (2 * i + 4 * (X - i) == Y) { check = true; } } if (check) { 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,712
353,713
u702468315
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; bool check = false; for (int i = 1; i < X + 1; i++) { if (2 * i + 4 * (X - i) == Y) { check = true; } } if (check) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; bool check = false; for (int i = 0; i < X + 1; i++) { if (2 * i + 4 * (X - i) == Y) { check = true; } } if (check) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "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,714
353,713
u702468315
cpp