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> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 and y >= 2 * x and y <= 4 * x) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 and y >= 2 * x and y <= 4 * x) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,679
351,680
u780842576
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y, a, b; cin >> x >> y; b = y / 2 - x; a = x - b; if (a + b == x and 2 * a + 4 * b == y and a >= 0 and b >= 0) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y, a, b; cin >> x >> y; b = y / 2 - x; a = x - b; if (a + b == x and 2 * a + 4 * b == y and a >= 0 and b >= 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,681
351,682
u780842576
cpp
p02640
#include <iostream> using namespace std; #include <cstring> int main() { int x, y; cin >> x; cin >> y; string res = "NO"; for (int i = 0; i < x + 1; i++) { int j = x - i; if (2 * i + 4 * j == y) res = "YES"; } cout << res << endl; return 0; }
#include <iostream> using namespace std; #include <cstring> int main() { int x, y; cin >> x; cin >> y; string res = "No"; for (int i = 0; i < x + 1; i++) { int j = x - i; if (2 * i + 4 * j == y) res = "Yes"; } cout << res << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change", "assignment.value.change" ]
351,683
351,684
u368774751
cpp
p02640
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; #define int ll #define double ld #define repd(i, a, b) for (int i = a; i < int(b); i++) #define rep(i, n) repd(i, 0, n) #define VARNAME(v) #v using P = pair<int, int>; // constexpr int MOD = 1000000007; constexpr int MOD = 9982...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; #define int ll #define double ld #define repd(i, a, b) for (int i = a; i < int(b); i++) #define rep(i, n) repd(i, 0, n) #define VARNAME(v) #v using P = pair<int, int>; // constexpr int MOD = 1000000007; constexpr int MOD = 9982...
[ "preprocessor.define.value.change" ]
351,685
351,686
u317754719
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(int argc, char const *argv[]) { int a, b; cin >> a >> b; string ans = "No"; for (int i = 0; i < a; i++) if (4 * i + 2 * (a - i) == b) { ans = "Yes"; break; } cout << ans; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(int argc, char const *argv[]) { int a, b; cin >> a >> b; string ans = "No"; for (int i = 0; i <= a; i++) if (4 * i + 2 * (a - i) == b) { ans = "Yes"; break; } cout << ans; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
351,703
351,704
u466037621
cpp
p02640
#include <iostream> using namespace std; int main() { int a, b, k, l, fl = 0; cin >> k >> l; if (k * 2 > l || k * 4 < l) { cout << "no" << endl; return 0; } if (k * 2 == l || k * 4 == l) { cout << "yes" << endl; return 0; } for (int i = 1; i < k; i++) { if ((i * 2 + (k - i) * 4) ==...
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. ******************************************...
[ "variable_declaration.remove", "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,705
351,706
u247728978
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (4 * x < y || y & 1) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (4 * x < y || y & 1 || 2 * x > y) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
[ "control_flow.branch.if.condition.change" ]
351,715
351,716
u024869527
cpp
p02640
#include <algorithm> #include <cfloat> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; #define ll long long #define rep(i, n) for (int...
#include <algorithm> #include <cfloat> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; #define ll long long #define rep(i, n) for (int...
[ "control_flow.branch.if.condition.change" ]
351,722
351,723
u782290921
cpp
p02640
#include <bits/stdc++.h> #define pi acos(-1) #define ll long long #define pii pair<ll, ll> #define debug(a) cout << a << '\n' #define maxn 100009 /// leave to tomorrow anything that can be done today #define MOD 1000000007 #define F first #define S second #define rep(i, a, b) for (ll i = a; i < (b); ++i) #define per(i,...
#include <bits/stdc++.h> #define pi acos(-1) #define ll long long #define pii pair<ll, ll> #define debug(a) cout << a << '\n' #define maxn 100009 /// leave to tomorrow anything that can be done today #define MOD 1000000007 #define F first #define S second #define rep(i, a, b) for (ll i = a; i < (b); ++i) #define per(i,...
[ "literal.number.change", "control_flow.loop.condition.change" ]
351,724
351,725
u371493016
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (2 * x <= y && y <= 4 * x && y % 2 == 0) { cout << "yes\n"; } else { cout << "No\n"; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (2 * x <= y && y <= 4 * x && y % 2 == 0) { cout << "Yes\n"; } else { cout << "No\n"; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,730
351,731
u358493458
cpp
p02640
// Problem : B - Crane and Turtle // Contest : AtCoder - AtCoder Beginner Contest 170 // URL : https://atcoder.jp/contests/abc170/tasks/abc170_b // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> #define pb push_back #define fi fi...
// Problem : B - Crane and Turtle // Contest : AtCoder - AtCoder Beginner Contest 170 // URL : https://atcoder.jp/contests/abc170/tasks/abc170_b // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> #define pb push_back #define fi fi...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
351,734
351,735
u962241803
cpp
p02640
// Problem : B - Crane and Turtle // Contest : AtCoder - AtCoder Beginner Contest 170 // URL : https://atcoder.jp/contests/abc170/tasks/abc170_b // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> #define pb push_back #define fi fi...
// Problem : B - Crane and Turtle // Contest : AtCoder - AtCoder Beginner Contest 170 // URL : https://atcoder.jp/contests/abc170/tasks/abc170_b // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> #define pb push_back #define fi fi...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
351,736
351,735
u962241803
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; long long test_cases; int main() { ios_base::sync_with_stdio(0); cin.tie(NULL); cout.tie(NULL); /* cin >> test_cases; */ test_cases = 1; int c = 0, t; while (test_cases > 0) { int x, y; cin >> x >> y; t = x; for (i...
#include <bits/stdc++.h> using namespace std; typedef long long ll; long long test_cases; int main() { ios_base::sync_with_stdio(0); cin.tie(NULL); cout.tie(NULL); /* cin >> test_cases; */ test_cases = 1; int c = 0, t; while (test_cases > 0) { int x, y; cin >> x >> y; t = x; for (i...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,744
351,745
u393462737
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y > x * 4) cout << "No"; else if ((x * 4 - y) % 2) cout << "No"; else cout << "Yes"; cout << endl; return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y > x * 4 || x * 2 > y) cout << "No"; else if ((x * 4 - y) % 2) cout << "No"; else cout << "Yes"; cout << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
351,746
351,747
u356319861
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); // int t; // cin>>t; // while(t--) // { // } int x, y; cin >> x >> y; string ans = "Yes"; if (y % 2 == 1) ans = 'No'; int mi = 2 * x; int ma = 4 * x; ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); // int t; // cin>>t; // while(t--) // { // } int x, y; cin >> x >> y; string ans = "Yes"; if (y % 2 == 1) ans = "No"; int mi = 2 * x; int ma = 4 * x; ...
[ "literal.string.change", "assignment.value.change" ]
351,748
351,749
u361215067
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; string ans = "NO"; for (int i = 0; i <= x; i++) { if (i * 2 + (x - i) * 4 == y) { ans = "YES"; } } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; string ans = "No"; for (int i = 0; i <= x; i++) { if (i * 2 + (x - i) * 4 == y) { ans = "Yes"; } } cout << ans << endl; }
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change", "assignment.value.change" ]
351,756
351,757
u867826040
cpp
p02640
/* TAHMID RAHMAN DAMIAN FOREVER MATH LOVER NEVER GIVE UP */ #include <bits/stdc++.h> using namespace std; #define pi acos(-1.0) #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL);...
/* TAHMID RAHMAN DAMIAN FOREVER MATH LOVER NEVER GIVE UP */ #include <bits/stdc++.h> using namespace std; #define pi acos(-1.0) #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL);...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,764
351,765
u798415825
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= 100; i++) { int a = x - i; if (a >= 0) { if (i * 2 + a * 4 == 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 <= 100; i++) { int a = x - i; if (a >= 0) { if (i * 2 + a * 4 == y) { cout << "Yes" << endl; return 0; } } } cout << "No" << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,766
351,767
u511283570
cpp
p02640
#include <bits/stdc++.h> using namespace std; #ifdef _LOCAL // #define dout cout #define debug() if (true) #define dvout(v) vout(v) #else #define dout \ if (false) \ cout #define debug...
#include <bits/stdc++.h> using namespace std; #ifdef _LOCAL // #define dout cout #define debug() if (true) #define dvout(v) vout(v) #else #define dout \ if (false) \ cout #define debug...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,768
351,769
u111937495
cpp
p02640
#include <iostream> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; int y2 = y / 2; if (y & 1 == 0 && (y2 >= x) && (y2 <= x * 2)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; int y2 = y / 2; if (((y & 1) == 0) && (y2 >= x) && (y2 <= x * 2)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "control_flow.branch.if.condition.change" ]
351,772
351,773
u396733516
cpp
p02640
/* _oo0oo_ o8888888o 88" . "88 (| -_- |) 0\ = /0 ___/`---'\___ .' \\| |// '. / \\||| : |||// \ / _||||| -:- |||||- \ ...
/* _oo0oo_ o8888888o 88" . "88 (| -_- |) 0\ = /0 ___/`---'\___ .' \\| |// '. / \\||| : |||// \ / _||||| -:- |||||- \ ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
351,774
351,775
u883647605
cpp
p02640
/* _oo0oo_ o8888888o 88" . "88 (| -_- |) 0\ = /0 ___/`---'\___ .' \\| |// '. / \\||| : |||// \ / _||||| -:- |||||- \ ...
/* _oo0oo_ o8888888o 88" . "88 (| -_- |) 0\ = /0 ___/`---'\___ .' \\| |// '. / \\||| : |||// \ / _||||| -:- |||||- \ ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "control_flow.branch.if.condition.change" ]
351,776
351,775
u883647605
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int c = (4 * x) - y; int t = y - (2 * x); if (c < 0 || t < 0 || c % 2 || t % 2) cout << "NO"; else cout << "YES"; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int c = (4 * x) - y; int t = y - (2 * x); if (c < 0 || t < 0 || c % 2 || t % 2) cout << "No"; else cout << "Yes"; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,779
351,780
u605985743
cpp
p02640
#include <iostream> using namespace std; int main() { int X, Y; int turu, kame; bool flag = false; cin >> X >> Y; for (int i = 0; i <= 100; i++) { turu = i; kame = X - i; if (turu * 2 + kame * 4 == Y) { flag = true; } } if (flag) { cout << "Yes" << endl; } else { cout <...
#include <iostream> using namespace std; int main() { int X, Y; int turu, kame; bool flag = false; cin >> X >> Y; for (int i = 0; i <= 100; i++) { turu = i; kame = X - i; if (turu * 2 + kame * 4 == Y && kame >= 0) { flag = true; } } if (flag) { cout << "Yes" << endl; } else...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
351,785
351,786
u124083982
cpp
p02640
#include <bits/stdc++.h> typedef long long ll; #define forn(i, start, end) for (ll i = start; i < ll(end); i++) #define input(arr, n) forn(i, 0, n) cin >> arr[i]; #define MOD 1000000007 #define vll vector<ll> #define vpll vector<pair<ll, ll>> #define vvll vector<vector<ll>> #define mll map<ll, ll> #define mcl map<char,...
#include <bits/stdc++.h> typedef long long ll; #define forn(i, start, end) for (ll i = start; i < ll(end); i++) #define input(arr, n) forn(i, 0, n) cin >> arr[i]; #define MOD 1000000007 #define vll vector<ll> #define vpll vector<pair<ll, ll>> #define vvll vector<vector<ll>> #define mll map<ll, ll> #define mcl map<char,...
[ "control_flow.branch.if.condition.change", "identifier.change" ]
351,789
351,790
u137978751
cpp
p02640
#include <bits/stdc++.h> typedef long long ll; #define forn(i, start, end) for (ll i = start; i < ll(end); i++) #define input(arr, n) forn(i, 0, n) cin >> arr[i]; #define MOD 1000000007 #define vll vector<ll> #define vpll vector<pair<ll, ll>> #define vvll vector<vector<ll>> #define mll map<ll, ll> #define mcl map<char,...
#include <bits/stdc++.h> typedef long long ll; #define forn(i, start, end) for (ll i = start; i < ll(end); i++) #define input(arr, n) forn(i, 0, n) cin >> arr[i]; #define MOD 1000000007 #define vll vector<ll> #define vpll vector<pair<ll, ll>> #define vvll vector<vector<ll>> #define mll map<ll, ll> #define mcl map<char,...
[ "literal.number.change", "call.arguments.change", "control_flow.branch.if.condition.change", "identifier.change" ]
351,791
351,790
u137978751
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; (y % 2 == 0 && y > 2 * x && 4 * x > y) ? cout << "Yes" : cout << "No"; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; (y % 2 == 0 && y >= 2 * x && 4 * x >= y) ? cout << "Yes" : cout << "No"; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
351,792
351,793
u563054590
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define PI 3.14159265 #define pb push_back #define pr pair<int, int> using namespace std; using ll = long long; // using mod = 1000000000 + 7; void self_max(int &a, int b) { a = max(a, b); } void self_min(int &a, int b) { a = min(a, b); } int mai...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define PI 3.14159265 #define pb push_back #define pr pair<int, int> using namespace std; using ll = long long; // using mod = 1000000000 + 7; void self_max(int &a, int b) { a = max(a, b); } void self_min(int &a, int b) { a = min(a, b); } int mai...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
351,794
351,795
u366686355
cpp
p02640
// Crane and Turtle #include <bits/stdc++.h> #include <chrono> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #define endl "\n" #define ll long long int #define vi vector<int> #define vll vector<ll> #define vvi vector<vi> #define pii pair<int, int> #define pll pair<long long, long long> #defi...
// Crane and Turtle #include <bits/stdc++.h> #include <chrono> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #define endl "\n" #define ll long long int #define vi vector<int> #define vll vector<ll> #define vvi vector<vi> #define pii pair<int, int> #define pll pair<long long, long long> #defi...
[ "literal.number.change", "expression.operation.binary.change" ]
351,800
351,801
u127643144
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl "\n...
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl "\n...
[ "control_flow.branch.if.condition.change" ]
351,812
351,813
u499347398
cpp
p02640
#include <cstdlib> #include <iostream> #include <vector> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int s = 0; s < X; s++) { int t = X - s; int foot = 2 * s + 4 * t; if (foot == Y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
#include <cstdlib> #include <iostream> #include <vector> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int s = 0; s <= X; s++) { int t = X - s; int foot = 2 * s + 4 * t; if (foot == 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" ]
351,814
351,815
u497004546
cpp
p02640
#include <iostream> using namespace std; int main(void) { // Your code here! int head; int leg; int ans = 0; cin >> head >> leg; for (int i = 0; i <= head; i++) { if (head * i + 2 * (head - i) == leg) { ans = 1; } } if (ans == 1) { cout << "Yes" << endl; } else { cout << "No" << ...
#include <iostream> using namespace std; int main(void) { // Your code here! int head; int leg; int ans = 0; cin >> head >> leg; for (int i = 0; i <= head; i++) { if (2 * i + 4 * (head - i) == leg) { ans = 1; } } if (ans == 1) { cout << "Yes" << endl; } else { cout << "No" << end...
[ "identifier.replace.remove", "literal.replace.add", "control_flow.branch.if.condition.change", "literal.number.change" ]
351,820
351,821
u586244382
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if ((y >= 2 * x) && (y <= 3 * x) && (y % 2 == 0)) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if ((y >= 2 * x) && (y <= 4 * x) && (y % 2 == 0)) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
351,822
351,823
u250039279
cpp
p02640
#include <bits/stdc++.h> using namespace std; // template {{{ #define pb push_back #define eb emplace_back #define mp make_pair #define mt make_tuple #define lb lower_bound #define ub upper_bound #define resz resize #define deb(x) cout << #x << " " << x << endl #define f first #define s second #define u_s unordered_se...
#include <bits/stdc++.h> using namespace std; // template {{{ #define pb push_back #define eb emplace_back #define mp make_pair #define mt make_tuple #define lb lower_bound #define ub upper_bound #define resz resize #define deb(x) cout << #x << " " << x << endl #define f first #define s second #define u_s unordered_se...
[ "expression.operation.binary.remove", "identifier.change", "expression.operation.binary.change" ]
351,824
351,825
u071391111
cpp
p02640
#include <bits/stdc++.h> using namespace std; // template {{{ #define pb push_back #define eb emplace_back #define mp make_pair #define mt make_tuple #define lb lower_bound #define ub upper_bound #define resz resize #define deb(x) cout << #x << " " << x << endl #define f first #define s second #define u_s unordered_se...
#include <bits/stdc++.h> using namespace std; // template {{{ #define pb push_back #define eb emplace_back #define mp make_pair #define mt make_tuple #define lb lower_bound #define ub upper_bound #define resz resize #define deb(x) cout << #x << " " << x << endl #define f first #define s second #define u_s unordered_se...
[ "literal.number.change", "variable_declaration.value.change", "identifier.change", "expression.operation.binary.change" ]
351,827
351,825
u071391111
cpp
p02640
#include <iostream> using namespace std; int main(void) { int x, y; bool ans = false; cin >> x >> y; for (int i = 0; i < x; i++) { int k = x - i; if (i * 4 + k * 2 == y) { ans = true; } } if (ans) { cout << "Yes"; } else { cout << "No"; } return 0; }
#include <iostream> using namespace std; int main(void) { int x, y; bool ans = false; cin >> x >> y; for (int i = 0; i < x + 1; i++) { int k = x - i; if (i * 4 + k * 2 == y) { ans = true; } } if (ans) { cout << "Yes"; } else { cout << "No"; } return 0; }
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
351,836
351,837
u155015123
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 != 0) { cout << "NO" << endl; return 0; } if ((y >= 2 * x) and (y <= 4 * x)) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 != 0) { cout << "No" << endl; return 0; } if ((y >= 2 * x) and (y <= 4 * x)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,861
351,862
u820842983
cpp
p02640
#include <bits/stdc++.h> #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define all(x) (x).begin(), (x).end()...
#include <bits/stdc++.h> #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define all(x) (x).begin(), (x).end()...
[ "control_flow.branch.if.condition.change", "control_flow.break.remove", "control_flow.return.add" ]
351,868
351,869
u215674898
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x; cin >> y; if (y % 2 != 0 || y / 2 > x || x * 4 < y) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x; cin >> y; if (y % 2 != 0 || x * 2 > y || x * 4 < y) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
351,870
351,871
u113315380
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; double a = (Y - 2 * X) / 2, b = X - a; if (ceil(a) == floor(a) && ceil(b) == floor(b) && a <= X && b <= X && a >= 0 && b >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { double X, Y; cin >> X >> Y; double a = (Y - 2 * X) / 2, b = X - a; if (ceil(a) == floor(a) && ceil(b) == floor(b) && a <= X && b <= X && a >= 0 && b >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "variable_declaration.type.primitive.change" ]
351,874
351,875
u702364437
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; double a = (Y - 2 * X) / 2, b = X - a; if (ceil(a) == floor(a) && ceil(b) == floor(b) && a <= X, b <= X && a >= 0, b >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { double X, Y; cin >> X >> Y; double a = (Y - 2 * X) / 2, b = X - a; if (ceil(a) == floor(a) && ceil(b) == floor(b) && a <= X && b <= X && a >= 0 && b >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "variable_declaration.type.primitive.change", "control_flow.branch.if.condition.change" ]
351,876
351,875
u702364437
cpp
p02640
/* ID: sixathofpain TASK: friday LANG: C++ */ //#pragma GCC optimize("Ofast") //#pragma GCC optimize ("unroll-loops") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using ...
/* ID: sixathofpain TASK: friday LANG: C++ */ //#pragma GCC optimize("Ofast") //#pragma GCC optimize ("unroll-loops") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using ...
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
351,880
351,881
u692657943
cpp
p02640
/* ID: sixathofpain TASK: friday LANG: C++ */ //#pragma GCC optimize("Ofast") //#pragma GCC optimize ("unroll-loops") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using ...
/* ID: sixathofpain TASK: friday LANG: C++ */ //#pragma GCC optimize("Ofast") //#pragma GCC optimize ("unroll-loops") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using ...
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,882
351,881
u692657943
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long #define ar array #define OJ \ freopen("input.txt", "r", stdin); \ freopen("output.txt", "w", stdout); #define endl "\n" int main() { /...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ar array #define OJ \ freopen("input.txt", "r", stdin); \ freopen("output.txt", "w", stdout); #define endl "\n" int main() { /...
[]
351,889
351,890
u452364593
cpp
p02640
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define sz(x) (int)((x).size()) #define debug(x) cout << #x << ":" << x << ' '; #define debugg(x) cout << #x << ":" << x << ' ' << "\n"; #define endl "\n" #define L(X) ((X) << 1) #define R(X) (((X) << 1) | 1) #define...
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define sz(x) (int)((x).size()) #define debug(x) cout << #x << ":" << x << ' '; #define debugg(x) cout << #x << ":" << x << ' ' << "\n"; #define endl "\n" #define L(X) ((X) << 1) #define R(X) (((X) << 1) | 1) #define...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
351,894
351,895
u514812122
cpp
p02640
#include <bits/stdc++.h> using namespace std; #include <math.h> template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } const int INF = 1001001001; vector<pair<...
#include <bits/stdc++.h> using namespace std; #include <math.h> template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } const int INF = 1001001001; vector<pair<...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
351,896
351,897
u209457657
cpp
p02640
#include <cstdio> #include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (x * 2 <= y && x * 4 >= y && y % 2 == 0) { cout << "yes"; } else { cout << "no"; } return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (x * 2 <= y && x * 4 >= y && y % 2 == 0) { cout << "Yes"; } else { cout << "No"; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,898
351,899
u080435490
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define pi 3.1415926536 #define pb push_back #define N 1000000007 #define M 998244353 #define rep(i, a, b) for (int i = a; i <= b; i++) #define nrep(i, a, b) for (int i = a; i >= b; i--) int main() { ll t, i, j, l, h, n, x, k,...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define pi 3.1415926536 #define pb push_back #define N 1000000007 #define M 998244353 #define rep(i, a, b) for (int i = a; i <= b; i++) #define nrep(i, a, b) for (int i = a; i >= b; i--) int main() { ll t, i, j, l, h, n, x, k,...
[ "literal.number.change", "control_flow.branch.if.condition.change", "assignment.value.change", "expression.operation.binary.change" ]
351,904
351,905
u277114826
cpp
p02640
#include <iostream> int main() { int X, Y; std::cin >> X >> Y; for (int a = 0, b = X; a <= X; a++, b = b - 1) { if (Y == 4 * b + 2 * a) { std::cout << "Yes" << std::endl; return 0; } } std::cout << "NO" << std::endl; }
#include <iostream> int main() { int X, Y; std::cin >> X >> Y; for (int a = 0, b = X; a <= X; a++, b = b - 1) { if (Y == 4 * b + 2 * a) { std::cout << "Yes" << std::endl; return 0; } } std::cout << "No" << std::endl; }
[ "literal.string.change", "literal.string.case.change", "expression.operation.binary.change" ]
351,908
351,909
u490440070
cpp
p02640
#include <bits/stdc++.h> using namespace std; const int MaxX = 1e2; const int MaxY = 1e2; int main() { int X, Y, a, b; scanf("%d %d\n", &X, &Y); a = Y - (X << 1); b = X - (a >> 1); puts((a & 1 == 0 and a >= 0 and b >= 0) ? "Yes" : "No"); }
#include <bits/stdc++.h> using namespace std; const int MaxX = 1e2; const int MaxY = 1e2; int main() { int X, Y, a, b; scanf("%d %d\n", &X, &Y); b = Y - (X << 1); a = X - (b >> 1); puts(((b & 1) == 0 and a >= 0 and b >= 0) ? "Yes" : "No"); }
[ "assignment.variable.change", "identifier.change", "assignment.value.change", "expression.operation.binary.change", "control_flow.loop.for.condition.change", "call.arguments.change", "io.output.change" ]
351,910
351,911
u570506120
cpp
p02640
#include <bits/stdc++.h> using namespace std; void t(string a); int main() { bool istrue = false; int c, f; cin >> c >> f; cerr << c << f << endl; // if(f%2 == 1 || f > c*4 ) istrue = false;//奇数・足が多すぎるなら終了 for (int i = 0; i <= c; i++) { //動物の数だけ試行 cerr << i << c << f << endl; //亀 if (f / (i ...
#include <bits/stdc++.h> using namespace std; void t(string a); int main() { bool istrue = false; int c, f; cin >> c >> f; cerr << c << f << endl; // if(f%2 == 1 || f > c*4 ) istrue = false;//奇数・足が多すぎるなら終了 for (int i = 0; i <= c; i++) { //動物の数だけ試行 cerr << i << c << f << endl; //亀 if ((i * 4 ...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
351,912
351,913
u657465456
cpp
p02640
#include <bits/stdc++.h> using namespace std; void t(string a); int main() { bool istrue = false; int c, f; cin >> c >> f; cerr << c << f << endl; // if(f%2 == 1 || f > c*4 ) istrue = false;//奇数・足が多すぎるなら終了 for (int i = 0; i <= c; i++) { //動物の数だけ試行 cerr << i << c << f << endl; //亀 if (f % (i ...
#include <bits/stdc++.h> using namespace std; void t(string a); int main() { bool istrue = false; int c, f; cin >> c >> f; cerr << c << f << endl; // if(f%2 == 1 || f > c*4 ) istrue = false;//奇数・足が多すぎるなら終了 for (int i = 0; i <= c; i++) { //動物の数だけ試行 cerr << i << c << f << endl; //亀 if ((i * 4 ...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
351,914
351,913
u657465456
cpp
p02640
#include <bits/stdc++.h> using namespace std; void t(string a); int main() { bool istrue = false; int c, f; cin >> c >> f; cerr << c << f << endl; // if(f%2 == 1 || f > c*4 ) istrue = false;//奇数・足が多すぎるなら終了 for (int i = 0; i <= c; i++) { //動物の数だけ試行 cerr << i << c << f << endl; //亀 if ((i * 4 ...
#include <bits/stdc++.h> using namespace std; void t(string a); int main() { bool istrue = false; int c, f; cin >> c >> f; cerr << c << f << endl; // if(f%2 == 1 || f > c*4 ) istrue = false;//奇数・足が多すぎるなら終了 for (int i = 0; i <= c; i++) { //動物の数だけ試行 cerr << i << c << f << endl; //亀 if ((i * 4 ...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
351,915
351,913
u657465456
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X; int Y; cin >> X; cin >> Y; if (Y % 2 == 1) { cout << "No"; } else { if (Y > X * 2 && Y < X * 4) { cout << "Yes"; } else { cout << "No"; } } }
#include <bits/stdc++.h> using namespace std; int main() { int X; int Y; cin >> X; cin >> Y; if (Y % 2 == 1) { cout << "No"; } else { if (Y >= X * 2 && Y <= X * 4) { cout << "Yes"; } else { cout << "No"; } } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
351,916
351,917
u783598783
cpp
p02640
#include <bits/stdc++.h> #define ll long long #define MOD = 1e9 + 7 #define rep(i, n) for (int i = 0; i < (n); ++i) const double PI = 3.14159265358979323846; const int INF = 1001001001; using namespace std; int main() { int x, y; cin >> x >> y; rep(i, x) { if (y % 2 == 0) { if (2 * i + (x - i) == y / 2...
#include <bits/stdc++.h> #define ll long long #define MOD = 1e9 + 7 #define rep(i, n) for (int i = 0; i < (n); ++i) const double PI = 3.14159265358979323846; const int INF = 1001001001; using namespace std; int main() { int x, y; cin >> x >> y; rep(i, x + 1) { if (y % 2 == 0) { if (2 * i + (x - i) == y...
[ "expression.operation.binary.add" ]
351,923
351,924
u100297771
cpp
p02640
#include <iostream> 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) { puts("Yes"); return 0; } } puts("No"); return 0; }
#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) { puts("Yes"); return 0; } } puts("No"); return 0; }
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
351,929
351,930
u058720266
cpp
p02640
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> //#include<bits/stdc++.h> #define ll long long int #define ull unsigned long long int #define I(a) scanf("%d", &a) #define I2(a, b) scanf("%d%d", &a, &b) #defi...
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> //#include<bits/stdc++.h> #define ll long long int #define ull unsigned long long int #define I(a) scanf("%d", &a) #define I2(a, b) scanf("%d%d", &a, &b) #defi...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
351,931
351,932
u449403739
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define rep(i, a, n) for (int i = (a); i < (n); i++) #define per(i, a, n) for (int i = (n)-1; i >= (a); i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() #define fi first #define se second #define SZ(x) ((int)(x).size()) typedef vector<int...
#include <bits/stdc++.h> using namespace std; #define rep(i, a, n) for (int i = (a); i < (n); i++) #define per(i, a, n) for (int i = (n)-1; i >= (a); i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() #define fi first #define se second #define SZ(x) ((int)(x).size()) typedef vector<int...
[ "literal.number.change", "call.arguments.change" ]
351,935
351,936
u333759455
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long int ll; void solve() { int n, m; cin >> n >> m; for (int i = 1; i < n; i++) { if (i * 2 + (n - i) * 4 == m) { cout << "Yes"; return; } } cout << "No"; } int main() { ios_base::sync_with_stdio(false); cin.tie(0); // f(...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; void solve() { int n, m; cin >> n >> m; for (int i = 0; i <= n; i++) { if (i * 2 + (n - i) * 4 == m) { cout << "Yes"; return; } } cout << "No"; } int main() { ios_base::sync_with_stdio(false); cin.tie(0); // f...
[ "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" ]
351,937
351,938
u718709194
cpp
p02640
#include <bits/stdc++.h> // pbds #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; template <typename T> using orderedSet = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; typedef long long ll; //#define fisier...
#include <bits/stdc++.h> // pbds #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; template <typename T> using orderedSet = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; typedef long long ll; //#define fisier...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,947
351,948
u883921263
cpp
p02640
#include <bits/stdc++.h> #define ll long long int #define ld long double #define pii pair<int, int> #define pll pair<ll, ll> #define vi vector<int> #define vii vector<pii> #define vl vector<ll> #define vll vector<pll> #define setbits(x) __builtin_popcountll(x) #define f(i, l, r) for (ll i = l; i < r; i++) #define d(i, ...
#include <bits/stdc++.h> #define ll long long int #define ld long double #define pii pair<int, int> #define pll pair<ll, ll> #define vi vector<int> #define vii vector<pii> #define vl vector<ll> #define vll vector<pll> #define setbits(x) __builtin_popcountll(x) #define f(i, l, r) for (ll i = l; i < r; i++) #define d(i, ...
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
351,949
351,950
u003252979
cpp
p02640
#include <algorithm> #include <cmath> #include <iostream> #include <vector> using namespace std; #define endl "\n" #define ll long long #define MOD 1000000007 #define OJ \ freopen("input.txt", "r", stdin); ...
#include <algorithm> #include <cmath> #include <iostream> #include <vector> using namespace std; #define endl "\n" #define ll long long #define MOD 1000000007 #define OJ \ freopen("input.txt", "r", stdin); ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
351,957
351,958
u201693368
cpp
p02640
#include <bits/stdc++.h> using namespace std; template <typename T> ostream &operator<<(ostream &os, const vector<T> &v) { os << '{'; string sep; for (const auto &x : v) os << sep << x, sep = ", "; return os << '}'; } template <typename T, size_t size> ostream &operator<<(ostream &os, const array<T, size> ...
#include <bits/stdc++.h> using namespace std; template <typename T> ostream &operator<<(ostream &os, const vector<T> &v) { os << '{'; string sep; for (const auto &x : v) os << sep << x, sep = ", "; return os << '}'; } template <typename T, size_t size> ostream &operator<<(ostream &os, const array<T, size> ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
351,961
351,962
u275995683
cpp
p02640
// https://atcoder.jp/contests/abc170/tasks/abc170_b #include <bits/stdc++.h> using namespace std; #define int long long #define REP(i, n) FOR(i, 0, n) #define REPR(i, n) for (int i = n - 1; i >= 0; i--) #define FOR(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; ++i) #define ALL(obj) (obj).begin(), (obj).end() ...
// https://atcoder.jp/contests/abc170/tasks/abc170_b #include <bits/stdc++.h> using namespace std; #define int long long #define REP(i, n) FOR(i, 0, n) #define REPR(i, n) for (int i = n - 1; i >= 0; i--) #define FOR(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; ++i) #define ALL(obj) (obj).begin(), (obj).end() ...
[ "identifier.change", "call.function.change", "call.arguments.change" ]
351,973
351,974
u858107870
cpp
p02640
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; #define mp make_pair #define pb push_back #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define int int64_t #define watch(x) cout << (#x) << " is " << (x) << endl const int32_t MAX = 1e9...
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; #define mp make_pair #define pb push_back #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define int int64_t #define watch(x) cout << (#x) << " is " << (x) << endl const int32_t MAX = 1e9...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
351,975
351,976
u627815319
cpp
p02640
#include <algorithm> #include <cctype> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <regex> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) typedef int long long ll;...
#include <algorithm> #include <cctype> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <regex> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) typedef int long long ll;...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
351,977
351,978
u031448582
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> p; const int inf = (1 << 30); #define rep(i, a, n) for (int i = a; i < n; i++) #define rrep(i, a, n) for (int i = (a - 1); i >= n; i--) int main() { ll a, b; cin >> a >> b; rep(i, 1, a + 1) { if (2 * i + 4 * (a - i) == b)...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> p; const int inf = (1 << 30); #define rep(i, a, n) for (int i = a; i < n; i++) #define rrep(i, a, n) for (int i = (a - 1); i >= n; i--) int main() { ll a, b; cin >> a >> b; rep(i, 0, a + 1) { if (2 * i + 4 * (a - i) == b)...
[ "literal.number.change", "call.arguments.change" ]
351,979
351,980
u075865455
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) // mst,pq,mp,st,q #include <bits/stdc++.h> using namespace s...
// 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) // mst,pq,mp,st,q #include <bits/stdc++.h> using namespace s...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
351,983
351,984
u702142173
cpp
p02640
#include <bits/stdc++.h> typedef long long int ll; typedef unsigned long long int ull; #define BIG_NUM 2000000000 #define HUGE_NUM 1000000000000000000 #define MOD 1000000007 #define EPS 0.000000001 using namespace std; int main() { int X, Y; scanf("%d %d", &X, &Y); for (int a = 0; a <= X; a++) { if (a * 2 ...
#include <bits/stdc++.h> typedef long long int ll; typedef unsigned long long int ull; #define BIG_NUM 2000000000 #define HUGE_NUM 1000000000000000000 #define MOD 1000000007 #define EPS 0.000000001 using namespace std; int main() { int X, Y; scanf("%d %d", &X, &Y); for (int a = 0; a <= X; a++) { if (a * 2 ...
[]
351,994
351,995
u000022466
cpp
p02640
#include <algorithm> #include <cmath> #include <deque> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; using ll = long long; using ld = long double; const ll MOD = 998244353; const ld PI = ac...
#include <algorithm> #include <cmath> #include <deque> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; using ll = long long; using ld = long double; const ll MOD = 998244353; const ld PI = ac...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
351,996
351,997
u492288342
cpp
p02640
#include <bits/stdc++.h> using namespace std; using UL = unsigned int; using ULL = unsigned long long; using LL = long long; #define rep(i, n) for (UL i = 0; i < (n); i++) int main() { UL X, Y; cin >> X >> Y; bool ok = true; if (Y % 2) ok = false; if (Y < X * 2) ok = false; if (Y > X * 2) ok =...
#include <bits/stdc++.h> using namespace std; using UL = unsigned int; using ULL = unsigned long long; using LL = long long; #define rep(i, n) for (UL i = 0; i < (n); i++) int main() { UL X, Y; cin >> X >> Y; bool ok = true; if (Y % 2) ok = false; if (Y < X * 2) ok = false; if (Y > X * 4) ok =...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
351,998
351,999
u331948661
cpp
p02640
#include <bits/stdc++.h> #define INF 1e9 using namespace std; #define REPR(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, m, n) for (int i = (m); i < (n); ++i) #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define ALL(a) (a).begin(), (a).end() #define endl "\n" template <class T> bool chmin(...
#include <bits/stdc++.h> #define INF 1e9 using namespace std; #define REPR(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, m, n) for (int i = (m); i < (n); ++i) #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define ALL(a) (a).begin(), (a).end() #define endl "\n" template <class T> bool chmin(...
[ "expression.operation.binary.remove" ]
352,002
352,003
u492030100
cpp
p02640
#include <bits/stdc++.h> #define INF 1e9 using namespace std; #define REPR(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, m, n) for (int i = (m); i < (n); ++i) #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define ALL(a) (a).begin(), (a).end() #define endl "\n" template <class T> bool chmin(...
#include <bits/stdc++.h> #define INF 1e9 using namespace std; #define REPR(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, m, n) for (int i = (m); i < (n); ++i) #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define ALL(a) (a).begin(), (a).end() #define endl "\n" template <class T> bool chmin(...
[ "expression.operation.binary.remove" ]
352,004
352,003
u492030100
cpp
p02640
#include <iostream> using namespace std; #define MAX 100 int main(void) { int X, Y; cin >> X >> Y; // crane for (int i = 0; i <= 50; i++) { // turtle for (int j = 0; j <= 20; j++) { if (i + j == X && 2 * i + 4 * j == Y) { cout << "Yes" << endl; } } } cout << "No" << endl; ...
#include <iostream> using namespace std; #define MAX 100 int main(void) { int X, Y; cin >> X >> Y; // crane for (int i = 0; i <= 50; i++) { // turtle for (int j = 0; j <= 25; j++) { if (i + j == X && 2 * i + 4 * j == Y) { cout << "Yes" << endl; return 0; } } } cout ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.return.add", "control_flow.return.0.add" ]
352,019
352,018
u366169644
cpp
p02640
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { int x, y; cin >> x; cin >> y; for (int i = 0; i < x; i++) { for (int j = 0; j < y; j++) { if ((i + j == x) && (2 * i + 4 * j == y)) { cout << "Yes"; return 0; } } } cout << "No"; return...
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { int x, y; cin >> x; cin >> y; for (int i = 0; i <= x; i++) { for (int j = 0; j <= y; j++) { if ((i + j == x) && (2 * i + 4 * j == y)) { cout << "Yes"; return 0; } } } cout << "No"; retu...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
352,022
352,023
u314395569
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using LL = long long; using P = pair<int, int>; int main() { int x, y; cin >> x >> y; bool ans = false; rep(i, y / 2) { if (i * 2 + (x - i) * 4 == y) ans = true; } if (ans) cout << "Yes" << endl...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using LL = long long; using P = pair<int, int>; int main() { int x, y; cin >> x >> y; bool ans = false; rep(i, x + 1) { if (i * 2 + (x - i) * 4 == y) ans = true; } if (ans) cout << "Yes" << endl...
[]
352,028
352,029
u011233602
cpp
p02640
#include <algorithm> #include <array> #include <bitset> #include <cstdlib> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <stack> #include <stdio.h> #include <string> #include <t...
#include <algorithm> #include <array> #include <bitset> #include <cstdlib> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <stack> #include <stdio.h> #include <string> #include <t...
[ "identifier.change", "expression.operation.binary.change", "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
352,036
352,037
u055245731
cpp
p02640
#include <bits/stdc++.h> #define int long long #define rep(i, a, b) for (int i = a; i < b; i += 1) #define reps(i, a, b) for (int i = a; i >= b; i -= 1) #define vi vector<int> #define vvi vector<vector<int>> #define pb push_back #define pi pair<int, int> #define mp make_pair #define ff first #define ss second #define i...
#include <bits/stdc++.h> #define int long long #define rep(i, a, b) for (int i = a; i < b; i += 1) #define reps(i, a, b) for (int i = a; i >= b; i -= 1) #define vi vector<int> #define vvi vector<vector<int>> #define pb push_back #define pi pair<int, int> #define mp make_pair #define ff first #define ss second #define i...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
352,040
352,041
u547231875
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define rep(i, N) for (int i = 0; i < (N); i++) int main() { int X, Y; cin >> X >> Y; for (int i = 1; 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; #define rep(i, N) for (int i = 0; i < (N); i++) 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.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
352,042
352,043
u732332220
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"; return 0; } cout << "NO"; return 0; }
#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"; return 0; } cout << "No"; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,044
352,045
u480304423
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y >= x * 2 && y <= x * 4 && y % 2 == 0) { cout << "yes"; } else { cout << "no"; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y >= x * 2 && y <= x * 4 && y % 2 == 0) { cout << "Yes"; } else { cout << "No"; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,048
352,049
u102738656
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int n, ashi; cin >> n >> ashi; for (int i = 0; i < n; i++) { int kame = i; int turu = n - i; if (kame * 4 + turu * 2 == ashi) { cout << "Yes" << endl; return (0); } } cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n, ashi; cin >> n >> ashi; for (int i = 0; i <= n; i++) { int kame = i; int turu = n - i; if (kame * 4 + turu * 2 == ashi) { cout << "Yes" << endl; return (0); } } cout << "No" << endl; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
352,050
352,051
u484446016
cpp
p02640
#include <iostream> #define For(i, x, y) for (register int i = (x); i <= (y); i++) using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int x, y, a, b; cin >> x >> y; For(i, 1, x) { a = i; b = x - i; if (a * 2 + b * 4 == y) { cout << "Yes" << endl; ret...
#include <iostream> #define For(i, x, y) for (register int i = (x); i <= (y); i++) using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int x, y, a, b; cin >> x >> y; For(i, 0, x) { a = i; b = x - i; if (a * 2 + b * 4 == y) { cout << "Yes" << endl; retu...
[ "literal.number.change", "call.arguments.change" ]
352,055
352,056
u610075132
cpp
p02640
#include <cstdio> using namespace std; int main() { int x, y; scanf("%d%d", &x, &y); if (y - 2 * x >= 0 && !(y & 1) && x - (y - 2 * x) / 2 >= 0) printf("YES\n"); else printf("NO\n"); return 0; }
#include <cstdio> using namespace std; int main() { int x, y; scanf("%d%d", &x, &y); if (y - 2 * x >= 0 && !(y & 1) && x - (y - 2 * x) / 2 >= 0) printf("Yes\n"); else printf("No\n"); return 0; }
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
352,059
352,060
u748837376
cpp
p02640
#include <bits/stdc++.h> #define IO \ std::ios_base::sync_with_stdio(false); \ std::cin.tie(NULL); \ std::cout.tie(NULL); #define FIN freopen("entrada...
#include <bits/stdc++.h> #define IO \ std::ios_base::sync_with_stdio(false); \ std::cin.tie(NULL); \ std::cout.tie(NULL); #define FIN freopen("entrada...
[ "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,064
352,065
u565314437
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 && y < x * 4 && y > x * 2) { cout << "Yes"; } else { cout << "No"; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 && y <= x * 4 && y >= x * 2) { cout << "Yes"; } else { cout << "No"; } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
352,068
352,069
u522725969
cpp
p02640
#include <bits/stdc++.h> /** return NO_PAIN ? NO_GAIN : GAIN; */ using namespace std; #define all(v) v.begin(), v.end() #define sz(x) (int)(x.size()) #define Unique(x) x.erase(unique(all(x)), x.end()) #define endl "\n" #define pb push_back #define F first #define S second #define START ...
#include <bits/stdc++.h> /** return NO_PAIN ? NO_GAIN : GAIN; */ using namespace std; #define all(v) v.begin(), v.end() #define sz(x) (int)(x.size()) #define Unique(x) x.erase(unique(all(x)), x.end()) #define endl "\n" #define pb push_back #define F first #define S second #define START ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
352,081
352,082
u801983383
cpp
p02640
#include <bits/stdc++.h> /** return NO_PAIN ? NO_GAIN : GAIN; */ using namespace std; #define all(v) v.begin(), v.end() #define sz(x) (int)(x.size()) #define Unique(x) x.erase(unique(all(x)), x.end()) #define endl "\n" #define pb push_back #define F first #define S second #define START ...
#include <bits/stdc++.h> /** return NO_PAIN ? NO_GAIN : GAIN; */ using namespace std; #define all(v) v.begin(), v.end() #define sz(x) (int)(x.size()) #define Unique(x) x.erase(unique(all(x)), x.end()) #define endl "\n" #define pb push_back #define F first #define S second #define START ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
352,083
352,082
u801983383
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y, c = 0, d = 0, a = 0; cin >> x >> y; for (int c = 1; c <= x; c++) { d = x - c; if (2 * c + 4 * d == y) { a = 1; break; } } if (a == 1) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y, d = 0, a = 0; cin >> x >> y; for (int c = 0; c <= x; c++) { d = x - c; if (2 * c + 4 * d == y) { a = 1; break; } } if (a == 1) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[ "variable_declaration.remove", "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
352,091
352,092
u003009081
cpp
p02640
#include <stdio.h> int main() { int x, y; scanf("%d %d", &x, &y); for (int i = 0; i < x; i++) { if ((i * 2 + (x - i) * 4) == y) { printf("Yes\n"); return 0; } } printf("No"); return 0; }
#include <stdio.h> int main() { int x, y; scanf("%d %d", &x, &y); for (int i = 0; i <= x; i++) { if ((i * 2 + (x - i) * 4) == y) { printf("Yes\n"); return 0; } } printf("No"); return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
352,099
352,100
u183463044
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y, c = 0, d = 0, a = 0; cin >> x >> y; for (int c = 0; c <= x + 1; c++) { d = x - c; if (2 * c + 4 * d == y) { a = 1; break; } } if (a == 1) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y, c = 0, d = 0, a = 0; cin >> x >> y; for (int c = 0; c <= x; c++) { d = x - c; if (2 * c + 4 * d == y) { a = 1; break; } } if (a == 1) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
352,107
352,108
u490218014
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++) { int j = X - i; if (Y == 2 * i + 4 * j) ans = true; } if (ans) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#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++) { int j = X - i; if (Y == 2 * i + 4 * j) ans = true; } if (ans) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,109
352,110
u080981410
cpp
p02640
#include <bits/stdc++.h> #define int long long using namespace std; signed main() { int x, y; cin >> x >> y; if ((y & 1 == 0) && x * 4 >= y && x * 2 <= y) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <bits/stdc++.h> #define int long long using namespace std; signed main() { int x, y; cin >> x >> y; if ((y & 1) == 0 && x * 4 >= y && x * 2 <= y) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "control_flow.branch.if.condition.change" ]
352,120
352,121
u396589934
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main(void) { int X, Y; cin >> X >> Y; for (int i = 1; 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(void) { 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.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
352,138
352,139
u182310429
cpp
p02640
#include <iostream> int main() { long X, Y; std::cin >> X >> Y; for (long i = 1; i <= X; i++) { if (Y == 2 * i + 4 * (X - i)) { std::cout << "YES"; return 0; } } std::cout << "NO"; }
#include <iostream> int main() { long X, Y; std::cin >> X >> Y; for (long i = 0; i <= X; i++) { if (Y == 2 * i + 4 * (X - i)) { std::cout << "Yes"; return 0; } } std::cout << "No"; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "literal.string.change", "literal.string.case.change", "expression.operation.binary.change" ]
352,140
352,141
u047573796
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 && y > 2 * x && y < 4 * x) { cout << "Yes" << endl; } else cout << "No" << endl; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 && y >= 2 * x && y <= 4 * x) { cout << "Yes" << endl; } else cout << "No" << endl; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
352,150
352,151
u790685134
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define int long long #define pb push_back #define x first #define y second #define sz(v) (int)v.size() #define all(x) (x).begin(), (x).end() #define PI 3.14159265358979 #define N 200005 int solve() { int x, y; cin >> x >> y; int b = x - 2 * y; if (b % 2) { cou...
#include <bits/stdc++.h> using namespace std; #define int long long #define pb push_back #define x first #define y second #define sz(v) (int)v.size() #define all(x) (x).begin(), (x).end() #define PI 3.14159265358979 #define N 200005 int solve() { int x, y; cin >> x >> y; int b = y - 2 * x; if (b % 2) { cou...
[ "identifier.change", "expression.operation.binary.change" ]
352,152
352,153
u177897754
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); int n, x; cin >> n >> x; if (x % 2 != 0) { cout << "NO" << endl; } else { if (x >= (2 * n) && x <= (4 * n)) cout << "YES"; else { cout << "NO"; } } }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); int n, x; cin >> n >> x; if (x % 2 != 0) { cout << "No" << endl; } else { if (x >= (2 * n) && x <= (4 * n)) cout << "Yes"; else { cout << "No"; } } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
352,154
352,155
u280737280
cpp
p02640
#include <bits/stdc++.h> using ll = long long; using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = i; j <= x; j++) { if ((i * 4 + (x - j) * 2) == y) { cout << "Yes" << endl; return 0; } } } cout << "No" << endl; }
#include <bits/stdc++.h> using ll = long long; using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = i; j <= x; j++) { if ((j * 4 + (x - j) * 2) == y) { cout << "Yes" << endl; return 0; } } } cout << "No" << endl; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
352,159
352,160
u089885969
cpp
p02640
#include <bits/stdc++.h> using ll = long long; using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = i; j <= x; j++) { if (i * 4 + (x - j) * 2 == y) { cout << "Yes" << endl; return 0; } } } cout << "No" << endl; }
#include <bits/stdc++.h> using ll = long long; using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = i; j <= x; j++) { if ((j * 4 + (x - j) * 2) == y) { cout << "Yes" << endl; return 0; } } } cout << "No" << endl; }
[ "control_flow.branch.if.condition.change" ]
352,161
352,160
u089885969
cpp