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 |
|---|---|---|---|---|---|---|---|
p02608 | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef pair<int, int> p;
typedef long long ll;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i, a, b) for (int i = a; i <= b; i++)
#define pmod 1000000007
#define INF 1000000000000000000
#define pi atan(1) *... | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef pair<int, int> p;
typedef long long ll;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i, a, b) for (int i = a; i <= b; i++)
#define pmod 1000000007
#define INF 1000000000000000000
#define pi atan(1) *... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 351,211 | 351,212 | u948590237 | cpp |
p02608 | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef pair<int, int> p;
typedef long long ll;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i, a, b) for (int i = a; i <= b; i++)
#define pmod 1000000007
#define INF 1000000000000000000
#define pi atan(1) *... | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef pair<int, int> p;
typedef long long ll;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i, a, b) for (int i = a; i <= b; i++)
#define pmod 1000000007
#define INF 1000000000000000000
#define pi atan(1) *... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 351,213 | 351,212 | u948590237 | cpp |
p02608 | //---Vaidik Patel"---//-------------------Proud to be
//Indian--------------------------------//
#include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp> // include the associative containers or group of templates such as set,multi multimap, map etc.
#include <ext/pb_ds/tree_policy.hpp> //... | //---Vaidik Patel"---//-------------------Proud to be
//Indian--------------------------------//
#include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp> // include the associative containers or group of templates such as set,multi multimap, map etc.
#include <ext/pb_ds/tree_policy.hpp> //... | [
"literal.number.change",
"call.arguments.change",
"control_flow.branch.if.condition.change"
] | 351,216 | 351,217 | u189101840 | cpp |
p02608 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
map<int, int> m;
for (int x = 1; x <= 33; x++) {
for (int y = 1; y <= 33; y++) {
for (int z = 1; z <= 33; z++) {
int a = x * x + y * y + z * z + x * y + y * z + z * x;
if (a <= n) {
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
map<int, int> m;
for (int x = 1; x <= 100; x++) {
for (int y = 1; y <= 100; y++) {
for (int z = 1; z <= 100; z++) {
int a = x * x + y * y + z * z + x * y + y * z + z * x;
if (a <= n) {
... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 351,221 | 351,222 | u361175542 | cpp |
p02608 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, ans[101001] = {0}, x, y, z;
cin >> n;
for (x = 1; x <= 1000; x++) {
for (y = 1; y <= 1000; y++) {
for (z = 1; z <= 1000; z++) {
long long tmp;
tmp = x * x + y * y + z * z + x * y + y * z + z * x;
if (tmp <= 1... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, ans[101001] = {0}, x, y, z;
cin >> n;
for (x = 1; x <= 1000; x++) {
for (y = 1; y <= 1000; y++) {
for (z = 1; z <= 1000; z++) {
long long tmp;
tmp = x * x + y * y + z * z + x * y + y * z + z * x;
if (tmp <= 1... | [] | 351,223 | 351,224 | u196254124 | cpp |
p02608 | #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 a[10010];
int main() {
int n;
cin >> n;
for (int i = 1; i <= 40; ++i) {
for (int j = 1; j <= 40; ++j) {
for (int k = 1; k <= 40; ++k) {
if (i * i + ... | #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 a[10010];
int main() {
int n;
cin >> n;
for (int i = 1; i <= 300; ++i) {
for (int j = 1; j <= 300; ++j) {
for (int k = 1; k <= 300; ++k) {
if (i * i... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 351,225 | 351,226 | u754114382 | cpp |
p02608 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> vvl;
typedef vector<... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> vvl;
typedef vector<... | [
"literal.number.change",
"call.arguments.change",
"control_flow.branch.if.condition.change"
] | 351,227 | 351,228 | u263715385 | cpp |
p02608 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> vvl;
typedef vector<... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> vvl;
typedef vector<... | [
"literal.number.change",
"call.arguments.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 351,229 | 351,228 | u263715385 | cpp |
p02608 | #include <bits/stdc++.h>
#include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
#define pb push_back
#define N 200001
#define ll long long
#define int long long
#define pi pair<int, int>
#define pip pair<pi, int>
#define mp make_pair
#define f first
#define s second
#define mod 998244353
int fun... | #include <bits/stdc++.h>
#include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
#define pb push_back
#define N 200001
#define ll long long
#define int long long
#define pi pair<int, int>
#define pip pair<pi, int>
#define mp make_pair
#define f first
#define s second
#define mod 998244353
int fun... | [
"identifier.change",
"variable_access.subscript.index.change"
] | 351,234 | 351,235 | u788048177 | cpp |
p02608 | #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;
#define ordered_set \
tree<long long, null_type, less<long long>, rb_tree_tag, \
... | #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;
#define ordered_set \
tree<long long, null_type, less<long long>, rb_tree_tag, \
... | [
"literal.number.change",
"call.arguments.change"
] | 351,236 | 351,237 | u434297620 | cpp |
p02608 | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t n;
cin >> n;
int cnt = 0;
for (int64_t i = 1; i < n; i++) {
cnt = 0;
for (int64_t x = 1; x * x <= i; x++) {
for (int64_t y = 1; y * y <= i; y++) {
long double xd = x, yd = y, id = i;
if (4.0 * id - 3 * xd * xd - ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t n;
cin >> n;
int cnt = 0;
for (int64_t i = 1; i <= n; i++) {
cnt = 0;
for (int64_t x = 1; x * x <= i; x++) {
for (int64_t y = 1; y * y <= i; y++) {
long double xd = x, yd = y, id = i;
if (4.0 * id - 3 * xd * xd -... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 351,240 | 351,241 | u729703601 | cpp |
p02608 | #include <bits/stdc++.h>
using namespace std;
struct iofix {
ios_base::Init i;
iofix() {
cin.sync_with_stdio(0);
cin.tie(0);
cout.sync_with_stdio(0);
cout.tie(0);
cout.precision(10);
cout << fixed;
}
} iofix;
const int64_t M = 10008;
int64_t N;
std::vector<int64_t> v(M);
void solve() {
c... | #include <bits/stdc++.h>
using namespace std;
struct iofix {
ios_base::Init i;
iofix() {
cin.sync_with_stdio(0);
cin.tie(0);
cout.sync_with_stdio(0);
cout.tie(0);
cout.precision(10);
cout << fixed;
}
} iofix;
const int64_t M = 10008;
int64_t N;
std::vector<int64_t> v(M);
void solve() {
c... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 351,242 | 351,243 | u649291993 | cpp |
p02608 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define reps(i, s, n) for (int i = s; i < (int)(n); i... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define reps(i, s, n) for (int i = s; i < (int)(n); i... | [
"expression.operation.binary.add"
] | 351,246 | 351,247 | u716970267 | cpp |
p02608 | #include <bits/stdc++.h>
using namespace std;
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < ... | #include <bits/stdc++.h>
using namespace std;
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < ... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 351,253 | 351,254 | u892615201 | cpp |
p02608 | #include <bits/stdc++.h>
using namespace std;
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < ... | #include <bits/stdc++.h>
using namespace std;
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < ... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 351,255 | 351,254 | u892615201 | cpp |
p02608 | #include <bits/stdc++.h>
using namespace std;
///******************************** C o n t a i n e r
///********************************///
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pii> vii;... | #include <bits/stdc++.h>
using namespace std;
///******************************** C o n t a i n e r
///********************************///
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pii> vii;... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 351,256 | 351,257 | u331020950 | cpp |
p02608 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using V = vector<int>;
using VV = vector<V>;
using VVV = vector<VV>;
using VL = vector<ll>;
using VVL = vector<VL>;
using VVVL = vector<VVL>;
template <class T> using VE = vector<T>;
template <class T> using P = pair<T, ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using V = vector<int>;
using VV = vector<V>;
using VVV = vector<VV>;
using VL = vector<ll>;
using VVL = vector<VL>;
using VVVL = vector<VVL>;
template <class T> using VE = vector<T>;
template <class T> using P = pair<T, ... | [
"identifier.change"
] | 351,267 | 351,268 | u836743234 | cpp |
p02608 | // By Zank100
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define mod 1000000007
#define din(t) \
long long t; \
cin >> t;
#define in(... | // By Zank100
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define mod 1000000007
#define din(t) \
long long t; \
cin >> t;
#define in(... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 351,271 | 351,272 | u817813057 | cpp |
p02640 | #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;
}
}
| #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;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,292 | 351,293 | u522869350 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool flag = false;
for (int i = 0; i < x; i++) {
int legs = 2 * i + 4 * (x - i);
if (legs == y)
flag = true;
}
string ans = "No";
if (flag)
ans = "Yes";
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool flag = false;
for (int i = 0; i <= x; i++) {
int legs = 2 * i + 4 * (x - i);
if (legs == y)
flag = true;
}
string ans = "No";
if (flag)
ans = "Yes";
cout << ans << endl;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 351,294 | 351,295 | u245414044 | cpp |
p02640 | /*------U Have To DO It------*/
/* BY-> RicoProg */
/* ___
__|__|
| |___ */
#include <bits/stdc++.h>
using namespace std;
/**/
//---------------------------------------------------MACROS----------------------------------------------------------
#define ll long long
#... | /*------U Have To DO It------*/
/* BY-> RicoProg */
/* ___
__|__|
| |___ */
#include <bits/stdc++.h>
using namespace std;
/**/
//---------------------------------------------------MACROS----------------------------------------------------------
#define ll long long
#... | [
"control_flow.branch.if.condition.change"
] | 351,296 | 351,297 | u822265595 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fr first
#define sec second
#define rep(i, n) for (i = 0; i < n; i++)
#define vi vector<int>
#define vc vector<char>
#define vl vector<ll>
#define vb vector<bool>
#define pb push_back
#define M 1000000007
#define ios ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fr first
#define sec second
#define rep(i, n) for (i = 0; i < n; i++)
#define vi vector<int>
#define vc vector<char>
#define vl vector<ll>
#define vb vector<bool>
#define pb push_back
#define M 1000000007
#define ios ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,306 | 351,307 | u505391462 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(a) (a).begin(), (a).end()
// #define sort(a) sort(all(a))
using P = pair<int, int>;
using ll = long long;
using ld = long double;
typedef vector<int> vi;
int dx[4] = {0, 1, 0, -1};
int dy... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(a) (a).begin(), (a).end()
// #define sort(a) sort(all(a))
using P = pair<int, int>;
using ll = long long;
using ld = long double;
typedef vector<int> vi;
int dx[4] = {0, 1, 0, -1};
int dy... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 351,312 | 351,313 | u464244643 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (Y > 2 * X && (Y - 2 * X) % 2 == 0 && (4 * X - Y) > 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 >= 2 * X && (Y - 2 * X) % 2 == 0 && (4 * X - Y) >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 351,324 | 351,323 | u533413360 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int x, y;
cin >> x >> y;
if (y & 1) {
cout << "NO\n";
return 0;
}
int mn = 2 * x, mx = 4 * x;
if (mn <= y && y <= mx)
cout ... | #include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int x, y;
cin >> x >> y;
if (y & 1) {
cout << "No\n";
return 0;
}
int mn = 2 * x, mx = 4 * x;
if (mn <= y && y <= mx)
cout ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,332 | 351,333 | u867627660 | cpp |
p02640 | #include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define ll long long
using namespace std;
long long MOD = 1000000007;
int main() {
int X, Y;
cin >> X >> Y;
int ... | #include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define ll long long
using namespace std;
long long MOD = 1000000007;
int main() {
int X, Y;
cin >> X >> Y;
int ... | [
"control_flow.branch.if.condition.change"
] | 351,342 | 351,343 | u658993896 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define endl "\n"
ll input;
int main() {
int t = 1;
// cin>>t;
while (t--) {
ll x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++)
if ((i * 2 + (x - i) * 4) == y) {
cout << "YES\n";
return... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define endl "\n"
ll input;
int main() {
int t = 1;
// cin>>t;
while (t--) {
ll x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++)
if ((i * 2 + (x - i) * 4) == y) {
cout << "Yes\n";
return... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,344 | 351,345 | u100899313 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
bool can = false;
int animals, legs;
cin >> animals >> legs;
if (animals == 1) {
if (legs == 4 || legs == 2) {
can = true;
}
} else {
for (int i = 0; i < animals; i++) {
int sum = 0, turtles = 0;
turtles = animals - i;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
bool can = false;
int animals, legs;
cin >> animals >> legs;
if (animals == 1) {
if (legs == 4 || legs == 2) {
can = true;
}
} else {
for (int i = 0; i <= animals; i++) {
int sum = 0, turtles = 0;
turtles = animals - i;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 351,351 | 351,352 | u373956679 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
bool can = false;
int animals, legs;
cin >> animals >> legs;
if (animals == 1) {
if (legs == 1 || legs == 2) {
can = true;
}
} else {
for (int i = 0; i < animals; i++) {
int sum = 0, turtles = 0;
turtles = animals - i;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
bool can = false;
int animals, legs;
cin >> animals >> legs;
if (animals == 1) {
if (legs == 4 || legs == 2) {
can = true;
}
} else {
for (int i = 0; i <= animals; i++) {
int sum = 0, turtles = 0;
turtles = animals - i;
... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 351,353 | 351,352 | u373956679 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define endl '\n'
#define all(x) (x).begin(), (x).end()
#define digits(x) floor(log10(x) + 1)
#define countbits(x) ((int)log2(x) + 1)
#define forn(i, n) for (int i = 0; i < (int)(n); i++)
#define init(arr, value) memset(arr, value, sizeof(arr))
#define... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define endl '\n'
#define all(x) (x).begin(), (x).end()
#define digits(x) floor(log10(x) + 1)
#define countbits(x) ((int)log2(x) + 1)
#define forn(i, n) for (int i = 0; i < (int)(n); i++)
#define init(arr, value) memset(arr, value, sizeof(arr))
#define... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,354 | 351,355 | u232085362 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define inf 0x3f3f3f3f
#define infll 0x3f3f3f3f3f3f3f3f
#define all(x) (x).begin(), (x).end()
#define forn(i, a, b) for (int i = a; i < (signed)(b); ++i)
#define pb push_back
// debug templates
#define debug(x) cerr << #x << " : " << x << endl;
#defin... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define inf 0x3f3f3f3f
#define infll 0x3f3f3f3f3f3f3f3f
#define all(x) (x).begin(), (x).end()
#define forn(i, a, b) for (int i = a; i < (signed)(b); ++i)
#define pb push_back
// debug templates
#define debug(x) cerr << #x << " : " << x << endl;
#defin... | [
"variable_declaration.name.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 351,357 | 351,358 | u843897754 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
if (i + j == x && 2 * i + 4 * j == 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 <= 100; i++) {
for (int j = 0; j <= 100; j++) {
if (i + j == x && 2 * i + 4 * j == y) {
cout << "Yes";
return 0;
}
}
}
cout << "No";
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 351,364 | 351,365 | u441292535 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(0); \
cin.tie(NULL); \
cout.tie(NULL);
#define pb ... | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(0); \
cin.tie(NULL); \
cout.tie(NULL);
#define pb ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,366 | 351,367 | u986155871 | cpp |
p02640 | #include <bits/stdc++.h>
#define IO_OP \
std::ios::sync_with_stdio(0); \
std::cin.tie(0);
#define F first
#define S second
#define V vector
#define PB push_back
#define MP make_pair
#define EB emplace_bac... | #include <bits/stdc++.h>
#define IO_OP \
std::ios::sync_with_stdio(0); \
std::cin.tie(0);
#define F first
#define S second
#define V vector
#define PB push_back
#define MP make_pair
#define EB emplace_bac... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 351,375 | 351,376 | u454290303 | 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) {
int b;
b = x - i;
if ((2 * i) + (4 * b) == 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 + 1; ++i) {
int b;
b = x - i;
if ((2 * i) + (4 * b) == y) {
ans = "Yes";
}
}
cout << ans << endl;
}
| [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 351,381 | 351,382 | u431938235 | cpp |
p02640 | #include <algorithm>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (n); i++)
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1001001001;
const double... | #include <algorithm>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (n); i++)
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1001001001;
const double... | [
"expression.operation.binary.add"
] | 351,385 | 351,386 | u770486670 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
string ans = "No";
for (int i = 1; i <= a; i++) {
int j = a - i;
if (i * 2 + j * 4 == b) {
ans = "Yes";
}
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
string ans = "No";
for (int i = 0; i <= a; i++) {
int j = a - i;
if (i * 2 + j * 4 == b) {
ans = "Yes";
}
}
cout << ans << endl;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 351,391 | 351,392 | u086313715 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if ((y % 2 == 0) && (y / 2 - x >= 0) && (2 * 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 == 0) && (y / 2 - x >= 0) && (2 * x - y / 2 >= 0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,393 | 351,394 | u571575114 | cpp |
p02640 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const double PI = acos(-1);
const int INF = numeric_limits<int>::max();
int main() {
int x, y;
cin >> x >> y;
int tsuru, ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const double PI = acos(-1);
const int INF = numeric_limits<int>::max();
int main() {
int x, y;
cin >> x >> y;
int tsuru, k... | [
"identifier.change",
"call.function.change"
] | 351,403 | 351,404 | u434347523 | cpp |
p02640 |
/*****************************************
**** Solution by SlavicG ****
*****************************************/
#include <algorithm>
#include <assert.h>
#include <bits/stdc++.h>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#incl... |
/*****************************************
**** Solution by SlavicG ****
*****************************************/
#include <algorithm>
#include <assert.h>
#include <bits/stdc++.h>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#incl... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,412 | 351,413 | u649811088 | cpp |
p02640 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define arep(x, n) for (int x : n)
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int m, n, p;
bool ans;
rep(i, x) {
m = x - i;
n = i;
p = m * 2 + n * 4;
if (p == y) {
ans = true;
break;
} else... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i <= n; ++i)
#define arep(x, n) for (int x : n)
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int m, n, p;
bool ans;
rep(i, x) {
m = x - i;
n = i;
p = m * 2 + n * 4;
if (p == y) {
ans = true;
break;
} els... | [
"expression.operator.compare.change",
"preprocessor.define.value.change"
] | 351,422 | 351,423 | u281400445 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
if (2L * x > y || y > 4L * x)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
if (2L * x > y || y > 4L * x || y % 2)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 351,426 | 351,427 | u841940209 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;
int main(void) {
int x, y;
cin >> x >> y;
int c = 0;
rep(i, x) ... | #include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;
int main(void) {
int x, y;
cin >> x >> y;
int c = 0;
rep(i, x +... | [
"expression.operation.binary.add"
] | 351,430 | 351,431 | u783299609 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vl vector<ll>
#define vi vector<int>
#define pi pair<int, int>
#define pl pair<ll, ll>
#define all(a) a.begin(), a.end()
#define mem(a, x) memset(a, x, sizeof(a))
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vl vector<ll>
#define vi vector<int>
#define pi pair<int, int>
#define pl pair<ll, ll>
#define all(a) a.begin(), a.end()
#define mem(a, x) memset(a, x, sizeof(a))
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define... | [
"literal.number.change",
"call.arguments.change"
] | 351,432 | 351,433 | u809929160 | cpp |
p02640 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <new>
#include <string>
#include <vector>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool flag = false;
for (int i = 0; i < X; ++i) {
if (i * 2 + (X... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <new>
#include <string>
#include <vector>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool flag = false;
for (int i = 0; i <= X; ++i) {
if (i * 2 + (... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 351,436 | 351,437 | u638221831 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPA(i, a, n) for (int i = a; i < n; i++)
#define REPE(i, a, n) for (int i = a; i <= n; i++)
#define SetArray(a, n) \
for (int array_i = 0; array_i < n; array_i+... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPA(i, a, n) for (int i = a; i < n; i++)
#define REPE(i, a, n) for (int i = a; i <= n; i++)
#define SetArray(a, n) \
for (int array_i = 0; array_i < n; array_i+... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 351,448 | 351,449 | u268401354 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPA(i, a, n) for (int i = a; i < n; i++)
#define REPE(i, a, n) for (int i = a; i <= n; i++)
#define SetArray(a, n) \
for (int array_i = 0; array_i < n; array_i+... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPA(i, a, n) for (int i = a; i < n; i++)
#define REPE(i, a, n) for (int i = a; i <= n; i++)
#define SetArray(a, n) \
for (int array_i = 0; array_i < n; array_i+... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 351,452 | 351,449 | u268401354 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define mp make_pair
#define ff first
#define ss second
#define pb push_back
#define fo(i, n) for (i = 0; i < n; i++)
#define fo1(i, n) for (i = 1; i <= n; i++)
#define FO(i, k, n) for (i = k; k <= n ? i <= n : i >= n; k <= n ? ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define mp make_pair
#define ff first
#define ss second
#define pb push_back
#define fo(i, n) for (i = 0; i < n; i++)
#define fo1(i, n) for (i = 1; i <= n; i++)
#define FO(i, k, n) for (i = k; k <= n ? i <= n : i >= n; k <= n ? ... | [
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 351,457 | 351,458 | u532096476 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> PII;
const int mod = 1e9 + 7, INF = 1e9;
const int mx = 1e6 + 5;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int x, y;
cin >> x >> y;
if (2 * x <= y && y <= 3 * x && (y % 2) == 0)
cout << "Yes" << endl;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> PII;
const int mod = 1e9 + 7, INF = 1e9;
const int mx = 1e6 + 5;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int x, y;
cin >> x >> y;
if (2 * x <= y && y <= 4 * x && (y % 2) == 0)
cout << "Yes" << endl;
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 351,463 | 351,464 | u613569650 | cpp |
p02640 |
// --------------------<optimizations>--------------------
#pragma GCC optimize("O3")
//(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)
#pragma comment(linker, "/stack:200000000")
//(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)
#pragma GCC optimize("unroll-loops")
// -------------------</optimizations>--------... |
// --------------------<optimizations>--------------------
#pragma GCC optimize("O3")
//(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)
#pragma comment(linker, "/stack:200000000")
//(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)
#pragma GCC optimize("unroll-loops")
// -------------------</optimizations>--------... | [
"literal.string.change",
"io.output.change"
] | 351,475 | 351,476 | u974690209 | cpp |
p02640 |
// --------------------<optimizations>--------------------
#pragma GCC optimize("O3")
//(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)
#pragma comment(linker, "/stack:200000000")
//(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)
#pragma GCC optimize("unroll-loops")
// -------------------</optimizations>--------... |
// --------------------<optimizations>--------------------
#pragma GCC optimize("O3")
//(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)
#pragma comment(linker, "/stack:200000000")
//(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)
#pragma GCC optimize("unroll-loops")
// -------------------</optimizations>--------... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,477 | 351,476 | u974690209 | cpp |
p02640 |
// --------------------<optimizations>--------------------
#pragma GCC optimize("O3")
//(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)
#pragma comment(linker, "/stack:200000000")
//(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)
#pragma GCC optimize("unroll-loops")
// -------------------</optimizations>--------... |
// --------------------<optimizations>--------------------
#pragma GCC optimize("O3")
//(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)
#pragma comment(linker, "/stack:200000000")
//(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)
#pragma GCC optimize("unroll-loops")
// -------------------</optimizations>--------... | [
"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"
] | 351,478 | 351,476 | u974690209 | cpp |
p02640 | #include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a;
int l;
cin >> a >> l;
if (a == 1 && (l == 2 || l == 4)) {
cout << "Yes" << endl;
return 0;
}
for (int i = 0; i <= a; i++) {
int t = a - i;
if (t > 0 && (4 * i + 2 * t) == l) {
cout... | #include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a;
int l;
cin >> a >> l;
if (a == 1 && (l == 2 || l == 4)) {
cout << "Yes" << endl;
return 0;
}
for (int i = 0; i <= a; i++) {
int t = a - i;
if ((4 * i + 2 * t) == l) {
cout << "Yes"... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 351,483 | 351,484 | u921044712 | cpp |
p02640 | #include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a;
int l;
cin >> a >> l;
if (a == 1 && (l == 2 || l == 4)) {
cout << "Yes" << endl;
return 0;
}
for (int i = 1; i < a; i++) {
int t = a - i;
if (t > 0 && (4 * i + 2 * t) == l) {
cout ... | #include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a;
int l;
cin >> a >> l;
if (a == 1 && (l == 2 || l == 4)) {
cout << "Yes" << endl;
return 0;
}
for (int i = 0; i <= a; i++) {
int t = a - i;
if ((4 * i + 2 * t) == l) {
cout << "Yes"... | [
"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",
"expression.operation.binary.remove"
] | 351,485 | 351,484 | u921044712 | cpp |
p02640 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool flg = false;
for (int i = 0; i < x; i++) {
if (4 * i + 2 * (x - i) == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
} | #include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool flg = false;
for (int i = 0; i <= x; i++) {
if (4 * i + 2 * (x - i) == 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,488 | 351,489 | u944033453 | cpp |
p02640 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <numeric>
#include <string>
#include <vector>
using namespace std;
void check(int x, int y) {
for (int i = 0; i < x; i++) {
if (i * 4 + 2 * (x - i) == y) {
cout << "Yes";
return;
}
}
cout << "No";
}
int main() {
int x, y;... |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <numeric>
#include <string>
#include <vector>
using namespace std;
void check(int x, int y) {
for (int i = 0; i <= x; i++) {
if (i * 4 + 2 * (x - i) == y) {
cout << "Yes";
return;
}
}
cout << "No";
}
int main() {
int x, y... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 351,493 | 351,494 | u794066762 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int animal, leg;
cin >> animal >> leg;
for (int i = 0; i <= animal; i++) {
int x = 2 * i;
int y = (animal - i) * 4;
if (x + y == leg) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int animal, leg;
cin >> animal >> leg;
for (int i = 0; i <= animal; i++) {
int x = 2 * i;
int y = (animal - i) * 4;
if (x + y == leg) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,497 | 351,498 | u270259192 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int X, Y;
cin >> X >> Y;
bool can = false;
for (int i = 1; i <= X; i++) {
int turu = i;
int kame = X - turu;
int sum = turu * 2 + kame * 4;
if (sum == Y)
can = true;
}
if (can)
cout << "Yes" << endl;
else
cout <<... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int X, Y;
cin >> X >> Y;
bool can = false;
for (int i = 0; i <= X; i++) {
int turu = i;
int kame = X - turu;
int sum = turu * 2 + kame * 4;
if (sum == Y)
can = true;
}
if (can)
cout << "Yes" << endl;
else
cout <<... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 351,499 | 351,500 | u993868326 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long int
#define li long int
#define ull unsigned long long int
#define mci map<char, int>
#define db double
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define vi vector<int>
#define msi map<string, int>
#define pii pair<int, int>
#define mii map<int, int>
... | #include <bits/stdc++.h>
#define ll long long int
#define li long int
#define ull unsigned long long int
#define mci map<char, int>
#define db double
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define vi vector<int>
#define msi map<string, int>
#define pii pair<int, int>
#define mii map<int, int>
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,505 | 351,506 | u186178073 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, p = 0;
cin >> a >> b;
for (int i = 1; i <= a; i++) {
if (2 * i + 4 * (a - i) == b) {
cout << "Yes\n";
p = 1;
}
}
if (p == 0)
cout << "No\n";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, p = 0;
cin >> a >> b;
for (int i = 0; i <= a; i++) {
if (2 * i + 4 * (a - i) == b) {
cout << "Yes\n";
p = 1;
}
}
if (p == 0)
cout << "No\n";
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 351,507 | 351,508 | u965952305 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, p = 0;
cin >> a >> b;
for (int i = 1; i <= b; i++) {
if (2 * i + 4 * (a - i) == b) {
cout << "Yes\n";
p = 1;
}
}
if (p == 0)
cout << "No\n";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, p = 0;
cin >> a >> b;
for (int i = 0; i <= a; i++) {
if (2 * i + 4 * (a - i) == b) {
cout << "Yes\n";
p = 1;
}
}
if (p == 0)
cout << "No\n";
return 0;
} | [
"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"
] | 351,509 | 351,508 | u965952305 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, p = 0;
cin >> a >> b;
for (int i = 1; i <= b; i++) {
if (2 * i + 4 * (a - i) == b) {
cout << "YES\n";
p = 1;
}
}
if (p == 0)
cout << "NO\n";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, p = 0;
cin >> a >> b;
for (int i = 0; i <= a; i++) {
if (2 * i + 4 * (a - i) == b) {
cout << "Yes\n";
p = 1;
}
}
if (p == 0)
cout << "No\n";
return 0;
} | [
"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",
"literal.string.change",
"literal.string.case.change",
"io.output.... | 351,510 | 351,508 | u965952305 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int X;
int Y;
int c;
int t;
int a = 0;
cin >> X;
cin >> Y;
for (int i = 1; i <= X; i++) {
c = i;
t = X - c;
// for(int i = 0;i < (X - c);i++){
// t = i;
if ((c * 2 + t * 4) ==... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int X;
int Y;
int c;
int t;
int a = 0;
cin >> X;
cin >> Y;
for (int i = 0; i <= X; i++) {
c = i;
t = X - c;
// for(int i = 0;i < (X - c);i++){
// t = i;
if ((c * 2 + t * 4) ==... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 351,515 | 351,516 | u514339419 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool ans = false;
for (int t = 0; t < x; t++) {
int k = x - t;
if (2 * t + 4 * k == y)
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 t = 0; t <= x; t++) {
int k = x - t;
if (2 * t + 4 * k == y)
ans = true;
}
if (ans)
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"
] | 351,517 | 351,518 | u587622858 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int x, y;
cin >> x >> y;
if (((4 * x - y) / 2) > 0 && ((float)(4 * x - y) / 2) == ((4 * x - y) / 2) &&
(x - (4 * x ... | #include <bits/stdc++.h>
using namespace std;
int main() {
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int x, y;
cin >> x >> y;
if (((4 * x - y) / 2) >= 0 && ((float)(4 * x - y) / 2) == ((4 * x - y) / 2) &&
(x - (4 * x... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 351,526 | 351,527 | u473734671 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll x, y;
cin >> x >> y;
for (ll i = 1; i <= x; i++) {
ll b = x - i;
if (2 * i + b * 4 == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << e... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll x, y;
cin >> x >> y;
for (ll i = 0; i <= x; i++) {
ll b = x - i;
if (2 * i + b * 4 == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << e... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 351,528 | 351,529 | u811134583 | cpp |
p02640 | #include <iostream>
#include <vector>
int main() {
int X;
int Y;
std::string answer = "No";
std::cin >> X >> Y;
if (X * 2 == Y) {
answer = "Yes";
} else if (X * 4 == Y) {
answer = "Yes";
} else {
for (int turu = 1; turu < X; turu++) {
for (int kame = 1; kame < X - turu; kame++) {
... | #include <iostream>
#include <vector>
int main() {
int X;
int Y;
std::string answer = "No";
std::cin >> X >> Y;
if (X * 2 == Y) {
answer = "Yes";
} else if (X * 4 == Y) {
answer = "Yes";
} else {
for (int turu = 1; turu < X; turu++) {
for (int kame = 1; kame <= X - turu; kame++) {
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 351,549 | 351,550 | u614604794 | cpp |
p02640 | #include <stdio.h>
using namespace std;
int main() {
int X, Y;
scanf("%d %d", &X, &Y);
for (int i = 0; i < X; i++) {
int numOfLeags = i * 4 + (X - i) * 2;
if (numOfLeags == Y) {
printf("Yes\n");
return 0;
}
}
printf("No\n");
}
| #include <stdio.h>
using namespace std;
int main() {
int X, Y;
scanf("%d %d", &X, &Y);
for (int i = 0; i <= X; i++) {
int numOfLeags = i * 4 + (X - i) * 2;
if (numOfLeags == Y) {
printf("Yes\n");
return 0;
}
}
printf("No\n");
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 351,553 | 351,554 | u482969053 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0 && y >= x * 2 && y <= x * 4) {
cout << "YES\n";
} else
cout << "NO\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0 && y >= x * 2 && y <= x * 4) {
cout << "Yes\n";
} else
cout << "No\n";
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,557 | 351,558 | u831641579 | cpp |
p02640 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <vector>
using namespace std;
using lint = long long;
constexpr int MOD = 1000000007, INF = 1010101010;
constex... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <vector>
using namespace std;
using lint = long long;
constexpr int MOD = 1000000007, INF = 1010101010;
constex... | [
"control_flow.branch.if.condition.change"
] | 351,562 | 351,563 | u532573979 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef int itn;
const... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef int itn;
const... | [
"literal.number.change",
"call.arguments.change"
] | 351,568 | 351,569 | u254521846 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int t, i, j, a, b;
scanf("%d%d", &a, &b);
if (b >= 2 * a && b <= 4 * a && b % 2 == 0)
printf("YES\n");
else
printf("NO\n");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int t, i, j, a, b;
scanf("%d%d", &a, &b);
if (b >= 2 * a && b <= 4 * a && b % 2 == 0)
printf("Yes\n");
else
printf("No\n");
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 351,570 | 351,571 | u273017821 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int t, i, j, a, b, z = 0, c, d;
scanf("%d%d", &a, &b);
for (i = 0; i <= a; i++) {
c = a - i;
d = c * 4 + i * 2;
if (d == b)
z = 1;
}
if (z == 1)
printf("YES\n");
else
printf("NO\n");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int t, i, j, a, b, z = 0, c, d;
scanf("%d%d", &a, &b);
for (i = 0; i <= a; i++) {
c = a - i;
d = c * 4 + i * 2;
if (d == b)
z = 1;
}
if (z == 1)
printf("Yes\n");
else
printf("No\n");
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 351,572 | 351,573 | u273017821 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i <= x + 1; i++) {
ll temp = x - i;
if (i * 2 + temp * 4 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i <= x; i++) {
ll temp = x - i;
if (i * 4 + temp * 2 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 351,580 | 351,581 | u406126927 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 1; i <= x + 1; i++) {
ll temp = x - i;
if (i * 2 + temp * 4 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i <= x; i++) {
ll temp = x - i;
if (i * 4 + temp * 2 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 351,582 | 351,581 | u406126927 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 1; i <= x; i++) {
ll temp = x - i;
if (i * 2 + temp * 4 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i <= x; i++) {
ll temp = x - i;
if (i * 4 + temp * 2 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.branch.if.condition.change"
] | 351,583 | 351,581 | u406126927 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 1; i <= x; i++) {
ll temp = x - i;
if (i * 4 + temp * 2 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i <= x; i++) {
ll temp = x - i;
if (i * 4 + temp * 2 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 351,584 | 351,581 | u406126927 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i <= x + 1; i++) {
ll temp = x - i;
if (i * 2 + temp * 4 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i <= x; i++) {
ll temp = x - i;
if (i * 2 + temp * 4 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 351,580 | 351,585 | u406126927 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 1; i <= x + 1; i++) {
ll temp = x - i;
if (i * 2 + temp * 4 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i <= x; i++) {
ll temp = x - i;
if (i * 2 + temp * 4 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 351,582 | 351,585 | u406126927 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 1; i <= x; i++) {
ll temp = x - i;
if (i * 2 + temp * 4 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i <= x; i++) {
ll temp = x - i;
if (i * 2 + temp * 4 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 351,583 | 351,585 | u406126927 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 1; i <= x; i++) {
ll temp = x - i;
if (i * 4 + temp * 2 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i <= x; i++) {
ll temp = x - i;
if (i * 2 + temp * 4 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
}
int main() {
ll t;
t = 1;
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.branch.if.condition.change"
] | 351,584 | 351,585 | u406126927 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3")
static const auto __ = [] {
ios::sync_with_stdio(false);
cin.tie(nullptr);
return nullptr;
}();
bool solve() {
int x, y;
cin >> x >> y;
return (y % 2 != 0) && (2 * x <= y) && (y <= 4 * x);
}
int main(int argc, char *argv[]) {
cou... | #include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3")
static const auto __ = [] {
ios::sync_with_stdio(false);
cin.tie(nullptr);
return nullptr;
}();
bool solve() {
int x, y;
cin >> x >> y;
return (y % 2 == 0) && (2 * x <= y) && (y <= 4 * x);
}
int main(int argc, char *argv[]) {
cou... | [
"misc.opposites",
"expression.operator.compare.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 351,586 | 351,587 | u485266346 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3")
static const auto __ = [] {
ios::sync_with_stdio(false);
cin.tie(nullptr);
return nullptr;
}();
bool solve() {
int x, y;
cin >> x >> y;
return (x % 2 != 0) && (2 * x <= y) && (y <= 4 * x);
}
int main(int argc, char *argv[]) {
cou... | #include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3")
static const auto __ = [] {
ios::sync_with_stdio(false);
cin.tie(nullptr);
return nullptr;
}();
bool solve() {
int x, y;
cin >> x >> y;
return (y % 2 == 0) && (2 * x <= y) && (y <= 4 * x);
}
int main(int argc, char *argv[]) {
cou... | [
"identifier.change",
"function.return_value.change",
"expression.operation.binary.change",
"misc.opposites",
"expression.operator.compare.change"
] | 351,588 | 351,587 | u485266346 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <math.h>
#include <numeric>
#include <queue>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <vector>
#define fo(i, n) for (int i = 0; i < n; i++)
#define fo1(i, n) for (int i = 1; i <= n; i++)
#define ll long long int
#define pi ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <math.h>
#include <numeric>
#include <queue>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <vector>
#define fo(i, n) for (int i = 0; i < n; i++)
#define fo1(i, n) for (int i = 1; i <= n; i++)
#define ll long long int
#define pi ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 351,595 | 351,596 | u205769066 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <math.h>
#include <numeric>
#include <queue>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <vector>
#define fo(i, n) for (int i = 0; i < n; i++)
#define fo1(i, n) for (int i = 1; i <= n; i++)
#define ll long long int
#define pi ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <math.h>
#include <numeric>
#include <queue>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <vector>
#define fo(i, n) for (int i = 0; i < n; i++)
#define fo1(i, n) for (int i = 1; i <= n; i++)
#define ll long long int
#define pi ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 351,597 | 351,596 | u205769066 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <math.h>
#include <numeric>
#include <queue>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <vector>
#define fo(i, n) for (int i = 0; i < n; i++)
#define fo1(i, n) for (int i = 1; i <= n; i++)
#define ll long long int
#define pi ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <math.h>
#include <numeric>
#include <queue>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <vector>
#define fo(i, n) for (int i = 0; i < n; i++)
#define fo1(i, n) for (int i = 1; i <= n; i++)
#define ll long long int
#define pi ... | [
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 351,598 | 351,596 | u205769066 | cpp |
p02640 | #include "bits/stdc++.h"
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 1; i <= x; ++i) {
for (int j = 1; j <= x; ++j) {
if (4 * i + 2 * j == y && i + j == x) {
cout << "Yes";
return 0;
}
}
}
cout << "No";
} | #include "bits/stdc++.h"
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
for (int j = 0; j <= x; ++j) {
if (4 * i + 2 * j == y && i + j == x) {
cout << "Yes";
return 0;
}
}
}
cout << "No";
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 351,601 | 351,602 | u746786494 | cpp |
p02640 | #include "bits/stdc++.h"
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
for (int j = 0; j <= x; ++j) {
if (4 * i + 2 * j == y && 4 * i + 2 * j == x) {
cout << "Yes";
return 0;
}
}
}
cout << "No";
} | #include "bits/stdc++.h"
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
for (int j = 0; j <= x; ++j) {
if (4 * i + 2 * j == y && i + j == x) {
cout << "Yes";
return 0;
}
}
}
cout << "No";
} | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 351,603 | 351,602 | u746786494 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c = 0;
cin >> a >> b;
if (b % 2 == 1)
c = 1;
else if (a * 4 < b)
c = 1;
else if (a > b)
c = 1;
if (c == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c = 0;
cin >> a >> b;
if (b % 2 == 1)
c = 1;
else if (a * 4 < b)
c = 1;
else if (a * 2 > b)
c = 1;
if (c == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [
"control_flow.branch.if.condition.change"
] | 351,613 | 351,614 | u357752130 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main()
{
int x, y;
cin >> x >> y;
if (y % 2 != 0 || ((2 * x) <= y && (4 * x) >= y)) {
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 && ((2 * x) <= y && (4 * x) >= y)) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 351,617 | 351,618 | u425436575 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,622 | 351,623 | u927550025 | cpp |
p02640 | //
// Created by Masaya Hirose on 2020年6月月21日.
//
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int a = 0; a <= x; a++) {
if ((2 * a + 4 * (x - a) == y)) {
cout << "yes";
return 0;
}
}
cout << "no";
return 0;
} | //
// Created by Masaya Hirose on 2020年6月月21日.
//
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int a = 0; a <= x; a++) {
if ((2 * a + 4 * (x - a) == y)) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,639 | 351,640 | u071925082 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int a = 0; a < x; a++) {
if ((2 * a + 4 * (x - a) == y)) {
cout << "yes";
return 0;
}
}
cout << "no";
return 0;
} | //
// Created by Masaya Hirose on 2020年6月月21日.
//
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int a = 0; a <= x; a++) {
if ((2 * a + 4 * (x - a) == y)) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
} | [
"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"
] | 351,641 | 351,640 | u071925082 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base ::sync_with_stdio(0);
cin.tie(NULL);
int x, y;
cin >> x >> y;
int t = (y - 2 * x) / 2;
int c = x - t;
if (t < 0 || c < 0)
cout << "NO" << '\n';
else if (t + c != x || 2 * c + 4 * t != y) {
cout << "NO" << '\n';
} else
... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base ::sync_with_stdio(0);
cin.tie(NULL);
int x, y;
cin >> x >> y;
int t = (y - 2 * x) / 2;
int c = x - t;
if (t < 0 || c < 0)
cout << "No" << '\n';
else if (t + c != x || 2 * c + 4 * t != y) {
cout << "No" << '\n';
} else
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,648 | 351,649 | u578509549 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, z;
cin >> n >> z;
int ans1 = 4 * n - z;
int ans2 = z - 2 * n;
if (ans1 > 0 && !(ans1 % 2) && ans2 > 0 && !(ans2 % 2))
cout << "Yes";
else
cout << "No";
cout << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, z;
cin >> n >> z;
int ans1 = 4 * n - z;
int ans2 = z - 2 * n;
if (ans1 >= 0 && !(ans1 % 2) && ans2 >= 0 && !(ans2 % 2))
cout << "Yes";
else
cout << "No";
cout << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 351,650 | 351,651 | u464846946 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if (y / 2 > x && (2 * x > y / 2))
cout << "Yes";
else
cout << "No";
} else {
cout << "No";
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if (y / 2 >= x && (2 * x >= y / 2))
cout << "Yes";
else
cout << "No";
} else {
cout << "No";
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 351,656 | 351,657 | u984808040 | cpp |
p02640 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using ll = long long int;
using ul = unsigned long long int;
const ll LL_MAX(1LL << 60);
co... |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using ll = long long int;
using ul = unsigned long long int;
const ll LL_MAX(1LL << 60);
co... | [
"literal.number.change",
"call.arguments.change"
] | 351,660 | 351,661 | u778668639 | cpp |
p02640 | #include <bits/stdc++.h>
#define MOD 1000000007
#define ll long long int
#define db double
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define pb push_back
#define endl "\n"
#define mp ... | #include <bits/stdc++.h>
#define MOD 1000000007
#define ll long long int
#define db double
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define pb push_back
#define endl "\n"
#define mp ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 351,662 | 351,663 | u765308103 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
string a = "No";
for (int i = 1; i < X + 1; i++) {
if (4 * i + 2 * (X - i) == Y)
a = "Yes";
}
cout << a << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
string a = "No";
for (int i = 0; i < X + 1; i++) {
if (4 * i + 2 * (X - i) == Y)
a = "Yes";
}
cout << a << endl;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 351,666 | 351,667 | u927270488 | cpp |
p02640 | #include <fstream>
#include <iostream>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
// int main(int argc, char *argv[]){
int main() {
int x = 0;
int y = 0;
// input for x
cin >> x;
// input for y
cin >> y;
int t2 = y - 2 * x;
int c2 = 4 * x - y;
bool numcheck = (t... | #include <fstream>
#include <iostream>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
// int main(int argc, char *argv[]){
int main() {
int x = 0;
int y = 0;
// input for x
cin >> x;
// input for y
cin >> y;
int t2 = y - 2 * x;
int c2 = 4 * x - y;
bool numcheck = (t... | [
"expression.operator.compare.change",
"expression.operation.binary.change"
] | 351,675 | 351,676 | u363500377 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.