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> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= 100; i++) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) 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; return 0; }
[ "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
353,717
353,718
u860557376
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 1; i <= 100; i++) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) 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; return 0; }
[ "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" ]
353,719
353,718
u860557376
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 1; i < 100; i++) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) 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; return 0; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "control_flow.loop.for.condition.change" ]
353,720
353,718
u860557376
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int animals, legs; cin >> animals >> legs; int cranes = animals, turtles = 0, stat = 0; while (cranes > 0) { if (cranes * 2 + turtles * 4 == legs) { stat = 1; break; } cranes--; turtles++; } if (stat == 1) cout << "Y...
#include <bits/stdc++.h> using namespace std; int main() { int animals, legs; cin >> animals >> legs; int cranes = animals, turtles = 0, stat = 0; while (cranes >= 0) { if (cranes * 2 + turtles * 4 == legs) { stat = 1; break; } cranes--; turtles++; } if (stat == 1) cout << "...
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
353,729
353,730
u035863466
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0) { if (2 * x < y && y < 4 * x) cout << "Yes" << endl; else cout << "No" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0) { if (2 * x <= y && y <= 4 * x) cout << "Yes" << endl; else cout << "No" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,735
353,736
u882098164
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int kazu = x; x = x * 4; for (int i = 1; i <= kazu; i++) { if (i * 2 + (kazu - i) * 4 == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int kazu = x; x = x * 4; for (int i = 0; i <= kazu; i++) { if (i * 2 + (kazu - i) * 4 == 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,747
353,748
u758406624
cpp
p02640
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <set> #include <string> #include <vector> #define ll long long using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 1; i <= X; i++) { if (Y == (...
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <set> #include <string> #include <vector> #define ll long long using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 0; i <= X; i++) { if (Y == (...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,759
353,760
u390997234
cpp
p02640
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <set> #include <string> #include <vector> #define ll long long using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 1; i <= Y; i++) { if (Y == (...
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <set> #include <string> #include <vector> #define ll long long using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 0; i <= X; i++) { if (Y == (...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
353,761
353,760
u390997234
cpp
p02640
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <set> #include <string> #include <vector> #define ll long long using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 1; i <= 100; i++) { if (Y ==...
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <set> #include <string> #include <vector> #define ll long long using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 0; i <= X; i++) { if (Y == (...
[ "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" ]
353,762
353,760
u390997234
cpp
p02640
#include <bits/stdc++.h> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int x, y; cin >> x >> y; if (2 * x <= y <= 4 * x && y % 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } ...
#include <bits/stdc++.h> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; using P = pair<int, int>; 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; ...
[ "control_flow.branch.if.condition.change" ]
353,763
353,764
u061567183
cpp
p02640
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { int x, y; scanf("%d%d", &x, &y); if ((x % 2 == 0) && (y >= 2 * x && y <= 4 * x)) printf("Yes\n"); else printf("No\n"); return 0; }
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { int x, y; scanf("%d%d", &x, &y); if ((y % 2 == 0) && (y >= 2 * x && y <= 4 * x)) printf("Yes\n"); else printf("No\n"); return 0; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
353,765
353,766
u653096128
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int ani, leg; cin >> ani >> leg; if (leg % 2) { cout << "NO\n"; return 0; } int y = leg / 2; y -= ani; int x = ani - y; if (x >= 0 && y >= 0) cout << "YES\n"; else cout << "NO\n"; }
#include <bits/stdc++.h> using namespace std; int main() { int ani, leg; cin >> ani >> leg; if (leg % 2) { cout << "No\n"; return 0; } int y = leg / 2; y -= ani; int x = ani - y; if (x >= 0 && y >= 0) cout << "Yes\n"; else cout << "No\n"; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,771
353,772
u080922289
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { int x, y; cin >> x >> y; if (y >= x and (y - x) % 2 == 0 and x >= (y - x) / 2) cout << "Yes"; else cout << "No"; }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { int x, y; cin >> x >> y; if (y >= 2 * x and (y - 2 * x) % 2 == 0 and x >= (y - 2 * x) / 2) cout << "Yes"; else cout << "No"; }
[ "control_flow.branch.if.condition.change" ]
353,773
353,774
u634976812
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 (y == 2 * i + 4 * (x - 1)) { 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; i++) { if (y == 2 * i + 4 * (x - i)) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
353,777
353,778
u603958124
cpp
p02640
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; using ll = long long; const int INF = 1001001001; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = 0; i + j <= x; j++)...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; using ll = long long; const int INF = 1001001001; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = (x - i); i + j <= x...
[ "control_flow.loop.for.initializer.change" ]
353,785
353,786
u904995051
cpp
p02640
#include <iostream> using namespace std; int main(void) { int x, y; cin >> x >> y; if (0 <= y && y <= 4 * x && y % 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> using namespace std; int main(void) { int x, y; cin >> x >> y; if (2 * x <= y && y <= 4 * x && y % 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
353,789
353,790
u786801412
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y >= 2 * x && y <= 4 * x) { if (y % 2 == 0) { cout << "Yes"; } else { cout << "No"; return 0; } } else cout << "NO"; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y >= 2 * x && y <= 4 * x) { if (y % 2 == 0) { cout << "Yes"; } else { cout << "No"; return 0; } } else cout << "No"; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,793
353,794
u642925421
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y >= 2 * x && y <= 4 * x) { if (y % 2 == 0) { cout << "YES"; } else { cout << "NO"; return 0; } } else cout << "NO"; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y >= 2 * x && y <= 4 * x) { if (y % 2 == 0) { cout << "Yes"; } else { cout << "No"; return 0; } } else cout << "No"; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,795
353,794
u642925421
cpp
p02640
#include <stdio.h> int main() { int x, y, a, b, z; scanf("%d%d", &x, &y); z = y - 2 * x; if (z % 2) { printf("No\n"); return 0; } b = z / 2; a = x - b; if (a < 0) { printf("No\n"); return 0; } printf("Yes\n"); return 0; }
#include <stdio.h> int main() { int x, y, a, b, z; scanf("%d%d", &x, &y); z = y - 2 * x; if (z % 2) { printf("No\n"); return 0; } b = z / 2; a = x - b; if (b < 0 || a < 0) { printf("No\n"); return 0; } printf("Yes\n"); return 0; }
[ "control_flow.branch.if.condition.change" ]
353,798
353,799
u608926130
cpp
p02640
#include <bits/stdc++.h> struct Fast { Fast() { std::cin.tie(0); std::ios::sync_with_stdio(false); } } fast; typedef long long ll; typedef long double ld; #define rep(i, n) for (ll i = 0; i < (int)(n); i++) #define repR(i, n) for (ll i = n; i >= 0; i--) #define For(i, m, n) for (ll i = m; i < n; i++) #defi...
#include <bits/stdc++.h> struct Fast { Fast() { std::cin.tie(0); std::ios::sync_with_stdio(false); } } fast; typedef long long ll; typedef long double ld; #define rep(i, n) for (ll i = 0; i < (int)(n); i++) #define repR(i, n) for (ll i = n; i >= 0; i--) #define For(i, m, n) for (ll i = m; i < n; i++) #defi...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,800
353,801
u050445028
cpp
p02640
#include <bits/stdc++.h> #define console using namespace std; #ifndef console ifstream fin("data.in"); ofstream fout("data.out"); #else #define fin cin #define fout cout #endif #define usain_bolt() \ (ios_base::sync_with_stdio(false), fin.tie(NULL), fout.tie(N...
#include <bits/stdc++.h> #define console using namespace std; #ifndef console ifstream fin("data.in"); ofstream fout("data.out"); #else #define fin cin #define fout cout #endif #define usain_bolt() \ (ios_base::sync_with_stdio(false), fin.tie(NULL), fout.tie(N...
[ "control_flow.branch.if.condition.change" ]
353,819
353,820
u085029985
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll X, Y; cin >> X >> Y; if (Y % 2 != 0) { cout << "No" << endl; return 0; } else { ll gg = Y / 2; ll hh = Y / 4; if (X >= hh && X <= gg) { cout << "Yes" << endl; } else { cout << "No" << endl; ...
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll X, Y; cin >> X >> Y; if (Y % 2 != 0) { cout << "No" << endl; return 0; } else { ll gg = Y / 2; ll hh = ceil(Y / 4.0); if (X >= hh && X <= gg) { cout << "Yes" << endl; } else { cout << "No" << e...
[ "call.add", "literal.number.change", "expression.operation.binary.change", "call.arguments.change" ]
353,823
353,824
u171599191
cpp
p02640
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() using namespace std; using str = string; using ll = long long; using vi = vector<int>; using vii = vector<vi>; int main() { int x, y; cin >> x >> y; bool a = false; for (int i = 0; i <= 100; i++) { if (i * 2 + (x - i) * 4 == y) { a = tru...
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() using namespace std; using str = string; using ll = long long; using vi = vector<int>; using vii = vector<vi>; int main() { int x, y; cin >> x >> y; bool a = false; for (int i = 0; i <= x; i++) { if (i * 2 + (x - i) * 4 == y) { a = true;...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
353,828
353,829
u274758786
cpp
p02640
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() using namespace std; using str = string; using ll = long long; using vi = vector<int>; using vii = vector<vi>; int main() { int x, y; cin >> x >> y; bool a = false; for (int i = 1; i <= 100; i++) { if (i * 2 + (x - i) * 4 == y) a = true;...
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() using namespace std; using str = string; using ll = long long; using vi = vector<int>; using vii = vector<vi>; int main() { int x, y; cin >> x >> y; bool a = false; for (int i = 0; i <= x; i++) { if (i * 2 + (x - i) * 4 == y) { a = true;...
[ "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" ]
353,830
353,829
u274758786
cpp
p02640
#include <bits/stdc++.h> #include <iostream> using namespace std; typedef long long int ll; int main(void) { ll x, y; cin >> x >> y; ll c, t; ll temp = y - (2 * x); if (temp < 0) cout << "No\n"; else { if (temp % 2 == 1) cout << "No\n"; else { t = temp / 2; c = x - t; i...
#include <bits/stdc++.h> #include <iostream> using namespace std; typedef long long int ll; int main(void) { ll x, y; cin >> x >> y; ll c, t; ll temp = y - (2 * x); if (temp < 0) cout << "No\n"; else { if (temp % 2 == 1) cout << "No\n"; else { t = temp / 2; c = x - t; i...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,831
353,832
u243042206
cpp
p02640
#include <bits/stdc++.h> #include <iostream> using namespace std; typedef long long int ll; int main(void) { ll x, y; cin >> x >> y; ll c, t; ll temp = y - (2 * x); if (temp < 0) cout << "No\n"; else { if (temp % 2 == 1) cout << "No\n"; else { t = temp / 2; c = x - t; i...
#include <bits/stdc++.h> #include <iostream> using namespace std; typedef long long int ll; int main(void) { ll x, y; cin >> x >> y; ll c, t; ll temp = y - (2 * x); if (temp < 0) cout << "No\n"; else { if (temp % 2 == 1) cout << "No\n"; else { t = temp / 2; c = x - t; i...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,833
353,832
u243042206
cpp
p02640
#include <algorithm> //sort,二分探索,など #include <bitset> //固定長bit集合 #include <climits> //long long型の最大値(LLONG_MAX)など #include <cmath> //pow,logなど #include <complex> //複素数 #include <deque> //両端アクセスのキュー #include <functional> //sortのgreater #include <iomanip> //setprecision(浮動小...
#include <algorithm> //sort,二分探索,など #include <bitset> //固定長bit集合 #include <climits> //long long型の最大値(LLONG_MAX)など #include <cmath> //pow,logなど #include <complex> //複素数 #include <deque> //両端アクセスのキュー #include <functional> //sortのgreater #include <iomanip> //setprecision(浮動小...
[ "control_flow.branch.if.condition.change" ]
353,841
353,842
u924935170
cpp
p02640
// AtCoder // ABC B - Crane and Turtle #include <algorithm> #include <chrono> #include <cmath> #include <functional> #include <iostream> #include <random> #include <string> #include <vector> using namespace std; // using namespace std::chrono; int main() { // steady_clock::time_point start = steady_clock::now(); ...
// AtCoder // ABC B - Crane and Turtle #include <algorithm> #include <chrono> #include <cmath> #include <functional> #include <iostream> #include <random> #include <string> #include <vector> using namespace std; // using namespace std::chrono; int main() { // steady_clock::time_point start = steady_clock::now(); ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,855
353,856
u336201005
cpp
p02640
#include <bits/stdc++.h> typedef long long ll; using namespace std; void pv(vector<int> &v) { cout << "{ "; for (auto el : v) { cout << el << ", "; } cout << " }" << endl; } int main() { ios::sync_with_stdio(0); cin.tie(0); int x, y; cin >> x >> y; for (int i = 1; i <= x; i++) { int c = i; ...
#include <bits/stdc++.h> typedef long long ll; using namespace std; void pv(vector<int> &v) { cout << "{ "; for (auto el : v) { cout << el << ", "; } cout << " }" << endl; } int main() { ios::sync_with_stdio(0); cin.tie(0); int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { int c = i; ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,857
353,858
u317197659
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; bool seigo = false; for (int i = 0; i < X; i++) { if (2 * i + 4 * (X - i) == Y) { seigo == true; } } if (seigo == true) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; bool seigo = false; for (int i = 0; i < X + 1; i++) { if (2 * i + 4 * (X - i) == Y) { seigo = true; break; } } if (seigo == true) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "control_flow.loop.for.condition.change", "misc.off_by_one", "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo" ]
353,863
353,862
u884876243
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if ((y - x * 2) % 2 == 0 && (y - x * 2) <= x && (y - 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 * 2) % 2 == 0 && (y - x * 2) / 2 <= x && (y - x * 2) >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "control_flow.branch.if.condition.change" ]
353,864
353,865
u974931918
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; bool abc = false; for (int i = 1; i <= x; i++) { if (4 * x - 2 * i == y) { abc = true; break; } } if (abc) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; bool abc = false; for (int i = 0; i <= x; i++) { if (4 * x - 2 * i == y) { abc = true; break; } } if (abc) { 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,866
353,867
u753508285
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; bool abc = false; for (int i = 1; i < x; i++) { if (4 * x - 2 * i == y) { abc = true; break; } } if (abc) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; bool abc = false; for (int i = 0; i <= x; i++) { if (4 * x - 2 * i == y) { abc = true; break; } } if (abc) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "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,868
353,867
u753508285
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; bool abc = false; for (int i = 1; i < 30; i++) { if (4 * x - 2 * i == y) { abc = true; break; } } if (abc) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; bool abc = false; for (int i = 0; i <= x; i++) { if (4 * x - 2 * i == y) { abc = true; break; } } if (abc) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "control_flow.loop.for.condition.change" ]
353,869
353,867
u753508285
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define INF 1e18 typedef long long ll; typedef pair<int, int> P; int main() { int a, b; cin >> a >> b; for (int i = 1; i < a; i++) { int t = i * 2; int c = b - t; if (c % 4 == 0 && c / 4 + i == a) { cout << "Yes" << endl; return 0; } } ...
#include <bits/stdc++.h> using namespace std; #define INF 1e18 typedef long long ll; typedef pair<int, int> P; int main() { int a, b; cin >> a >> b; for (int i = 0; i <= a; i++) { int t = i * 2; int c = b - t; if (c % 4 == 0 && c / 4 + i == a) { cout << "Yes" << 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,870
353,871
u095414611
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define INF 1e18 typedef long long ll; typedef pair<int, int> P; int main() { int a, b; cin >> a >> b; for (int i = 1; i <= a; i++) { int t = i * 2; int c = b - t; if (c % 4 == 0 && c / 4 + i == a) { cout << "Yes" << endl; return 0; } } ...
#include <bits/stdc++.h> using namespace std; #define INF 1e18 typedef long long ll; typedef pair<int, int> P; int main() { int a, b; cin >> a >> b; for (int i = 0; i <= a; i++) { int t = i * 2; int c = b - t; if (c % 4 == 0 && c / 4 + i == a) { cout << "Yes" << endl; return 0; } } ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,872
353,871
u095414611
cpp
p02640
#include <iostream> using namespace std; int main() { int n, t; cin >> n >> t; if (4 * n < t || t % 2 == 1 || t < 2 * n) cout << "NO" << endl; else cout << "YES" << endl; return 0; }
#include <iostream> using namespace std; int main() { int n, t; cin >> n >> t; if (4 * n < t || t % 2 == 1 || t < 2 * n) cout << "No" << endl; else cout << "Yes" << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,873
353,874
u610151705
cpp
p02640
#include <iostream> int main() { int X, Y; std::cin >> X >> Y; if (X * 2 <= Y && X * 4 >= Y && X % 2 == 0) { std::cout << "Yes"; } else { std::cout << "No"; } }
#include <iostream> int main() { int X, Y; std::cin >> X >> Y; if (X * 2 <= Y && X * 4 >= Y && Y % 2 == 0) { std::cout << "Yes"; } else { std::cout << "No"; } }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
353,875
353,876
u343998185
cpp
p02640
#include <iostream> #include <vector> using namespace std; #define int int64_t signed main() { ios_base::sync_with_stdio(false); cin.tie(0); int x, y; cin >> x >> y; if (x < y / 4 || x > y / 2) { cout << "No"; return 0; } if (y % 2 == 1) { cout << "No"; return 0; } cout << "Yes"...
#include <iostream> #include <vector> using namespace std; #define int int64_t signed main() { ios_base::sync_with_stdio(false); cin.tie(0); int x, y; cin >> x >> y; if (x < y / 4.0 || x > y / 2.0) { cout << "No"; return 0; } if (y % 2 == 1) { cout << "No"; return 0; } cout << "...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
353,877
353,878
u604456376
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y, z; cin >> x >> y; bool c = false; z = x * 4; if (z == y) { c = true; } else { for (int i = 0; i < x; i++) { z -= 2; if (z == y) { c = true; break; } } } if (c) { cout << "YES" << endl;...
#include <bits/stdc++.h> using namespace std; int main() { int x, y, z; cin >> x >> y; bool c = false; z = x * 4; if (z == y) { c = true; } else { for (int i = 0; i < x; i++) { z -= 2; if (z == y) { c = true; break; } } } if (c) { cout << "Yes" << endl;...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,883
353,884
u176854281
cpp
p02640
#include <bits/stdc++.h> using namespace std; int x, y; int main() { cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = 0; j <= x - i; j++) { if (i * 4 + j * 2 == y || i * 2 + j * 4 == y) { cout << "Yes"; return 0; } } } cout << "No"; return 0; }
#include <bits/stdc++.h> using namespace std; int x, y; int main() { cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = 0; j <= x - i; j++) { if (i * 4 + j * 2 == y && i + j == x) { cout << "Yes"; return 0; } } } cout << "No"; return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "identifier.change" ]
353,885
353,886
u476610391
cpp
p02640
#include <bits/stdc++.h> #define P pair<int, int> #define vv vector<vector<int>> #define v vector<int> #define rep(i, n) for (int i = 0; i < (int)n; i++) using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int k = 0; k <= x; k++) { if ((i * 2 + k * 4) == y &...
#include <bits/stdc++.h> #define P pair<int, int> #define vv vector<vector<int>> #define v vector<int> #define rep(i, n) for (int i = 0; i < (int)n; i++) using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int k = 0; k <= x; k++) { if ((i * 2 + k * 4) == y &...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,889
353,890
u495314970
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 1; i < x + 1; i++) { if (i * 2 + (x - i) * 4 == y) { cout << "Yes"; return 0; } } cout << "No"; }
#include <iostream> 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"; return 0; } } cout << "No"; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,899
353,900
u417503954
cpp
p02640
#include <bits/stdc++.h> #define lol long long #define gcd(x, y) __gcd(x, y) #define mt make_tuple #define mp make_pair #define fi first #define se second #define fixed fixed << setprecision(14) using namespace std; using pii = pair<int, int>; template <class A, class B> inline bool chmax(A &a, const B &b) { return ...
#include <bits/stdc++.h> #define lol long long #define gcd(x, y) __gcd(x, y) #define mt make_tuple #define mp make_pair #define fi first #define se second #define fixed fixed << setprecision(14) using namespace std; using pii = pair<int, int>; template <class A, class B> inline bool chmax(A &a, const B &b) { return ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
353,905
353,906
u331081465
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(a) (a).begin(), (a).end() #define dunk(a) cout << (a) << endl using namespace std; typedef long long ll; int main() { double x, y, z; cin >> x >> y; z = 2 * x - y / 2; bool a = true; bool b = true; bool c = true; if (z <...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(a) (a).begin(), (a).end() #define dunk(a) cout << (a) << endl using namespace std; typedef long long ll; int main() { double x, y, z; cin >> x >> y; z = 2 * x - y / 2; bool a = true; bool b = true; bool c = true; if (z <...
[ "expression.operation.binary.remove", "control_flow.branch.if.condition.change", "identifier.replace.remove", "literal.replace.add" ]
353,916
353,917
u674120728
cpp
p02640
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <utility> #include <vector> using namespace std; typedef long long ll; int main...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <utility> #include <vector> using namespace std; typedef long long ll; int main...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
353,920
353,921
u936558609
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 == 1) { cout << "No" << endl; } else if (2 * X <= Y <= 4 * X) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 == 1) { cout << "No" << endl; } else if (2 * X <= Y && Y <= 4 * X) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "control_flow.branch.if.condition.change" ]
353,928
353,929
u430394202
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; i++) { if (i * 2 + (X - i) * 4 == Y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,932
353,933
u579001504
cpp
p02640
// include,namespace #include <bits/stdc++.h> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; // REPmacro #define all(x) (x).begin(), (x).end() //ソート #define FOR(i, x, n) for (int i = (x); i < (n); i++) #define FOR_R(i, x, n) for (int i = (n - 1); i >= (x); i--) #define REP...
// include,namespace #include <bits/stdc++.h> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; // REPmacro #define all(x) (x).begin(), (x).end() //ソート #define FOR(i, x, n) for (int i = (x); i < (n); i++) #define FOR_R(i, x, n) for (int i = (n - 1); i >= (x); i--) #define REP...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
353,947
353,948
u196210689
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool judge = false; for (int i = 0; i < x; i++) { if (y == 2 * (x - i) + 4 * i) { judge = true; break; } } if (judge) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool judge = false; for (int i = 0; i <= x; i++) { if (y == 2 * (x - i) + 4 * i) { judge = true; break; } } if (judge) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
353,951
353,952
u918060376
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool judge = false; for (int i = 0; i < x; i++) { if (y == 2 * (x - i) + 4 * i) { judge = true; break; } } if (judge) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool judge = false; for (int i = 0; i <= x; i++) { if (y == 2 * (x - i) + 4 * i) { judge = true; break; } } if (judge) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "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" ]
353,953
353,952
u918060376
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main(void) { int X, Y; cin >> X >> Y; for (int c = 0; c <= 100; ++c) { for (int t = 0; t <= 100; ++t) { if ((c + t) == X && (2 * c + 4 * t) == Y) { cout << "YES" << endl; return 0; } } } cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; int main(void) { int X, Y; cin >> X >> Y; for (int c = 0; c <= 100; ++c) { for (int t = 0; t <= 100; ++t) { if ((c + t) == X && (2 * c + 4 * t) == Y) { cout << "Yes" << endl; return 0; } } } cout << "No" << endl; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,960
353,961
u998980702
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0) { if ((y - x * 2) <= x && (y - x * 2) >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0) { if ((y - x * 2) / 2 <= x && (y - x * 2) / 2 >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } } else { cout << "No" << endl; } }
[ "control_flow.branch.if.condition.change" ]
353,967
353,968
u187385975
cpp
p02640
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { int x, y; cin >> x >> y; int flag = 0; for (int i = 0; i < x; i++) { if ((4 * i) + (2 * (x - i)) == y) { flag = 1; } } if (flag)...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { int x, y; cin >> x >> y; int flag = 0; for (int i = 0; i <= x; i++) { if ((4 * i) + (2 * (x - i)) == y) { flag = 1; } } if (flag...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
353,972
353,973
u392569193
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; #define INF (int)(1e9) #define MAXX 1.1529215e+18 #define inf 999999 #define EPS (1e-7) #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define FOR(i, k, n) for (int i = (k); i < (int)(n); i++) #define ALL(a) a.begin(),...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; #define INF (int)(1e9) #define MAXX 1.1529215e+18 #define inf 999999 #define EPS (1e-7) #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define FOR(i, k, n) for (int i = (k); i < (int)(n); i++) #define ALL(a) a.begin(),...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
353,982
353,983
u979966078
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long #define dbg puts("It's Just Begining.Wait For The End!!!!!\n") #define CHECK(x) cout << (#x) << " is " << (x) << "\n"; #define endl printf("\n") typedef pair<ll, ll> pii; #define pb push_back #define ms(a, b) memset(a, b, sizeof(a)) #define in(x) scanf(...
#include <bits/stdc++.h> using namespace std; #define ll long long #define dbg puts("It's Just Begining.Wait For The End!!!!!\n") #define CHECK(x) cout << (#x) << " is " << (x) << "\n"; #define endl printf("\n") typedef pair<ll, ll> pii; #define pb push_back #define ms(a, b) memset(a, b, sizeof(a)) #define in(x) scanf(...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
353,984
353,985
u850379296
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 1; i < (n); ++i) const int INF = 1001001001; using ll = long long; using P = pair<ll, ll>; using Graph = vector<string>; Graph field; queue<P> q; int main() { int a, b; cin >> a >> b; rep(i, a + 1) { if (i * 2 + (a - i) * 4 == b) { ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) const int INF = 1001001001; using ll = long long; using P = pair<ll, ll>; using Graph = vector<string>; Graph field; queue<P> q; int main() { int a, b; cin >> a >> b; rep(i, a + 1) { if (i * 2 + (a - i) * 4 == b) { ...
[ "preprocessor.define.value.change", "literal.integer.change" ]
353,988
353,989
u809514327
cpp
p02640
#include <bits/stdc++.h> #define pb push_back #define mp make_pair #define inf 1000000007 #define fr first #define sc second #define eps 1e-9 #define clr(a) memset(a, 0, sizeof(a)) #define sz(x) x.size() #define sni(x) scanf("%d", &x) #define snl(x) scanf("%lld", &x) #define snc(x) scanf("%c", &c); #define rep(n) for ...
#include <bits/stdc++.h> #define pb push_back #define mp make_pair #define inf 1000000007 #define fr first #define sc second #define eps 1e-9 #define clr(a) memset(a, 0, sizeof(a)) #define sz(x) x.size() #define sni(x) scanf("%d", &x) #define snl(x) scanf("%lld", &x) #define snc(x) scanf("%c", &c); #define rep(n) for ...
[ "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,990
353,991
u872703130
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int N, Y; cin >> N, Y; string str = "No"; for (int i = 0; i < N; i++) { if (Y == i * 2 + (N - i) * 4) { str = "Yes"; break; } } cout << str << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N, Y; cin >> N >> Y; string str = "No"; for (int i = 0; i <= N; i++) { if (Y == i * 2 + (N - i) * 4) { str = "Yes"; break; } } cout << str << endl; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
354,003
354,004
u976897042
cpp
p02640
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; typedef long long ll; typedef long double ldb; typedef pair<ll, ll> pll; template <typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_or...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; typedef long long ll; typedef long double ldb; typedef pair<ll, ll> pll; template <typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_or...
[ "control_flow.branch.if.condition.change" ]
354,009
354,010
u048368946
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int t = 1; // cin >> t; while (t--) { int i = 0, x = 0, y = 0; cin >> x >> y; if (y % 2 == 0 && 2 * x <= y && y <= 4 * x) { cout << "YES" << endl; } else cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int t = 1; // cin >> t; while (t--) { int i = 0, x = 0, y = 0; cin >> x >> y; if (y % 2 == 0 && 2 * x <= y && y <= 4 * x) { cout << "Yes" << endl; } else cout << "No" << endl; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
354,013
354,014
u335136859
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; if (y - 2 * x < 0 or y - 2 * x % 2 == 1) { cout << "No" << endl; } else { if (4 * x - y < 0 or 4 * x - y % 2 == 1) { ...
#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; if (y - 2 * x < 0 or (y - 2 * x) % 2 == 1) { cout << "No" << endl; } else { if (4 * x - y < 0 or (4 * x - y) % 2 == 1) { ...
[ "control_flow.branch.if.condition.change" ]
354,015
354,016
u992471673
cpp
p02640
//<editor-fold> DEFINES #include <bits/stdc++.h> using namespace std; #define lll bigint #define PF push_front #define watch_shid \ Stopwatch WATCH; \ WATCH.start() #define mayn main #define lint ...
//<editor-fold> DEFINES #include <bits/stdc++.h> using namespace std; #define lll bigint #define PF push_front #define watch_shid \ Stopwatch WATCH; \ WATCH.start() #define mayn main #define lint ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
354,028
354,029
u039021225
cpp
p02640
#include <iostream> 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; return 0; }
#include <iostream> 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; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
354,030
354,031
u771369554
cpp
p02640
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll x, y; string ans = "NO"; cin >> x >> y; if (y % 2 != 0) cout << ans << endl; else { ll y1 = (y / 2 - x); ll x1 = (2 * x - (y / 2)); if (y1 >= 0 and x1 >= 0) { ans = "Yes"; } cout << ans << endl; ...
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll x, y; string ans = "No"; cin >> x >> y; if (y % 2 != 0) cout << ans << endl; else { ll y1 = ((y / 2) - x); ll x1 = ((2 * x) - (y / 2)); if (y1 >= 0 and x1 >= 0) { ans = "Yes"; } cout << ans << en...
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change" ]
354,034
354,035
u734326066
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; int ans = 0; for (int i = 0; i < X + 1; i++) { if (Y == 4 * X - 2 * i) { ans++; } } if (ans == 0) { cout << "NO" << endl; } else { cout << "YES" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; int ans = 0; for (int i = 0; i < X + 1; i++) { if (Y == 4 * X - 2 * i) { ans++; } } if (ans == 0) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
354,046
354,047
u843572674
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; string ans = "No"; for (int i = 0; i < x; i++) { if (i * 4 + (x - i) * 2 == y) { ans = "Yes"; break; } } cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; string ans = "No"; for (int i = 0; i <= x; i++) { if (i * 4 + (x - i) * 2 == y) { ans = "Yes"; break; } } cout << ans << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
354,048
354,049
u159703196
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool tf; for (int i = 0; i <= x; i++) { if (i * 2 + (x - i) * 4 == y) tf = true; } if (tf) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; bool tf = false; for (int i = 0; i <= x; i++) { if (i * 2 + (x - i) * 4 == y) tf = true; } if (tf) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[ "variable_declaration.value.change" ]
354,054
354,055
u939030820
cpp
p02640
#include <bits/stdc++.h> #include <iostream> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; /*vector<Type> v; vector<Type> v(); vector<Type> v(n); vector<Type> v(n, d); vector<vector<Type>> vv; vector<vector<Type>> vv(); vector<vector<Type>> vv(n); vector<vector<Type>> vv(n, vector<Type>(m)); vector...
#include <bits/stdc++.h> #include <iostream> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; /*vector<Type> v; vector<Type> v(); vector<Type> v(n); vector<Type> v(n, d); vector<vector<Type>> vv; vector<vector<Type>> vv(); vector<vector<Type>> vv(n); vector<vector<Type>> vv(n, vector<Type>(m)); vector...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
354,056
354,057
u774827549
cpp
p02640
#include <iostream> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int X, Y; cin >> X >> Y; bool flg = false; rep(i, X) { if (i * 2 + (X - i) * 4 == Y) { cout << "Yes"; flg = true; break; } } if (!flg) cout << "No"; return 0; }
#include <iostream> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int X, Y; cin >> X >> Y; bool flg = false; rep(i, X + 1) { if (i * 2 + (X - i) * 4 == Y) { cout << "Yes"; flg = true; break; } } if (!flg) cout << "No"; return 0;...
[ "expression.operation.binary.add" ]
354,058
354,059
u580576637
cpp
p02640
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define FOR(i, a, n) for (ll i = a; i < (ll)(n); i++) int main() { int X, Y; cin >> X >> Y; for (int i = 1; i <= X; i++) { for (int j = X - i; i + j <= X; j++) { ...
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define FOR(i, a, n) for (ll i = a; i < (ll)(n); i++) int main() { int X, Y; cin >> X >> Y; for (int i = 0; i <= X; i++) { for (int j = X - i; i + j <= X; j++) { ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
354,064
354,065
u526365587
cpp
p02640
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define FOR(i, a, n) for (ll i = a; i < (ll)(n); i++) int main() { int X, Y; cin >> X >> Y; for (int i = 1; i <= X; i++) { for (int j = X - i; i + j <= X; j++) { ...
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define FOR(i, a, n) for (ll i = a; i < (ll)(n); i++) int main() { int X, Y; cin >> X >> Y; for (int i = 0; i <= X; i++) { for (int j = X - i; i + j <= X; j++) { ...
[ "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" ]
354,066
354,065
u526365587
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 1) { cout << "No" << endl; } else if (x <= y && 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 (y % 2 == 1) { cout << "No" << endl; } else if (2 * x <= y && y <= 2 * 2 * x) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "control_flow.branch.if.condition.change" ]
354,067
354,068
u823790438
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 1) { cout << "No" << endl; } else if (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 (y % 2 == 1) { cout << "No" << endl; } else if (2 * x <= y && y <= 2 * 2 * x) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "control_flow.branch.if.condition.change" ]
354,069
354,068
u823790438
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ll long long #define co(x) cout << x; #define coe(x) cout << x << endl; int main() { int X, Y; cin >> X >> Y; if (Y % 2 == 0 && (X * 2 <= Y && Y <= X * 4)) { coe("YES") } else ...
#include <bits/stdc++.h> using namespace std; #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ll long long #define co(x) cout << x; #define coe(x) cout << x << endl; int main() { int X, Y; cin >> X >> Y; if (Y % 2 == 0 && (X * 2 <= Y && Y <= X * 4)) { coe("Yes") } else ...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change" ]
354,075
354,076
u217208011
cpp
p02640
#include <bits/stdc++.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); using namespace std; int main() { ...
#include <bits/stdc++.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); using namespace std; int main() { ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
354,079
354,080
u908773206
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long Int; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int x, y; cin >> x >> y; bool ok = false; for (int i = 0; i <= x; i++) { if (y == (i * 2) + (x - i) * 4) { ok = true; break; } } cout << (ok ? "Yes" : "...
#include <bits/stdc++.h> using namespace std; typedef long long Int; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int x, y; cin >> x >> y; bool ok = false; for (int i = 0; i <= x; i++) { if (y == (i * 2) + (x - i) * 4) { ok = true; break; } } cout << (ok ? "Yes" : "...
[ "literal.string.change", "io.output.change" ]
354,081
354,082
u440632112
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 <algorithm> #include <cmath> #include <cstdio> #inc...
// 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 <algorithm> #include <cmath> #include <cstdio> #inc...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
354,083
354,084
u805304731
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 1; i < x; i++) { int sum = 0; sum = i * 2 + (x - i) * 4; if (sum == 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++) { int sum = 0; sum = i * 2 + (x - i) * 4; if (sum == 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", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
354,085
354,086
u908985966
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 0; i <= X; i++) { int j = X - i; if (i * 4 + j * 2 == 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++) { int j = X - i; if (i * 4 + j * 2 == Y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
354,087
354,088
u414306460
cpp
p02640
#include <bits/stdc++.h> using namespace std; // useful library int long long gcd(int long long a, int long long b) { return b ? gcd(b, a % b) : a; } //最大公約数 int long long lcm(int long long a, int long long b) { return a / gcd(a, b) * b; } //最小公倍数 int long long GetDigit(int long long num) { int long long digit = ...
#include <bits/stdc++.h> using namespace std; // useful library int long long gcd(int long long a, int long long b) { return b ? gcd(b, a % b) : a; } //最大公約数 int long long lcm(int long long a, int long long b) { return a / gcd(a, b) * b; } //最小公倍数 int long long GetDigit(int long long num) { int long long digit = ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "call.add", "control_flow.branch.if.condition.change" ]
354,089
354,090
u217862992
cpp
p02640
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; using namespace std; bool tsurukame(int head, int reg) { int turu = head; int kame = 0; bool a ...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; using namespace std; bool tsurukame(int head, int reg) { int turu = head; int kame = 0; bool a ...
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
354,091
354,092
u789673498
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define int long long #define REP(i, m, n) for (int i = (m); i < (n); i++) #define rep(i, n) REP(i, 0, n) #define pb push_back #define all(a) a.begin(), a.end() #define rall(c) (c).rbegin(), (c).rend() #define mp make_pair #define endl '\n' #define fi first #define se secon...
#include <bits/stdc++.h> using namespace std; #define int long long #define REP(i, m, n) for (int i = (m); i < (n); i++) #define rep(i, n) REP(i, 0, n) #define pb push_back #define all(a) a.begin(), a.end() #define rall(c) (c).rbegin(), (c).rend() #define mp make_pair #define endl '\n' #define fi first #define se secon...
[ "control_flow.branch.if.condition.change" ]
354,095
354,096
u339937125
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++) //最初の数値を指定したループ //型名省略 typedef long long ll; //配列要素数 static const int MAX = 200000; //値 static const ll MX...
#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++) //最初の数値を指定したループ //型名省略 typedef long long ll; //配列要素数 static const int MAX = 200000; //値 static const ll MX...
[ "expression.operation.binary.add" ]
354,097
354,098
u432795166
cpp
p02640
#include <bits/stdc++.h> #define debug(a) cout << #a ": " << a << endl #define IOS ios::sync_with_stdio(false), cin.tie(0) using namespace std; typedef long long ll; int cnt[10]; int main(void) { IOS; int x, y; cin >> x >> y; for (int i = 0; i <= x; ++i) { int two = i * 2, four = (x - i) * 3; if (two + ...
#include <bits/stdc++.h> #define debug(a) cout << #a ": " << a << endl #define IOS ios::sync_with_stdio(false), cin.tie(0) using namespace std; typedef long long ll; int cnt[10]; int main(void) { IOS; int x, y; cin >> x >> y; for (int i = 0; i <= x; ++i) { int two = i * 2, four = (x - i) * 4; if (two + ...
[ "literal.number.change", "expression.operation.binary.change" ]
354,101
354,102
u833266881
cpp
p02640
#define _USE_MATH_DEFINES #include <algorithm> #include <cmath> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> //マクロ #define REP(i, n) for (int i = 0; i < (int)(n); ++i) #define REPS(i, n) for (int i = 1; i <= (int)(n); ++i)...
#define _USE_MATH_DEFINES #include <algorithm> #include <cmath> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> //マクロ #define REP(i, n) for (int i = 0; i < (int)(n); ++i) #define REPS(i, n) for (int i = 1; i <= (int)(n); ++i)...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
354,105
354,106
u539339654
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; int ans = 0; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = 0; j <= x; j++) { if (i + j <= x) { if (i * 4 + j * 2 == y) { ans = 1; break; } } } } if (ans) { cout << "...
#include <bits/stdc++.h> using namespace std; int main() { int x, y; int ans = 0; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = 0; j <= x; j++) { if (i + j == x) { if (i * 4 + j * 2 == y) { ans = 1; break; } } } } if (ans) { cout << "...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
354,109
354,110
u551636762
cpp
p02640
#include <bits/stdc++.h> using namespace std; ///------------input------------// #define fi freopen("in.txt", "r", stdin) #define fo freopen("out.txt", "w", stdout) #define sc1(a) scanf("%lld", &a) #define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c) #define sc2(a, b) scanf("%lld%lld", &a, &b) #define scar(arr, n) ...
#include <bits/stdc++.h> using namespace std; ///------------input------------// #define fi freopen("in.txt", "r", stdin) #define fo freopen("out.txt", "w", stdout) #define sc1(a) scanf("%lld", &a) #define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c) #define sc2(a, b) scanf("%lld%lld", &a, &b) #define scar(arr, n) ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
354,115
354,116
u631858281
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; i++) { if (i * 2 + (x - i) * 4 == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
354,117
354,118
u293072892
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define all(v) v.begin(), v.end() // int main() { int x, y; cin >> x >> y; rep(i, x + 1) { if (2 * i + 4 * (x - i) == y) { cout << "YES" << endl; return 0; } } cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define all(v) v.begin(), v.end() // int main() { int x, y; cin >> x >> y; rep(i, x + 1) { if (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
354,119
354,120
u168871820
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<int> vi; typedef vector<bool> vb; typedef vector<vl> vvl; typedef vector<vi> vvi; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<pll> vpll; typedef vector<pii> vpii; typedef vector<vpll> vvpl...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<int> vi; typedef vector<bool> vb; typedef vector<vl> vvl; typedef vector<vi> vvi; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<pll> vpll; typedef vector<pii> vpii; typedef vector<vpll> vvpl...
[ "control_flow.branch.if.condition.change" ]
354,121
354,122
u125797880
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<int> vi; typedef vector<bool> vb; typedef vector<vl> vvl; typedef vector<vi> vvi; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<pll> vpll; typedef vector<pii> vpii; typedef vector<vpll> vvpl...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<int> vi; typedef vector<bool> vb; typedef vector<vl> vvl; typedef vector<vi> vvi; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<pll> vpll; typedef vector<pii> vpii; typedef vector<vpll> vvpl...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
354,123
354,122
u125797880
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll mod = 1e9 + 0LL; ll MOD = 1e18 + 0LL; #define line printf("\n") double pi = acos(-1); ll md = 1000000007; ll gcd(ll a, ll b) { // if(b>a) swap(a,b); return b == 0 ? abs(a) : gcd(b, a % b); } ll poW(ll a, ll n) { if (n == 0) return 1; i...
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll mod = 1e9 + 0LL; ll MOD = 1e18 + 0LL; #define line printf("\n") double pi = acos(-1); ll md = 1000000007; ll gcd(ll a, ll b) { // if(b>a) swap(a,b); return b == 0 ? abs(a) : gcd(b, a % b); } ll poW(ll a, ll n) { if (n == 0) return 1; i...
[ "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
354,126
354,127
u425970024
cpp
p02640
#include <bits/stdc++.h> using namespace std; signed main() { int a, b; scanf("%d %d", &a, &b); int mn = a * 2, mx = a * 4; if (mn <= b && mx >= b && b % 2 == 0) puts("YES"); else puts("NO"); }
#include <bits/stdc++.h> using namespace std; signed main() { int a, b; scanf("%d %d", &a, &b); int mn = a * 2, mx = a * 4; if (mn <= b && mx >= b && b % 2 == 0) puts("Yes"); else puts("No"); }
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
354,133
354,134
u256074266
cpp
p02640
#include <iostream> #include <string> using namespace std; #define yes "Yes" #define no "No" // int m,n; // int i,j,k,l; // int a,b,c,d,e,f,g; // int sum,total; // long long int ; // float ; // double ; // char a[101],b[101],s[101],t[101],u[101]; int main() { int x, y, i, j, k; cin >> x; cin >> y; for (size_t ...
#include <iostream> #include <string> using namespace std; #define yes "Yes" #define no "No" // int m,n; // int i,j,k,l; // int a,b,c,d,e,f,g; // int sum,total; // long long int ; // float ; // double ; // char a[101],b[101],s[101],t[101],u[101]; int main() { int x, y, i, j, k; cin >> x; cin >> y; for (size_t ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
354,137
354,138
u643498479
cpp
p02640
#include <bits/stdc++.h> using namespace std; using ll = long long; const long long MOD_NUMBER = 1000000007; const double PI = 3.14159265358979323846; int main() { ll x, y; cin >> x >> y; if (4 * x < y || y % 2) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
#include <bits/stdc++.h> using namespace std; using ll = long long; const long long MOD_NUMBER = 1000000007; const double PI = 3.14159265358979323846; int main() { ll x, y; cin >> x >> y; if (4 * x < y || y % 2 || y < 2 * x) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[ "control_flow.branch.if.condition.change" ]
354,139
354,140
u742645282
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ull unsigned long long #define ll long long #define ld long double #define endl << "\n" #define sp << " " #define spp << " " << #define allv(v) v.begin(), v.end() #define lmax 9223372036854775807 #define lmin -9223372036854775807 #define lopi() for (i = 0; i < n; +...
#include <bits/stdc++.h> using namespace std; #define ull unsigned long long #define ll long long #define ld long double #define endl << "\n" #define sp << " " #define spp << " " << #define allv(v) v.begin(), v.end() #define lmax 9223372036854775807 #define lmin -9223372036854775807 #define lopi() for (i = 0; i < n; +...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
354,141
354,142
u262426239
cpp
p02640
// love yjl forever #include <bits/stdc++.h> using namespace std; #define ll long long #define pii pair<int, int> #define mp make_pair #define pb push_back #define fi first #define se second const int INF = 0x3f3f3f3f; int n, m; int main() { /* freopen("","r",stdin); freopen("","w",stdout);*/ int i; cin...
// love yjl forever #include <bits/stdc++.h> using namespace std; #define ll long long #define pii pair<int, int> #define mp make_pair #define pb push_back #define fi first #define se second const int INF = 0x3f3f3f3f; int n, m; int main() { /* freopen("","r",stdin); freopen("","w",stdout);*/ int i; cin...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
354,150
354,151
u186332581
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i <= (n); i++) using namespace std; int main() { int X, Y; cin >> X >> Y; bool flag = 0; rep(i, Y) { if (4 * X - 2 * i == Y) { int K = X - i; if (i + K == X) { flag = 1; } } } if (flag) { cout << "Yes" << endl;...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i <= (n); i++) using namespace std; int main() { int X, Y; cin >> X >> Y; bool flag = 0; rep(i, X) { if (4 * X - 2 * i == Y) { int K = X - i; if (i + K == X) { flag = 1; } } } if (flag) { cout << "Yes" << endl;...
[]
354,152
354,153
u572073783
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; int t = a * 2; int k = a * 4; if (b >= t && t <= k && 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; int t = a * 2; int k = a * 4; if (b >= t && b <= k && b % 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
354,156
354,157
u415208166
cpp