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;
using ll = long long;
int main() {
int x, y;
cin >> x >> y;
bool ok = false;
for (int i = 1; i <= x; ++i) {
if (2 * i + 4 * (x - i) == y)
ok = true;
}
if (ok)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int x, y;
cin >> x >> y;
bool ok = false;
for (int i = 0; i <= x; ++i) {
if (2 * i + 4 * (x - i) == y)
ok = true;
}
if (ok)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,158 | 354,159 | u712918628 | cpp |
p02640 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
using namespace std;
#define pi 3.14159265358979
int main() {
int x, total;
cin >> x >> total;
rep(kame, x) {
int... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
using namespace std;
#define pi 3.14159265358979
int main() {
int x, total;
cin >> x >> total;
rep(kame, x + 1) {
... | [
"expression.operation.binary.add"
] | 354,171 | 354,172 | u966522561 | cpp |
p02640 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define repk(i, k, n) for (ll i = k; i < (ll)(n); ++i)
#define MOD 1000000007
typedef long long ll;
using namespace std;
int ans, cnt;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int X, Y;
cin >> X >> Y;
repk(i, 1, X) {... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define repk(i, k, n) for (ll i = k; i < (ll)(n); ++i)
#define MOD 1000000007
typedef long long ll;
using namespace std;
int ans, cnt;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int X, Y;
cin >> X >> Y;
rep(i, X + 1) {... | [
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 354,175 | 354,176 | u344988629 | cpp |
p02640 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define repk(i, k, n) for (ll i = k; i < (ll)(n); ++i)
#define MOD 1000000007
typedef long long ll;
using namespace std;
int ans, cnt;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int X, Y;
cin >> X >> Y;
rep(i, 1000) {
... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define repk(i, k, n) for (ll i = k; i < (ll)(n); ++i)
#define MOD 1000000007
typedef long long ll;
using namespace std;
int ans, cnt;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int X, Y;
cin >> X >> Y;
rep(i, X + 1) {... | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change"
] | 354,177 | 354,176 | u344988629 | cpp |
p02640 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, n;
cin >> a >> n;
for (int i = 1; i < a; i++) {
if ((4 * i) + 2 * (a - i) == n) {
cout << "YES";
return 0;
}
}
cout << "NO" << endl;
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, n;
cin >> a >> n;
for (int i = 0; i <= a; i++) {
if ((4 * i) + 2 * (a - i) == n) {
cout << "Yes";
return 0;
}
}
cout << "No" << endl;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"literal.string.change",
"literal.string.case.chang... | 354,184 | 354,185 | u025150541 | cpp |
p02640 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, n;
cin >> a >> n;
for (int i = 0; i <= a; i++) {
if (4 * i + 2 * (a - i) == n) {
cout << "YES";
return 0;
}
}
cout << "NO" << endl;
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, n;
cin >> a >> n;
for (int i = 0; i <= a; i++) {
if ((4 * i) + 2 * (a - i) == n) {
cout << "Yes";
return 0;
}
}
cout << "No" << endl;
} | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,186 | 354,185 | u025150541 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int x, y, asi, husoku;
cin >> x >> y;
rep(i, x) {
asi = (2 * (x - i)) + 4 * i;
if (asi == 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 <= (int)(n); i++)
int main() {
int x, y, asi;
cin >> x >> y;
rep(i, x) {
asi = (2 * (x - i)) + 4 * i;
if (asi == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| [
"expression.operator.compare.change",
"preprocessor.define.value.change",
"variable_declaration.remove"
] | 354,189 | 354,190 | u114366889 | cpp |
p02640 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
int x, y, four, legs, lastlegs;
bool flag = true;
cin >> x >> y;
four = y / 4;
for (int i = four; i >= 0; i--) {
legs = 4 * i;
lastlegs = y - legs;
if (lastlegs % 2 == 0) {
if (... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
int x, y, four, legs, lastlegs;
bool flag = true;
cin >> x >> y;
four = y / 4;
for (int i = four; i >= 0; i--) {
legs = 4 * i;
lastlegs = y - legs;
if (lastlegs % 2 == 0) {
if (... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,198 | 354,199 | u321008876 | cpp |
p02640 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long ll;
#define PI 3.14159265359
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define mp make_pair
#define all(v) v.begin... |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long ll;
#define PI 3.14159265359
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define mp make_pair
#define all(v) v.begin... | [
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 354,209 | 354,210 | u545938555 | cpp |
p02640 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <typeinfo>
#include <vector>
using ... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <typeinfo>
#include <vector>
using ... | [
"expression.operation.binary.add"
] | 354,218 | 354,219 | u327242197 | cpp |
p02640 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a = x;
int b = 0;
int ans = 0;
if (y % 2 == 1) {
cout << "No" << endl;
} else {
for (int i = 0; i < x; i++) {
if ((a * 2 + b * 4) == y) {
ans++;
cout << "Y... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a = x;
int b = 0;
int ans = 0;
if (y % 2 == 1) {
cout << "No" << endl;
} else {
for (int i = 0; i <= x; i++) {
if ((a * 2 + b * 4) == y) {
ans++;
cout << "... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,220 | 354,221 | u108375911 | cpp |
p02640 | /*
* Project: AtCoder Beginners Contest 170 B - Crane and Turtle
* Author: toms74209200 <https://github.com/toms74209200>
*
* Created on 2020/06/14
* Copyright (c) 2020 toms74209200
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
#include <cstdio>
using ... | /*
* Project: AtCoder Beginners Contest 170 B - Crane and Turtle
* Author: toms74209200 <https://github.com/toms74209200>
*
* Created on 2020/06/14
* Copyright (c) 2020 toms74209200
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
#include <cstdio>
using ... | [
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change"
] | 354,224 | 354,225 | u781458283 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
for (int i = 0; i < X; i++) {
if (2 * i + 4 * (X - i) == Y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
for (int i = 0; i <= X; i++) {
if (2 * i + 4 * (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"
] | 354,235 | 354,236 | u199783079 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define l1 long long
int main() {
int x, y, f = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
for (int j = 0; j <= x; j++) {
if ((2 * i + 4 * j) == y && (i + j == x)) {
f = 1;
cout << "YES";
break;
}
}
if (f == 1)
... | #include <bits/stdc++.h>
using namespace std;
#define l1 long long
int main() {
int x, y, f = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
for (int j = 0; j <= x; j++) {
if ((2 * i + 4 * j) == y && (i + j == x)) {
f = 1;
cout << "Yes";
break;
}
}
if (f == 1)
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,237 | 354,238 | u751395707 | cpp |
p02640 | /*
*/
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep2(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) rep2(i, 0, n)
template <class T, class U> void chmin(T &t, U f) {
if (t > f)
t = f;
}
template <class T, class U> void chmax(T &t, U f) {
if (t < f)
t = f;
}
i... | /*
*/
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep2(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) rep2(i, 0, n)
template <class T, class U> void chmin(T &t, U f) {
if (t > f)
t = f;
}
template <class T, class U> void chmax(T &t, U f) {
if (t < f)
t = f;
}
i... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,239 | 354,240 | u277956366 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i < x; i++) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == 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"
] | 354,243 | 354,244 | u982047479 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, i, j = 0, k, x;
cin >> a >> b;
for (i = 1; i < a; i++) {
x = a - i;
k = (i * 2) + (x * 4);
if (k == b) {
j = 1;
break;
}
}
if (j == 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, i, j = 0, k, x;
cin >> a >> b;
for (i = 0; i <= a; i++) {
x = a - i;
k = (i * 2) + (x * 4);
if (k == b) {
j = 1;
break;
}
}
if (j == 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 354,247 | 354,248 | u841160581 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, i, j = 0, k, x;
cin >> a >> b;
for (i = 1; i <= a; i++) {
x = a - i;
k = (i * 2) + (x * 4);
if (k == b) {
j = 1;
break;
}
}
if (j == 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, i, j = 0, k, x;
cin >> a >> b;
for (i = 0; i <= a; i++) {
x = a - i;
k = (i * 2) + (x * 4);
if (k == b) {
j = 1;
break;
}
}
if (j == 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,249 | 354,248 | u841160581 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
ifstream f("A.in");
typedef long long ll;
int main() {
ll X, Y, a, b;
cin >> X >> Y;
if (Y % 2 == 0) {
a = (2 * X) - (Y / 2);
b = (Y / 2) - X;
// cout<<a<<' '<<b<<'\n';
if (a >= 0 && b >= 0)
cout << "YES";
else
cout << "NO";
} else
... | #include <bits/stdc++.h>
using namespace std;
ifstream f("A.in");
typedef long long ll;
int main() {
ll X, Y, a, b;
cin >> X >> Y;
if (Y % 2 == 0) {
a = (2 * X) - (Y / 2);
b = (Y / 2) - X;
// cout<<a<<' '<<b<<'\n';
if (a >= 0 && b >= 0)
cout << "Yes";
else
cout << "No";
} else
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,270 | 354,271 | u685977797 | cpp |
p02640 | #include <iostream>
#include <string>
using namespace std;
int main() {
long long x, y;
string ans = "No";
cin >> x >> y;
for (int i = 1; i <= x; i++) {
if (((i * 2) + ((x - i) * 4)) == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
long long x, y;
string ans = "No";
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if (((i * 2) + ((x - i) * 4)) == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,282 | 354,283 | u211701035 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, cnt = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int z;
z = (x - i) * 2 + i * 4;
if (z == y)
cnt++;
}
if (cnt > 0)
cout << "YES";
else
cout << "NO";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, cnt = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int z;
z = (x - i) * 2 + i * 4;
if (z == y)
cnt++;
}
if (cnt > 0)
cout << "Yes";
else
cout << "No";
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,290 | 354,291 | u350308906 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, cnt = 0;
cin >> x >> y;
for (int i = 1; i <= x; i++) {
int z;
z = (x - i) * 2 + i * 4;
if (z == y)
cnt++;
}
if (cnt > 0)
cout << "YES";
else
cout << "NO";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, cnt = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int z;
z = (x - i) * 2 + i * 4;
if (z == y)
cnt++;
}
if (cnt > 0)
cout << "Yes";
else
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",
"io.output.change"
] | 354,292 | 354,291 | u350308906 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#pragma GCC optimize(2)
#define int long long
#define MAXN 2000000
#define INF (1e13 + 7)
#define MANX MAXN
using namespace std;
inline int read() {
int x = 0, f = 1;
char c = getchar();
while (c > '9' || c < '0') {
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#pragma GCC optimize(2)
#define int long long
#define MAXN 2000000
#define INF (1e13 + 7)
#define MANX MAXN
using namespace std;
inline int read() {
int x = 0, f = 1;
char c = getchar();
while (c > '9' || c < '0') {
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,302 | 354,303 | u985967288 | 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";
} else {
cout << "NO";
}
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";
} else {
cout << "No";
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,304 | 354,305 | u369496143 | 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";
} else {
cout << "NO";
}
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";
} else {
cout << "No";
}
return 0;
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,306 | 354,305 | u369496143 | cpp |
p02640 | #include <algorithm>
#include <array>
#include <atomic>
#include <bitset>
#include <cassert>
#include <ccomplex>
#include <cctype>
#include <cerrno>
#include <cfenv>
#include <cfloat>
#include <chrono>
#include <cinttypes>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <codecvt>
#inc... | #include <algorithm>
#include <array>
#include <atomic>
#include <bitset>
#include <cassert>
#include <ccomplex>
#include <cctype>
#include <cerrno>
#include <cfenv>
#include <cfloat>
#include <chrono>
#include <cinttypes>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <codecvt>
#inc... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 354,313 | 354,314 | u467757727 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define pb push_back
#define pob pop_back
#define mp make_pair
#define ff first
#define ss second
#define pi 3.14159265
#define fast \
ios::sync_with_stdio(0); ... | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define pb push_back
#define pob pop_back
#define mp make_pair
#define ff first
#define ss second
#define pi 3.14159265
#define fast \
ios::sync_with_stdio(0); ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,317 | 354,318 | u538921852 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
int B;
cin >> A >> B;
string S = "No";
for (int i = 0; i < A + 1; i++) {
if ((12 - 2 * i) == B) {
S = "Yes";
break;
}
}
cout << S << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
int B;
cin >> A >> B;
string S = "No";
for (int i = 0; i < A + 1; i++) {
if ((4 * A - 2 * i) == B) {
S = "Yes";
break;
}
}
cout << S << endl;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 354,319 | 354,320 | u883297128 | cpp |
p02640 | // Author: HarshKumar
#include <bits/stdc++.h>
using namespace std;
#define ll int64_t
const ll N = 1e6 + 6, M = 1e9 + 7;
int main() {
ios::sync_with_stdio(false), cin.tie(nullptr);
ll x, y;
cin >> x >> y;
for (ll i = 0; i < 101; i++) {
if (2 * i + 4 * (x - i) == y)
return cout << "Yes", 0;
}
cou... | // Author: HarshKumar
#include <bits/stdc++.h>
using namespace std;
#define ll int64_t
const ll N = 1e6 + 6, M = 1e9 + 7;
int main() {
ios::sync_with_stdio(false), cin.tie(nullptr);
ll x, y;
cin >> x >> y;
for (ll i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == y)
return cout << "Yes", 0;
}
cout... | [
"control_flow.loop.for.condition.change"
] | 354,325 | 354,326 | u319625425 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define gc getchar_unlocked
#define foi(i, n) for (int i = 0; i < n; i++)
#define Foi(i, k, n) \
for (int i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)
#define fol(i, n) for (ll i = 0; i < n; i++)
#defin... | #include <bits/stdc++.h>
using namespace std;
#define gc getchar_unlocked
#define foi(i, n) for (int i = 0; i < n; i++)
#define Foi(i, k, n) \
for (int i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)
#define fol(i, n) for (ll i = 0; i < n; i++)
#defin... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,327 | 354,328 | u697407589 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int x, y;
int main(void) {
cin >> x >> y;
for (int i = 0; i <= 100; i++) {
int j = x - i;
if (2 * i + 4 * j == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int x, y;
int main(void) {
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int j = x - i;
if (2 * i + 4 * j == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 354,329 | 354,330 | u720447689 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (Y % 2 == 0 && Y >= X * 2) {
if (Y <= X * 4) {
cout << "Yes";
}
if (Y >= X * 4) {
cout << "No";
}
}
if (Y % 2 != 0 || Y < X * 2) {
cout << "No";
}
cout << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (Y % 2 == 0 && Y >= X * 2) {
if (Y <= X * 4) {
cout << "Yes";
}
if (Y > X * 4) {
cout << "No";
}
}
if (Y % 2 != 0 || Y < X * 2) {
cout << "No";
}
cout << endl;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,333 | 354,334 | u708446531 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool flag = false;
for (int i = 1; i <= 1000; i++)
for (int j = 1; j <= 1000; j++) {
if (i * 2 + j * 4 == y && i + j == x) {
flag = true;
break;
}
}
if (flag)
cout << "Yes" << endl;
el... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool flag = false;
for (int i = 0; i <= 100; i++)
for (int j = 0; j <= 100 - i; j++) {
if (i * 2 + j * 4 == y && i + j == x) {
flag = true;
break;
}
}
if (flag)
cout << "Yes" << endl;
... | [
"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.change"
] | 354,335 | 354,336 | u936552737 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x * 4 < y || y % 2 != 0)
cout << "No";
else
cout << "Yes";
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x * 4 < y || y % 2 != 0 || x * 2 > y)
cout << "No";
else
cout << "Yes";
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 354,339 | 354,340 | u945931038 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
int ans = 0;
cin >> x >> y;
for (int i = 1; i <= x; i++) {
if ((2 * i + 4 * (x - i)) == y) {
ans = 1;
break;
}
}
if (ans == 1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
int ans = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if ((2 * i + 4 * (x - i)) == y) {
ans = 1;
break;
}
}
if (ans == 1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,343 | 354,344 | u786261558 | cpp |
p02640 | #include <bits/stdc++.h>
#pragma region Macro
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define SORT(v) sort(v.begin(), v.end())
#define pb(a) push_back(a)
#define eb(a) emplace_back(a)
#define vi vector<int>
#define vvi vector<vector<int>>
#define chmax(x, y... | #include <bits/stdc++.h>
#pragma region Macro
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define SORT(v) sort(v.begin(), v.end())
#define pb(a) push_back(a)
#define eb(a) emplace_back(a)
#define vi vector<int>
#define vvi vector<vector<int>>
#define chmax(x, y... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 354,364 | 354,365 | u633451629 | cpp |
p02640 | #include <bits/stdc++.h>
#pragma region Macro
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define SORT(v) sort(v.begin(), v.end())
#define pb(a) push_back(a)
#define eb(a) emplace_back(a)
#define vi vector<int>
#define vvi vector<vector<int>>
#define chmax(x, y... | #include <bits/stdc++.h>
#pragma region Macro
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define SORT(v) sort(v.begin(), v.end())
#define pb(a) push_back(a)
#define eb(a) emplace_back(a)
#define vi vector<int>
#define vvi vector<vector<int>>
#define chmax(x, y... | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change"
] | 354,366 | 354,365 | u633451629 | cpp |
p02640 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y;
cin >> x >> y;
bool can = false;
for (int i = 0; i < y / 2; i++) {
if (2 * i + 4 * (x - i) == y) {
can = true;
break;
}
}
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y;
cin >> x >> y;
bool can = false;
for (int i = 0; i <= y / 2; i++) {
if (2 * i + 4 * (x - i) == y) {
can = true;
break;
}
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 354,369 | 354,370 | u332840922 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mp makepair
#define deb(x) cout << x << "\n";
#define deB(x, y) cout << x << " " << y << "\n";
#define Deb(x, y, z) cout << x << " " << y << " " << z << "\n"
#define YES cout << "YES\n";
#d... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mp makepair
#define deb(x) cout << x << "\n";
#define deB(x, y) cout << x << " " << y << "\n";
#define Deb(x, y, z) cout << x << " " << y << " " << z << "\n"
#define YES cout << "YES\n";
#d... | [
"expression.operation.binary.remove"
] | 354,371 | 354,372 | u913973971 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lld long double
#define vc vector
typedef pair<ll, ll> pairs;
int main() {
// your code goes here
std::ios::sync_with_stdio(false);
ll t, n, i, j, k, l, c, f;
vector<ll> a;
ll x, y;
cin >> x >> y;
if ((y & 1) || (y / 2 < x) || (2 *... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lld long double
#define vc vector
typedef pair<ll, ll> pairs;
int main() {
// your code goes here
std::ios::sync_with_stdio(false);
ll t, n, i, j, k, l, c, f;
vector<ll> a;
ll x, y;
cin >> x >> y;
if ((y & 1) || (y / 2 < x) || (2 *... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,379 | 354,380 | u862704043 | cpp |
p02640 | #include <bits/stdc++.h>
#define FOR(i, a, n) for (long long i = (a); i < (n); i++)
#define REP(i, n) for (long long i = 0; i < (n); i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define pb push_back
#define PI 3.14159265358979323846264338327950L
#define e18 1000000000000000000
using namespace std;
typedef long lo... | #include <bits/stdc++.h>
#define FOR(i, a, n) for (long long i = (a); i < (n); i++)
#define REP(i, n) for (long long i = 0; i < (n); i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define pb push_back
#define PI 3.14159265358979323846264338327950L
#define e18 1000000000000000000
using namespace std;
typedef long lo... | [
"expression.operation.binary.add"
] | 354,400 | 354,401 | u719183609 | cpp |
p02640 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef unsigned long long ULL;
void process();
int main() {
int X, Y;
int x;
cin >> X >> Y;
x = (Y - 4 * X) / (-2);
if (x >= 0 && 2 * x + 4 * (X - x) == Y) {
cout << "Yes" << endl;
} else {
cout <<... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef unsigned long long ULL;
void process();
int main() {
int X, Y;
int x;
cin >> X >> Y;
x = (Y - 4 * X) / (-2);
if (x >= 0 && x <= X && 2 * x + 4 * (X - x) == Y) {
cout << "Yes" << endl;
} else {
... | [
"control_flow.branch.if.condition.change"
] | 354,402 | 354,403 | u081275802 | cpp |
p02640 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 1; i <= y / 2; ++i) {
if (4 * x - 2 * i == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= y / 2; ++i) {
if (4 * x - 2 * i == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,404 | 354,405 | u707005489 | cpp |
p02640 | #include <algorithm>
#include <bitset>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
const int INF = 0x7fffffff;
us... | #include <algorithm>
#include <bitset>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
const int INF = 0x7fffffff;
us... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,406 | 354,407 | u146847434 | cpp |
p02640 | // I make this just for fun because i'm done
// Aimi Haraguni >> Konomi Suzuki >> Yui >> Ikimono Gakari >> Garnidelia >>
// Kalafina >> Eir Aoi. .. dude? problems that involves any kind of persistent
// data structures are the best of the best, are not them?
// #pragma GCC optimize ("Ofast,unroll-loops")
// #pragma... | // I make this just for fun because i'm done
// Aimi Haraguni >> Konomi Suzuki >> Yui >> Ikimono Gakari >> Garnidelia >>
// Kalafina >> Eir Aoi. .. dude? problems that involves any kind of persistent
// data structures are the best of the best, are not them?
// #pragma GCC optimize ("Ofast,unroll-loops")
// #pragma... | [
"control_flow.branch.if.condition.change"
] | 354,408 | 354,409 | u199278152 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 || -1 * x + y / 2 < 0 || 2 * x - y / 2 < 0) {
cout << "NO";
return 0;
}
cout << "YES";
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 || -1 * x + y / 2 < 0 || 2 * x - y / 2 < 0) {
cout << "No";
return 0;
}
cout << "Yes";
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,412 | 354,413 | u411319372 | cpp |
p02640 | #include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int ans = -1;
int a, b;
for (int i = 0; i <= x; i++) {
a = 0;
b = x - i;
if (2 * a + 4 * b == y) {
ans = 1;
}
}
if (ans == 1) {
cout << "Yes\n";
} else {
c... | #include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int ans = -1;
int a, b;
for (int i = 0; i <= x; i++) {
a = i;
b = x - i;
if (2 * a + 4 * b == y) {
ans = 1;
break;
}
}
if (ans == 1) {
cout << "Yes\n";
}... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove"
] | 354,414 | 354,415 | u061146866 | cpp |
p02640 | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define ll long long int
#define dbl double
#define pi acos(-1)
#define sc1(a) scanf("%lld", &a)
#define sc2(a, b) scanf("%lld%lld", &a, &b)
#define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c)
#define pb push_back
#define mxx 100000
map<string, ll> mp, ... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define ll long long int
#define dbl double
#define pi acos(-1)
#define sc1(a) scanf("%lld", &a)
#define sc2(a, b) scanf("%lld%lld", &a, &b)
#define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c)
#define pb push_back
#define mxx 100000
map<string, ll> mp, ... | [
"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",
"literal.string.change",
"literal.string.case.chang... | 354,416 | 354,417 | u303711088 | cpp |
p02640 | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define ll long long int
#define dbl double
#define pi acos(-1)
#define sc1(a) scanf("%lld", &a)
#define sc2(a, b) scanf("%lld%lld", &a, &b)
#define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c)
#define pb push_back
#define mxx 100000
map<string, ll> mp, ... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define ll long long int
#define dbl double
#define pi acos(-1)
#define sc1(a) scanf("%lld", &a)
#define sc2(a, b) scanf("%lld%lld", &a, &b)
#define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c)
#define pb push_back
#define mxx 100000
map<string, ll> mp, ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,418 | 354,417 | u303711088 | cpp |
p02640 | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define ll long long int
#define dbl double
#define pi acos(-1)
#define sc1(a) scanf("%lld", &a)
#define sc2(a, b) scanf("%lld%lld", &a, &b)
#define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c)
#define pb push_back
#define mxx 100000
map<string, ll> mp, ... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define ll long long int
#define dbl double
#define pi acos(-1)
#define sc1(a) scanf("%lld", &a)
#define sc2(a, b) scanf("%lld%lld", &a, &b)
#define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c)
#define pb push_back
#define mxx 100000
map<string, ll> mp, ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,419 | 354,417 | u303711088 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define phi 3.1415926535
using namespace std;
ll tc, cnt = 0, number, many, total = 0;
int rmove[4] = {0, 0, -1, 1};
int cmove[4] = {1, -1, 0, 0};
int main() {
ios_base::sync_with_stdio(f... | #include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define phi 3.1415926535
using namespace std;
ll tc, cnt = 0, number, many, total = 0;
int rmove[4] = {0, 0, -1, 1};
int cmove[4] = {1, -1, 0, 0};
int main() {
ios_base::sync_with_stdio(f... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,422 | 354,423 | u252292568 | cpp |
p02640 | #include <bits/stdc++.h>
#include <iostream>
#include <string.h>
int main(void) {
int x, y;
scanf("%d %d", &x, &y);
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
if ((i + j) == x && (i * 2) + (j * 4) == y) {
printf("Yes");
return 0;
}
}
}
printf("No"... | #include <bits/stdc++.h>
#include <iostream>
#include <string.h>
int main(void) {
int x, y;
scanf("%d %d", &x, &y);
for (int i = 0; i <= 100; i++) {
for (int j = 0; j <= 100; j++) {
if ((i + j) == x && (i * 2) + (j * 4) == y) {
printf("Yes");
return 0;
}
}
}
printf("No"... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,426 | 354,427 | u260035771 | cpp |
p02640 | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 1; i <= x; ++i) {
int result = i * 2 + (x ... | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
int result = i * 2 + (x ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,428 | 354,429 | u323542775 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define all(v) v.begin(), v.end()
#define ll long long int
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #include <bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define all(v) v.begin(), v.end()
#define ll long long int
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,430 | 354,431 | u232462132 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int m, n;
cin >> m >> n;
if (m <= n && n <= 2 * m && n % 2 == 0)
cout << "Yes" << endl;
else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int m, n;
cin >> m >> n;
if (m * 2 <= n && n <= 4 * m && n % 2 == 0)
cout << "Yes" << endl;
else {
cout << "No" << endl;
}
} | [
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 354,439 | 354,440 | u934015186 | cpp |
p02640 | #include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
if (y % 2 != 0) {
cout << "NO" << endl;
return 0;
}
if (2 * x <= y && y <= 4 * x) {
cout << "YES" << endl;
return 0;
} else {
cout << "NO" << endl;
return 0;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
if (y % 2 != 0) {
cout << "No" << endl;
return 0;
}
if (2 * x <= y && y <= 4 * x) {
cout << "Yes" << endl;
return 0;
} else {
cout << "No" << endl;
return 0;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,441 | 354,442 | u380844736 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (b % 2 != 0) {
cout << "NO" << endl;
return 0;
} else {
if (a * 4 < b || a * 2 > b) {
cout << "NO" << endl;
return 0;
}
cout << "YES" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (b % 2 != 0) {
cout << "No" << endl;
return 0;
} else {
if (a * 4 < b || a * 2 > b) {
cout << "No" << endl;
return 0;
}
cout << "Yes" << endl;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,453 | 354,454 | u935723832 | cpp |
p02640 | #include <bits/stdc++.h>
#define DEBUG if (0)
#define lli long long int
#define ldouble long double
using namespace std;
int main() {
int x, y;
while (scanf("%d %d", &x, &y) != EOF) {
bool can = true;
int b = (y - 2 * x) / 2;
if ((y - 2 * x) & 1)
can = false;
if (x - b < 0)
can = false;... | #include <bits/stdc++.h>
#define DEBUG if (0)
#define lli long long int
#define ldouble long double
using namespace std;
int main() {
int x, y;
while (scanf("%d %d", &x, &y) != EOF) {
bool can = true;
int b = (y - 2 * x) / 2;
if (((y - 2 * x) & 1) || b < 0)
can = false;
if (x - b < 0)
c... | [
"control_flow.branch.if.condition.change"
] | 354,464 | 354,465 | u815140247 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define inf ll(1e18)
#define mod 1000000007
#define mod1 998244353
#define mod2 999983
ll power(ll a, ll n, ll m);
ll power(ll a, ll n, ll m) {
if (n == 0)
return 1;
ll x = power(a, n / 2, m);
if (n % 2 != 0)
return (((a * x) % m) * (... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define inf ll(1e18)
#define mod 1000000007
#define mod1 998244353
#define mod2 999983
ll power(ll a, ll n, ll m);
ll power(ll a, ll n, ll m) {
if (n == 0)
return 1;
ll x = power(a, n / 2, m);
if (n % 2 != 0)
return (((a * x) % m) * (... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,470 | 354,471 | u664669423 | cpp |
p02640 | #include <algorithm>
#include <iomanip> // std::setprecision()
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define YES cout << "YES" << endl;
#... | #include <algorithm>
#include <iomanip> // std::setprecision()
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define YES cout << "YES" << endl;
#... | [
"variable_declaration.remove",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,472 | 354,473 | u607564800 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define l long
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define M1 1000000007
#define M2 998244353
#define fl(i, a, b) for (ll i = a; i < b; i++)
#define bfl(i, a, b) for (ll i = b - 1; i >= a; ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define l long
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define M1 1000000007
#define M2 998244353
#define fl(i, a, b) for (ll i = a; i < b; i++)
#define bfl(i, a, b) for (ll i = b - 1; i >= a; ... | [
"literal.number.change",
"call.arguments.change"
] | 354,478 | 354,479 | u091578675 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <unordered_map>
typedef long long ll;
typedef long double ld;
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 ((i * 4 + j... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <unordered_map>
typedef long long ll;
typedef long double ld;
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 ((i * 4 + j... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,480 | 354,481 | u681778599 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <utility>
#include <vector>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (n); i++)
usi... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <utility>
#include <vector>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (n); i++)
usi... | [
"expression.operation.binary.add"
] | 354,490 | 354,491 | u272628953 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <utility>
#include <vector>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (n); i++)
usi... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <utility>
#include <vector>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (n); i++)
usi... | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change"
] | 354,492 | 354,491 | u272628953 | cpp |
p02640 | //
// Created by 26019 on 2020/6/14/014.
//
#include <iostream>
using namespace std;
void solve() {
int x, y;
cin >> x >> y;
for (int i = 0; i < x; ++i) {
if ((2 * i + (x - i) * 4) == y) {
cout << "Yes";
return;
}
}
cout << "No";
}
int main() {
solve();
return 0;
}
| //
// Created by 26019 on 2020/6/14/014.
//
#include <iostream>
using namespace std;
void solve() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
if ((2 * i + (x - i) * 4) == y) {
cout << "Yes";
return;
}
}
cout << "No";
}
int main() {
solve();
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 354,500 | 354,501 | u005039821 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define pf push_front
#define fr first
#define sc second
#define r_0 return 0
#define ld long double
using namespace std;
const ll N = 1e2 + 7;
const ll mod = 1e9 + 7;
void solve() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
in... | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define pf push_front
#define fr first
#define sc second
#define r_0 return 0
#define ld long double
using namespace std;
const ll N = 1e2 + 7;
const ll mod = 1e9 + 7;
void solve() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
in... | [
"literal.number.change",
"expression.operation.binary.change"
] | 354,506 | 354,507 | u933963158 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define pf push_front
#define fr first
#define sc second
#define r_0 return 0
#define ld long double
using namespace std;
const ll N = 1e2 + 7;
const ll mod = 1e9 + 7;
void solve() {
int x, y;
cin >> x >> y;
for (int i = 1; i <= x; ++i) {
in... | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define pf push_front
#define fr first
#define sc second
#define r_0 return 0
#define ld long double
using namespace std;
const ll N = 1e2 + 7;
const ll mod = 1e9 + 7;
void solve() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
in... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 354,508 | 354,507 | u933963158 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool A = false;
for (int i = 0; i <= 100; i++) {
if (2 * i + 4 * (X - i) == Y) {
A = true;
break;
}
}
if (A)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool A = false;
for (int i = 0; i <= X; i++) {
if (2 * i + 4 * (X - i) == Y) {
A = true;
break;
}
}
if (A)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 354,509 | 354,510 | u393487335 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
typedef long int li;
void solve() {
int X, Y, x, y;
bool ans = 0;
cin >> X >> Y;
if (Y % 2 == 0) {
y = Y / 2 - X;
if (X - y >= 0)
ans = 1;
}
cout << (ans == 1 ? "Yes" : "No") << '\n';
}
int main() {
ios::sync_with_st... | #include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
typedef long int li;
void solve() {
int X, Y, x, y;
bool ans = 0;
cin >> X >> Y;
if (Y % 2 == 0) {
y = Y / 2 - X;
if (X - y >= 0 && y >= 0)
ans = 1;
}
cout << (ans == 1 ? "Yes" : "No") << '\n';
}
int main() {
ios::sy... | [
"control_flow.branch.if.condition.change"
] | 354,513 | 354,514 | u126793530 | cpp |
p02640 |
//
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// const int INF = 2147483647;
// const ll INF = 9223372036854775807;
// const ll MOD = 1e9 + 7;
int main() {
int X, Y;
cin >> X >> Y;
string ans = "No";
for (int i = 1; i <= X; i++) {
int a = i;
int b = X - i;
if (a * 2 + b ... |
//
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// const int INF = 2147483647;
// const ll INF = 9223372036854775807;
// const ll MOD = 1e9 + 7;
int main() {
int X, Y;
cin >> X >> Y;
string ans = "No";
for (int i = 0; i <= X; i++) {
int a = i;
int b = X - i;
if (a * 2 + b ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,517 | 354,518 | u790272146 | cpp |
p02640 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int y_sum = 2 * x;
for (int i = 0; i < x; i++) {
if (y_sum == y) {
cout << "Yes" << endl;
return 0;
}
y_sum += 2;
}
cout << "No" << endl;
} | #include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int y_sum = 2 * x;
for (int i = 0; i <= x; i++) {
if (y_sum == y) {
cout << "Yes" << endl;
return 0;
}
y_sum += 2;
}
cout << "No" << endl;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 354,519 | 354,520 | u057617112 | cpp |
p02640 | #include <bits/stdc++.h>
#define endl '\n'
#define ll long long
using namespace std;
ll lcm(ll a, ll b) {
if (!a || !b)
return 0;
return a * b / __gcd(a, b);
}
bool isPrime(int n) {
if (n <= 1)
return false;
if (n <= 3)
return true;
if (n % 2 == 0 || n % 3 == 0)
return false;
for (int i = 5;... | #include <bits/stdc++.h>
#define endl '\n'
#define ll long long
using namespace std;
ll lcm(ll a, ll b) {
if (!a || !b)
return 0;
return a * b / __gcd(a, b);
}
bool isPrime(int n) {
if (n <= 1)
return false;
if (n <= 3)
return true;
if (n % 2 == 0 || n % 3 == 0)
return false;
for (int i = 5;... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,521 | 354,522 | u060587988 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 1)
cout << "NO";
else {
if ((y >= 2 * x) && (y <= 4 * x))
cout << "Yes";
else
cout << "No";
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 1)
cout << "No";
else {
if ((y >= 2 * x) && (y <= 4 * x))
cout << "Yes";
else
cout << "No";
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,535 | 354,536 | u823785360 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 1)
cout << "NO";
else {
if (y >= 2 * x && y <= 4 * x)
cout << "Yes";
else
cout << "No";
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 1)
cout << "No";
else {
if ((y >= 2 * x) && (y <= 4 * x))
cout << "Yes";
else
cout << "No";
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change",
"control_flow.branch.if.condition.change"
] | 354,537 | 354,536 | u823785360 | cpp |
p02640 | //
// main.cpp
// 1234
//
// Created by Moha Jain on 14/04/20.
// Copyright © 2020 Moha Jain. All rights reserved.
//
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordere... | //
// main.cpp
// 1234
//
// Created by Moha Jain on 14/04/20.
// Copyright © 2020 Moha Jain. All rights reserved.
//
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordere... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,538 | 354,539 | u133449036 | cpp |
p02640 | #include <algorithm>
#include <climits>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int tmp = (2 * x - y);
if ((y % 2 == 0) && (tmp >= 0) && (tmp % 2 =... | #include <algorithm>
#include <climits>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int tmp = (y - 2 * x);
if ((y % 2 == 0) && (tmp >= 0) && (tmp % 2 =... | [
"expression.operation.binary.remove"
] | 354,540 | 354,541 | u758091069 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int X, Y;
cin >> X >> Y;
if (Y % 2 == 1 || 4 * X <= Y) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i <= X; i++) {
int j = X - i;
if ((2 * i + 4 * j) == Y || (4 * i + 2 * ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int X, Y;
cin >> X >> Y;
if (Y % 2 == 1 || 4 * X < Y) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i <= X; i++) {
int j = X - i;
if ((2 * i + 4 * j) == Y || (4 * i + 2 * j... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,542 | 354,543 | u231961655 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = 0;
bool exist = false;
for (int i = 0; i <= X; i++) {
c = i * 2 + 4 * (X - i);
if (c == Y)
exist = true;
}
if (exist)
cout << "YES" << endl;
else
cout << "NO" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = 0;
bool exist = false;
for (int i = 0; i <= X; i++) {
c = i * 2 + 4 * (X - i);
if (c == Y)
exist = true;
}
if (exist)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,544 | 354,545 | u922638655 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = 0;
bool exist = false;
for (int i = 1; i < X; i++) {
c = i * 2 + 4 * (X - i);
if (c == Y)
exist = true;
}
if (exist)
cout << "YES" << endl;
else
cout << "NO" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = 0;
bool exist = false;
for (int i = 0; i <= X; i++) {
c = i * 2 + 4 * (X - i);
if (c == Y)
exist = true;
}
if (exist)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"literal.string.change",
"literal.string.case.chang... | 354,546 | 354,545 | u922638655 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = 0;
bool exist = false;
for (int i = 0; i < X; i++) {
c = i * 2 + 4 * (X - i);
if (c == Y)
exist = true;
}
if (exist)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = 0;
bool exist = false;
for (int i = 0; i <= X; i++) {
c = i * 2 + 4 * (X - i);
if (c == Y)
exist = true;
}
if (exist)
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"
] | 354,547 | 354,545 | u922638655 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = 0;
bool exist = false;
for (int i = 0; i < X; i++) {
c = i * 2 + 4 * (X - i);
if (c == Y)
exist = true;
}
if (exist)
cout << "YES" << endl;
else
cout << "NO" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = 0;
bool exist = false;
for (int i = 0; i <= X; i++) {
c = i * 2 + 4 * (X - i);
if (c == Y)
exist = true;
}
if (exist)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,548 | 354,545 | u922638655 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y, m;
cin >> X >> Y;
m = Y - 2 * X;
if ((m > 0) && (m % 2 == 0) && (X - m / 2 > 0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y, m;
cin >> X >> Y;
m = Y - 2 * X;
if ((m >= 0) && (m % 2 == 0) && (X - m / 2 >= 0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,549 | 354,550 | u502465075 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int X, Y, a, b;
cin >> X >> Y;
a = (Y - 2 * X) % 2;
b = (4 * X - Y) % 2;
if (a == 0 && (Y - 2 * X) > 0) {
if (b == 0 && (4 * X - Y) > 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "N... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int X, Y, a, b;
cin >> X >> Y;
a = (Y - 2 * X) % 2;
b = (4 * X - Y) % 2;
if (a == 0 && (Y - 2 * X) >= 0) {
if (b == 0 && (4 * X - Y) >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,553 | 354,554 | u264721671 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y > 4 * x || y % 2 != 0) {
cout << "No";
} else
cout << "Yes";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y > 4 * x || y % 2 != 0 || y < 2 * x) {
cout << "No";
} else
cout << "Yes";
}
| [
"control_flow.branch.if.condition.change"
] | 354,556 | 354,557 | u851353023 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y, c, t;
cin >> x >> y;
c = (4 * x - y) / 2;
t = (y - 2 * x) / 2;
if (y % 2 != 0 || x * 4 < y) {
cout << "No";
} else {
cout << "Yes";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y, c, t;
cin >> x >> y;
c = (4 * x - y) / 2;
t = (y - 2 * x) / 2;
if (y % 2 != 0 || x * 4 < y || x * 2 > y) {
cout << "No";
} else {
cout << "Yes";
}
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 354,562 | 354,563 | u116490201 | cpp |
p02640 | //#pragma GCC optimize("03,unroll-loops")
//#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
typedef long long ll;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ordered_set \
tree<int, null_type, less_equal<... | //#pragma GCC optimize("03,unroll-loops")
//#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
typedef long long ll;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ordered_set \
tree<int, null_type, less_equal<... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,568 | 354,569 | u861821657 | cpp |
p02640 | //#pragma GCC optimize("03,unroll-loops")
//#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
typedef long long ll;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ordered_set \
tree<int, null_type, less_equal<... | //#pragma GCC optimize("03,unroll-loops")
//#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
typedef long long ll;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ordered_set \
tree<int, null_type, less_equal<... | [
"variable_declaration.type.change",
"control_flow.loop.for.initializer.change",
"literal.number.change",
"variable_declaration.value.change",
"expression.off_by_one"
] | 354,570 | 354,569 | u861821657 | cpp |
p02640 | //#pragma GCC optimize("03,unroll-loops")
//#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
typedef long long ll;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ordered_set \
tree<int, null_type, less_equal<... | //#pragma GCC optimize("03,unroll-loops")
//#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
typedef long long ll;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ordered_set \
tree<int, null_type, less_equal<... | [
"variable_declaration.type.change",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,571 | 354,569 | u861821657 | cpp |
p02640 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
using namespace __gnu_pbds;
using namespace std;
typedef tree<long long, null_type, less<long long>, rb_tree_tag,
tree_order_statistics_node_update>
new_data_set;
// defines
ty... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
using namespace __gnu_pbds;
using namespace std;
typedef tree<long long, null_type, less<long long>, rb_tree_tag,
tree_order_statistics_node_update>
new_data_set;
// defines
ty... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,572 | 354,573 | u499401864 | cpp |
p02640 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,576 | 354,577 | u917502362 | cpp |
p02640 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.branch.if.condition.change"
] | 354,578 | 354,577 | u917502362 | cpp |
p02640 | #include <bits/stdc++.h>
#define log(x) cout << x << endl
#define pb push_back
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
typedef long long lint;
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;... | #include <bits/stdc++.h>
#define log(x) cout << x << endl
#define pb push_back
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
typedef long long lint;
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,587 | 354,588 | u765118693 | cpp |
p02640 | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <string.h>
#include <vector>
using namespace std;
#define rep(i, a, b) for (int i = a; i < b; i++)
#define repb(i, a, b) for (int i = a; i >= b; i--)
#define replb(i, a, b) f... | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <string.h>
#include <vector>
using namespace std;
#define rep(i, a, b) for (int i = a; i < b; i++)
#define repb(i, a, b) for (int i = a; i >= b; i--)
#define replb(i, a, b) f... | [
"control_flow.branch.if.condition.change"
] | 354,593 | 354,594 | u547433112 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
y = y / 2;
int a = y - x;
if (a > 0 && a < x)
cout << "Yes";
else
cout << "No";
} else
cout << "No";
} | #include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
y = y / 2;
int a = y - x;
if (a >= 0 && a <= x)
cout << "Yes";
else
cout << "No";
} else
cout << "No";
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,597 | 354,598 | u695743793 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
y = y / 2;
int a = y - x;
if (a < x)
cout << "Yes";
else
cout << "No";
} else
cout << "No";
} | #include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
y = y / 2;
int a = y - x;
if (a >= 0 && a <= x)
cout << "Yes";
else
cout << "No";
} else
cout << "No";
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,599 | 354,598 | u695743793 | cpp |
p02640 | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int X, Y;
cin >> X >> Y;
int i, k;
k = 0;
for (i = 0; i <= X; i++) {
if (i * 2 + (X - i) * 4 == Y) {
k = 1;
break;
}
}
if (k == 1) {
cout << "YES" << endl;
}
if (k == 0) {
cout << "NO" << endl;... | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int X, Y;
cin >> X >> Y;
int i, k;
k = 0;
for (i = 0; i <= X; i++) {
if (i * 2 + (X - i) * 4 == Y) {
k = 1;
break;
}
}
if (k == 1) {
cout << "Yes" << endl;
}
if (k == 0) {
cout << "No" << endl;... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,600 | 354,601 | u695474809 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll total, legs;
cin >> total;
cin >> legs;
ll min = total * 2;
ll max = total * 4;
if (legs >= min && legs <= max && (legs % 2 == 0)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll total, legs;
cin >> total;
cin >> legs;
ll min = total * 2;
ll max = total * 4;
if (legs >= min && legs <= max && (legs % 2 == 0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,619 | 354,620 | u514274667 | cpp |
p02640 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(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 ll mod = 1e9 + 7;
int main() {
int x, y;
cin >> x >> y;
rrep(i, x) {
if (2 * i + 4 ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(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 ll mod = 1e9 + 7;
int main() {
int x, y;
cin >> x >> y;
rep(i, x + 1) {
if (2 * i +... | [
"expression.operation.binary.add"
] | 354,625 | 354,626 | u094534261 | cpp |
p02640 | // MD. HASNAIN ALI (UNSOLVED)
#include <iostream>
#include <stddef.h>
#define ll long long
#define pii pair<int, int>
#define distance(a, b) (sq(a.x - b.x) + sq(a.y - b.y))
#define MAX3(a, b, c) max(a, max(b, c))
#define SQ(x) ((x) * (x))
#define FastIO ... | // MD. HASNAIN ALI (UNSOLVED)
#include <iostream>
#include <stddef.h>
#define ll long long
#define pii pair<int, int>
#define distance(a, b) (sq(a.x - b.x) + sq(a.y - b.y))
#define MAX3(a, b, c) max(a, max(b, c))
#define SQ(x) ((x) * (x))
#define FastIO ... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,629 | 354,630 | u003754852 | cpp |
p02640 | // Length of largest subarray with 0 Sum
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int sum = 0;
bool flag = false;
for (int i = 1; i <= x; i++) {
sum = i * 2 + (x - i) * 4;
if (sum == y) {
cout << "Yes";
flag = true;
break;
}
}
if (!f... | // Length of largest subarray with 0 Sum
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int sum = 0;
bool flag = false;
for (int i = 0; i <= x; i++) {
sum = i * 2 + (x - i) * 4;
if (sum == y) {
cout << "Yes";
flag = true;
break;
}
}
if (!f... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,636 | 354,637 | u802406405 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.