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 ll = long long;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i < x; i++) {
for (int j = i; j < x; j++) {
if (i * 4 + (x - j) * 2 == y) {
cout << "Yes" << endl;
return 0;
}
}
}
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
for (int j = i; j <= x; j++) {
if ((j * 4 + (x - j) * 2) == y) {
cout << "Yes" << endl;
return 0;
}
}
}
cout << "No" << endl;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 352,162 | 352,160 | u089885969 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
// your code goes here
int n, p;
cin >> n >> p;
bool res = true;
for (int i = 1; i < n; i++)
if ((i * 2 + (n - i) * 4) == p)
res = true;
(res) ? cout << "Yes" : cout << "No";
return 0;
} | #include <iostream>
using namespace std;
int main() {
// your code goes here
int n, p;
cin >> n >> p;
bool res = false;
for (int i = 0; i < n + 1; i++)
if ((i * 2 + (n - i) * 4) == p)
res = true;
(res) ? cout << "Yes" : cout << "No";
return 0;
} | [
"misc.opposites",
"variable_declaration.value.change",
"literal.number.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 352,167 | 352,168 | u823542840 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
// your code goes here
int n, p;
cin >> n >> p;
bool res = false;
for (int i = 1; i < n + 1; i++)
if ((i * 2 + (n - i) * 4) == p)
res = true;
(res) ? cout << "Yes" : cout << "No";
return 0;
} | #include <iostream>
using namespace std;
int main() {
// your code goes here
int n, p;
cin >> n >> p;
bool res = false;
for (int i = 0; i < n + 1; i++)
if ((i * 2 + (n - i) * 4) == p)
res = true;
(res) ? cout << "Yes" : cout << "No";
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 352,169 | 352,168 | u823542840 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
// your code goes here
int n, p;
cin >> n >> p;
bool res = false;
for (int i = 1; i < n; i++)
if ((i * 2 + (n - i) * 4) == p)
res = true;
(res) ? cout << "Yes" : cout << "No";
return 0;
} | #include <iostream>
using namespace std;
int main() {
// your code goes here
int n, p;
cin >> n >> p;
bool res = false;
for (int i = 0; i < n + 1; i++)
if ((i * 2 + (n - i) * 4) == p)
res = true;
(res) ? cout << "Yes" : cout << "No";
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 352,170 | 352,168 | u823542840 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, o, n) for (long long i = o; i < n; i++)
#define oneforall \
ios::sync_with_stdio(false); \
cin.tie(0);
#define all(v) (v).begin(), (v).end()
#defi... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, o, n) for (long long i = o; i < n; i++)
#define oneforall \
ios::sync_with_stdio(false); \
cin.tie(0);
#define all(v) (v).begin(), (v).end()
#defi... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 352,171 | 352,172 | u203197031 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define hyperspeed \
ios::sync_with_stdio(false); \
cin.tie(NULL);
#define ll long long
#define ui unsigned int
#define li long int
#define pb push_back
#define l... | #include <bits/stdc++.h>
using namespace std;
#define hyperspeed \
ios::sync_with_stdio(false); \
cin.tie(NULL);
#define ll long long
#define ui unsigned int
#define li long int
#define pb push_back
#define l... | [
"variable_declaration.type.change",
"control_flow.loop.for.initializer.change",
"literal.number.change",
"variable_declaration.value.change",
"expression.off_by_one"
] | 352,176 | 352,177 | u448045432 | cpp |
p02640 | #include <bits/stdc++.h>
#define _USE_MATH_DEFINES
using namespace std;
// 型シノニム
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> P;
// 定数
constexpr ll INF = 1e16;
constexpr ll INM = 114514;
constexpr ll MOD = 1e9 + 7;
constexpr ld EPS = 1e-12;
constexpr ll dx[4] = {1, 0, -1, 0};
constexpr ll dy[4] = ... | #include <bits/stdc++.h>
#define _USE_MATH_DEFINES
using namespace std;
// 型シノニム
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> P;
// 定数
constexpr ll INF = 1e16;
constexpr ll INM = 114514;
constexpr ll MOD = 1e9 + 7;
constexpr ld EPS = 1e-12;
constexpr ll dx[4] = {1, 0, -1, 0};
constexpr ll dy[4] = ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,178 | 352,179 | u872959410 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y, i, a = 0, s = 0;
cin >> x >> y;
for (i = 0; i <= x; i++) {
s = x - i;
a = i * 2 + s * 4;
if (a == y) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y, i, a = 0, s = 0;
cin >> x >> y;
for (i = 0; i <= x; i++) {
s = x - i;
a = i * 2 + s * 4;
if (a == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,180 | 352,181 | u662808567 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y, i, a = 0, s = 0;
cin >> x >> y;
for (i = 0; i < x; i++) {
s = x - i;
a = i * 2 + s * 4;
if (a == y) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
}
| #include <iostream>
using namespace std;
int main() {
int x, y, i, a = 0, s = 0;
cin >> x >> y;
for (i = 0; i <= x; i++) {
s = x - i;
a = i * 2 + s * 4;
if (a == 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",
"literal.string.change",
"literal.string.case.change",
"io.output.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 352,182 | 352,181 | u662808567 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
void solve() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= 100; i++) {
int a = x - i; // Are no of turtles
if (a >= 0) {
if ((i * 2 + a * 4) == y) {
cout << "YES" << endl;
return;
}
}
}... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
void solve() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= 100; i++) {
int a = x - i; // Are no of turtles
if (a >= 0) {
if ((i * 2 + a * 4) == y) {
cout << "Yes" << endl;
return;
}
}
}... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,183 | 352,184 | u842857133 | cpp |
p02640 | #include <bits/stdc++.h> //
#define ll long long
using namespace std;
int main() {
ll i, x, y, cr, turt;
cin >> x >> y;
for (i = 0; i <= y; i++) {
turt = x - i;
if (2 * i + 4 * turt == y)
return cout << "Yes" << endl, 0;
}
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h> //
#define ll long long
using namespace std;
int main() {
ll i, x, y, turt;
cin >> x >> y;
for (i = 0; i <= x; i++) {
turt = x - i;
if (2 * i + 4 * turt == y)
return cout << "Yes" << endl, 0;
}
cout << "No" << endl;
return 0;
}
| [
"variable_declaration.remove",
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 352,195 | 352,196 | u465068976 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n_animals, n_legs, c, t;
scanf("%d %d", &n_animals, &n_legs);
bool found = false;
for (c = 1; c <= n_animals; c++) {
t = n_animals - c;
if (c * 2 + t * 4 == n_legs) {
found = true;
break;
}
}
if (found == true) {
pri... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n_animals, n_legs, c, t;
scanf("%d %d", &n_animals, &n_legs);
bool found = false;
for (c = 0; c <= n_animals; c++) {
t = n_animals - c;
if (c * 2 + t * 4 == n_legs) {
found = true;
break;
}
}
if (found == true) {
pri... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 352,201 | 352,202 | u229703009 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n_animals, n_legs, c, t;
scanf("%d %d", &n_animals, &n_legs);
bool found = false;
for (c = 1; c <= n_animals; c++) {
t = n_animals - c;
if (c * 2 + t * 4 == n_legs) {
found = true;
break;
}
}
if (c == true) {
printf(... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n_animals, n_legs, c, t;
scanf("%d %d", &n_animals, &n_legs);
bool found = false;
for (c = 0; c <= n_animals; c++) {
t = n_animals - c;
if (c * 2 + t * 4 == n_legs) {
found = true;
break;
}
}
if (found == true) {
pri... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 352,203 | 352,202 | u229703009 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, i;
cin >> x >> y;
if (y % 2 == 0 || !(y > x * 4)) {
for (i = 0; i <= x && ((i * 2) + ((x - i) * 4)) != y; i++)
;
if (i > x)
cout << "NO\n";
else
cout << "YES\n";
} else
cout << "NO\n";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, i;
cin >> x >> y;
if (y % 2 == 0 && !(y > x * 4)) {
for (i = 0; i <= x && ((i * 2) + ((x - i) * 4)) != y; i++)
;
if (i > x)
cout << "No\n";
else
cout << "Yes\n";
} else
cout << "No\n";
} | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,209 | 352,210 | u720448853 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (int i = a; i < b; i++)
#define repn(i, a, b) for (int i = a; i >= b; i--)
#define MOD 1000000007
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int x, y;
cin >> x >> y;
int t, c;
bool flag = 1;
if (y % 2 == ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (int i = a; i < b; i++)
#define repn(i, a, b) for (int i = a; i >= b; i--)
#define MOD 1000000007
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int x, y;
cin >> x >> y;
int t, c;
bool flag = 1;
if (y % 2 == ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,217 | 352,218 | u917560904 | cpp |
p02640 | #include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
int z;
for (int i = 0; i <= x; i++) {
z = y - i * 2 + (x - i) * 4;
if (z == 0) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
int z;
for (int i = 0; i <= x; i++) {
z = y - i * 2 - (x - i) * 4;
if (z == 0) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 352,219 | 352,220 | u018638304 | cpp |
p02640 | #include <bits/stdc++.h>
#define fr first
#define se second
#define r_0 return 0;
#define ll long long
#define pb push_back
#define TIME ios_base::sync_with_stdio(0)
using namespace std;
vector<int> V, L;
vector<string> Ans;
map<int, int> M;
set<ll> S;
set<char>::iterator it;
ll n, m, a, b, c, d, e, f, x, y, z, t, l = ... | #include <bits/stdc++.h>
#define fr first
#define se second
#define r_0 return 0;
#define ll long long
#define pb push_back
#define TIME ios_base::sync_with_stdio(0)
using namespace std;
vector<int> V, L;
vector<string> Ans;
map<int, int> M;
set<ll> S;
set<char>::iterator it;
ll n, m, a, b, c, d, e, f, x, y, z, t, l = ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,221 | 352,222 | u462922949 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
/* typedef */
typedef long long ll;
typedef pair<int, int> pii;
/* constant */
const int INF = 1 << 30;
const ll LINF = 1LL << 50;
const int NIL = -1;
const int MAX = 10000;
const int mod = 1000000007;
const double pi = 3.141592653589;
/* global variables */
/* function */
... | #include <bits/stdc++.h>
using namespace std;
/* typedef */
typedef long long ll;
typedef pair<int, int> pii;
/* constant */
const int INF = 1 << 30;
const ll LINF = 1LL << 50;
const int NIL = -1;
const int MAX = 10000;
const int mod = 1000000007;
const double pi = 3.141592653589;
/* global variables */
/* function */
... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 352,233 | 352,234 | u603234915 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define M_PIl 3.141592653589793238462643383279502884
using namespace std;
typedef long long ll;
typedef long double ld;
int main() {
ll a, b;
cin >> a >> ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define M_PIl 3.141592653589793238462643383279502884
using namespace std;
typedef long long ll;
typedef long double ld;
int main() {
ll a, b;
cin >> a >> ... | [
"variable_declaration.add",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 352,235 | 352,236 | u491044700 | cpp |
p02640 | #include <bits/stdc++.h>
#define pb push_back
#define s(a, x, y) sort(a.begin() + x, a.begin() + y);
#define mp make_pair
#define F first
#define S second
#define ll long long
using namespace std;
ll a, b, c, d, e;
int main() {
cin >> a >> b;
if (b % 2 == 0 || b > 4 * a || b < 2 * a)
cout << "No";
else
co... | #include <bits/stdc++.h>
#define pb push_back
#define s(a, x, y) sort(a.begin() + x, a.begin() + y);
#define mp make_pair
#define F first
#define S second
#define ll long long
using namespace std;
ll a, b, c, d, e;
int main() {
cin >> a >> b;
if (b % 2 != 0 || b > 4 * a || b < 2 * a)
cout << "No";
else
co... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,243 | 352,244 | u757666499 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int X{}, Y{};
cin >> X >> Y;
if (Y % 2 == 0) {
if ((Y - (2 * X)) / 2 <= 25 && (Y - (2 * X)) / 2 >= 0)
cout << "Yes";
else
cout << "No";
} else {
cout << "No";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int X{}, Y{};
cin >> X >> Y;
if (Y % 2 == 0) {
if ((Y - (2 * X)) / 2 <= X && (Y - (2 * X)) / 2 >= 0)
cout << "Yes";
else
cout << "No";
} else {
cout << "No";
}
return 0;
}
| [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 352,254 | 352,255 | u749582954 | cpp |
p02640 | // Crane and Turtle
#include <algorithm>
#include <initializer_list>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
const int INF = 1 << 29;
int mai... | // Crane and Turtle
#include <algorithm>
#include <initializer_list>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
const int INF = 1 << 29;
int mai... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 352,272 | 352,273 | u362209280 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int t, k, X, Y, j;
cin >> X >> Y;
k = X;
for (int i = 0; i < X + 1; i++) {
if (4 * (k - 2 * i) == Y) {
j = 1;
}
}
if (j == 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int t, k, X, Y, j;
cin >> X >> Y;
k = X;
j = 0;
for (int i = 0; i < X + 1; i++) {
if (4 * k - 2 * i == Y) {
j = 1;
}
}
if (j == 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [
"assignment.add",
"control_flow.branch.if.condition.change"
] | 352,292 | 352,293 | u886043617 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x;
int y;
cin >> x >> y;
for (int i = 1; i <= x; i++) {
if (y == 2 * i + 4 * (x - i)) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
int y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
// if(y == 2 * i + 4 * (x - i) || y == 2 * (x - i) + 4 * i){
if (y == 2 * i + 4 * (x - i)) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 352,294 | 352,295 | u478507572 | cpp |
p02640 | #include <bits/stdc++.h>
#define PI 3.1415926535897
using namespace std;
typedef long long ll;
const int INF = 1000000000;
const ll LINF = 1000000000000000000; // 1e18
const double EPS = 1e-10;
int main(void) {
int X, Y;
cin >> X >> Y;
int j;
for (int i = 0; i <= Y; i++) {
j = X - i;
if (i * 2 + j * 4... | #include <bits/stdc++.h>
#define PI 3.1415926535897
using namespace std;
typedef long long ll;
const int INF = 1000000000;
const ll LINF = 1000000000000000000; // 1e18
const double EPS = 1e-10;
int main(void) {
int X, Y;
cin >> X >> Y;
int j;
for (int i = 0; i <= X; i++) {
j = X - i;
if (i * 2 + j * 4... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 352,306 | 352,307 | u027946359 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define PI 3.141592653L
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define PI 3.141592653L
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 352,308 | 352,309 | u147886643 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
// 2x + 4y = Y, x+y=X
// 2(X+y) = Y
int x, y;
cin >> x >> y;
if (y & 1 || y > 4 * x)
cout << "No";
else
cout << "Yes";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
// 2x + 4y = Y, x+y=X
// 2(X+y) = Y
int x, y;
cin >> x >> y;
if (y & 1 || y > 4 * x || y < 2 * x)
cout << "No";
else
cout << "Yes";
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 352,313 | 352,314 | u376415869 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
using P = pair<int, int>;
using pq = priority_queue<int>;
typedef long long ll;
string y = "Yes";
string n = "No";
int main() {
int x, y;
cin >> x >> y;
bool ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
using P = pair<int, int>;
using pq = priority_queue<int>;
typedef long long ll;
string y = "Yes";
string n = "No";
int main() {
int x, y;
cin >> x >> y;
bool ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,315 | 352,316 | u025047544 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
int main() {
ll X, Y;
cin >> X >> Y;
ll a = 0;
ll b = 0;
for (int i = 0; i < X; ++i) {
a = i;
b = X - i;
ll leg = a * 2 + b * 4;
if (leg == Y) {
cout << "Yes" << endl;
exit(0);
}
}
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
int main() {
ll X, Y;
cin >> X >> Y;
ll a = 0;
ll b = 0;
for (int i = 0; i <= X; ++i) {
a = i;
b = X - i;
ll leg = a * 2 + b * 4;
if (leg == Y) {
cout << "Yes" << endl;
exit(0);
}
}... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 352,317 | 352,318 | u701527888 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return fa... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return fa... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 352,321 | 352,322 | u170650966 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int x, y;
bool f = 0;
int main() {
cin.sync_with_stdio(0);
cin.tie(0);
cin >> x >> y;
for (int i = 1; i < x; i++) {
if ((y - i * 2) % 4 == 0) {
if (i + (y - i * 2) / 4 == x) {
f = 1;
}
}
}
if (f)
cout << "Yes... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int x, y;
bool f = 0;
int main() {
cin.sync_with_stdio(0);
cin.tie(0);
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if ((y - i * 2) % 4 == 0) {
if (i + (y - i * 2) / 4 == x) {
f = 1;
}
}
}
if (f)
cout << "Ye... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 352,323 | 352,324 | u382032245 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int x, y;
bool f = 0;
int main() {
cin.sync_with_stdio(0);
cin.tie(0);
cin >> x >> y;
for (int i = 1; i <= x; i++) {
if ((y - i * 2) % 4 == 0) {
if (i + (y - i * 2) / 4 == x) {
f = 1;
}
}
}
if (f)
cout << "Ye... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int x, y;
bool f = 0;
int main() {
cin.sync_with_stdio(0);
cin.tie(0);
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if ((y - i * 2) % 4 == 0) {
if (i + (y - i * 2) / 4 == x) {
f = 1;
}
}
}
if (f)
cout << "Ye... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 352,325 | 352,324 | u382032245 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y, x, y;
bool ans = false;
cin >> X >> Y;
if (X == 1) {
if (Y == 4 || Y == 2) {
x = true;
}
} else {
for (int i = 0; i < X + 1; i++) {
x = i; //亀
y = X - i; //鶴
if (x * 4 + y * 2 == Y) {
ans = t... | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y, x, y;
bool ans = false;
cin >> X >> Y;
if (X == 1) {
if (Y == 4 || Y == 2) {
ans = true;
}
} else {
for (int i = 0; i < X + 1; i++) {
x = i; //亀
y = X - i; //鶴
if (x * 4 + y * 2 == Y) {
ans =... | [
"assignment.variable.change",
"identifier.change"
] | 352,343 | 352,344 | u697739665 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool a = false;
for (int i = 0; i <= x; i++) {
for (int j = 0; j <= x; j++) {
if ((4 * i + 2 * j) == y)
a = true;
}
}
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++) {
for (int j = 0; j <= x; j++) {
if ((4 * i + 2 * (x - i)) == y)
a = true;
}
}
if (a)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 352,355 | 352,356 | u668010224 | cpp |
p02640 | #include <algorithm>
#include <iostream>
using namespace std;
int x, y, restT, restC, divT, divC;
int main() {
cin >> x >> y;
if (4 * x >= y && x < y && y % 2 == 0) {
cout << "Yes";
} else {
cout << "No";
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int x, y, restT, restC, divT, divC;
int main() {
cin >> x >> y;
if (4 * x >= y && x <= y / 2 && y % 2 == 0) {
cout << "Yes";
} else {
cout << "No";
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,361 | 352,362 | u692343914 | cpp |
p02640 | #include <stdio.h>
int main() {
int i, s, sum, x, y;
bool flag = false;
//入力
scanf("%d %d", &x, &y);
for (i = x; 0 < i; i--) {
for (s = 1; s <= x; s++) {
sum = 2 * i + 4 * s;
if (sum == y && (i + s) == x) {
flag = true;
break;
}
if (flag) {
break;
}
... | #include <stdio.h>
int main() {
int i, s, sum, x, y;
bool flag = false;
//入力
scanf("%d %d", &x, &y);
for (i = x; 0 <= i; i--) {
for (s = 0; s <= x; s++) {
sum = 2 * i + 4 * s;
if (sum == y && (i + s) == x) {
flag = true;
break;
}
if (flag) {
break;
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change"
] | 352,363 | 352,364 | u865279192 | cpp |
p02640 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b;
c = a * 4;
d = a * 2;
if (b % 2 == 0 && d <= b && b <= c)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b;
c = a * 4;
d = a * 2;
if (b % 2 == 0 && d <= b && b <= c)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,367 | 352,368 | u996265867 | cpp |
p02640 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e;
cin >> a >> b;
c = a * 4;
d = a * 2;
if (b % 2 == 0 && d <= b && b <= c)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b;
c = a * 4;
d = a * 2;
if (b % 2 == 0 && d <= b && b <= c)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [
"variable_declaration.remove",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,369 | 352,368 | u996265867 | cpp |
p02640 | /*
-> Ossan
-> Do Good Die Great
*/
#include <bits/stdc++.h>
#define int long long int
#define Hiraishin \
ios_base::sync_with_stdio(false); \
cin.tie(nullptr); ... | /*
-> Ossan
-> Do Good Die Great
*/
#include <bits/stdc++.h>
#define int long long int
#define Hiraishin \
ios_base::sync_with_stdio(false); \
cin.tie(nullptr); ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 352,372 | 352,373 | u539850805 | cpp |
p02640 | #include <iostream>
using namespace std;
void solve(int x, int y) {
if ((y - 2 * x) % 2 == 0 and (y - 2 * x) / 2 >= 0 and (y - 2 * x) / 2 <= x) {
cout << "Yes";
}
cout << "No";
}
int main() {
int x;
int y;
cin >> x;
cin >> y;
solve(x, y);
} | #include <iostream>
using namespace std;
void solve(int x, int y) {
if ((y - 2 * x) % 2 == 0 and (y - 2 * x) / 2 >= 0 and (y - 2 * x) / 2 <= x) {
cout << "Yes";
} else {
cout << "No";
}
}
int main() {
int x;
int y;
cin >> x;
cin >> y;
solve(x, y);
} | [
"control_flow.branch.else.add"
] | 352,378 | 352,379 | u961718407 | cpp |
p02640 | #include <algorithm>
#include <cmath> // circle math ( sin, con, sinh
#include <iomanip> // input output manipulation
#include <iostream> // input output stream, cin cout( console in console out)
#include <stdio.h> // standard input output
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) ... | #include <algorithm>
#include <cmath> // circle math ( sin, con, sinh
#include <iomanip> // input output manipulation
#include <iostream> // input output stream, cin cout( console in console out)
#include <stdio.h> // standard input output
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 352,389 | 352,390 | u480059652 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define LL long long
int main() {
LL X, Y;
cin >> X >> Y;
if (X * 4 >= Y && Y % 2 == 0 && X * 2 <= Y) {
cout << "Yes" << endl;
} else {
cout << "NO" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
#define LL long long
int main() {
LL X, Y;
cin >> X >> Y;
if (X * 4 >= Y && Y % 2 == 0 && X * 2 <= Y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,391 | 352,392 | u108993392 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fast() \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cou... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fast() \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cou... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,401 | 352,402 | u945831776 | cpp |
p02640 | #include <bits/stdc++.h>
#define lli long long int
#define timesave \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using na... | #include <bits/stdc++.h>
#define lli long long int
#define timesave \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using na... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 352,403 | 352,404 | u842407954 | cpp |
p02640 | #ifndef Local
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,sse4.2,popcnt,abm,mmx,avx")
#endif
#include <bits/stdc++.h>
using namespace std;
#define popCnt(x) (__builtin_popcountll(x))
#define sz(x) ((int)(x.size()))
#define all(v) begin(v), en... | #ifndef Local
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,sse4.2,popcnt,abm,mmx,avx")
#endif
#include <bits/stdc++.h>
using namespace std;
#define popCnt(x) (__builtin_popcountll(x))
#define sz(x) ((int)(x.size()))
#define all(v) begin(v), en... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,405 | 352,406 | u237225934 | cpp |
p02640 | #include <stdio.h>
int main(void) {
long long body, legs, N, max, min;
scanf("%lld %lld", &body, &legs);
N = legs % 2;
max = body * 4;
min = body * 2;
if (N == 1) {
printf("NO\n");
} else {
if (legs >= min && legs <= max) {
printf("Yes\n");
} else {
printf("No\n");
}
}
ret... | #include <stdio.h>
int main(void) {
long long body, legs, N, max, min;
scanf("%lld %lld", &body, &legs);
N = legs % 2;
max = body * 4;
min = body * 2;
if (N == 1) {
printf("No");
} else {
if (legs >= min && legs <= max) {
printf("Yes");
} else {
printf("No");
}
}
return 0;... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.remove"
] | 352,412 | 352,413 | u992230971 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y - x >= 0 && (y - x) % 2 == 0 && x - (y - x) / 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 >= 0 && (y - 2 * x) % 2 == 0 && x - (y - 2 * x) / 2 >= 0)
cout << "Yes";
else
cout << "No";
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 352,414 | 352,415 | u011837431 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int X, Y;
bool finished = false;
cin >> X >> Y;
for (int i = 1; i < 101; i++) {
for (int j = 1; j < 101; j++) {
if (i + j == X && 4 * i + 2 * j == Y) {
finished = true;
break;
}
}
if (finished) {
break;
}
}... | #include <iostream>
using namespace std;
int main() {
int X, Y;
bool finished = false;
cin >> X >> Y;
for (int i = 0; i < 101; i++) {
for (int j = 0; j < 101; j++) {
if (i + j == X && 4 * i + 2 * j == Y) {
finished = true;
break;
}
// else if(i==0||j==0){
// if()
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 352,449 | 352,450 | u137970542 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, temp1 = 0, temp2 = 0;
cin >> a >> b;
temp2 = a;
bool ans = false;
for (int i = 0; i < a; i++) {
temp1 = i;
temp2 = a - i;
if ((temp1 * 2 + temp2 * 4) == b) {
ans = true;
}
}
if (ans == true) {
cout << "Yes";
}... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, temp1 = 0, temp2 = 0;
cin >> a >> b;
temp2 = a;
bool ans = false;
for (int i = 0; i <= a; i++) {
temp1 = i;
temp2 = a - i;
if ((temp1 * 2 + temp2 * 4) == b) {
ans = true;
}
}
if (ans == true) {
cout << "Yes";
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 352,453 | 352,454 | u583560632 | cpp |
p02640 | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define rep(i, a, n) for (ll i = a; i < n; i++)
int main() {
ll x, y;
cin >> x >> y;
ll t = x;
ll c = 0;
if (t * 4 < y && y % 2 == 1) {
cout << "No" << endl;
}
rep(i, 0, x) {
if (t * 4 + c * 2 == y) {
cout << "Yes" << endl;
... | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define rep(i, a, n) for (ll i = a; i < n; i++)
int main() {
ll x, y;
cin >> x >> y;
ll t = x;
ll c = 0;
if (t * 4 < y && y % 2 == 1) {
cout << "No" << endl;
return 0;
}
rep(i, 0, x + 1) {
if (t * 4 + c * 2 == y) {
cout ... | [
"control_flow.return.add",
"control_flow.return.0.add",
"expression.operation.binary.add"
] | 352,457 | 352,456 | u138251862 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
bool ans = false;
cin >> a >> b;
if (a * 2 <= b && b <= a * 4) {
if (a % 2 == 0) {
ans = true;
}
}
if (ans) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
bool ans = false;
cin >> a >> b;
if (a * 2 <= b && b <= a * 4) {
if (b % 2 == 0) {
ans = true;
}
}
if (ans) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 352,473 | 352,474 | u798408400 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= 100; i++) {
int j = x - i;
if (i * 2 + j * 4 == 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++) {
int j = x - i;
if (i * 2 + j * 4 == y) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
}
| [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 352,478 | 352,479 | u205197147 | cpp |
p02640 | #include <iostream>
#include <string>
std::string check(int x, int y) {
if (y % 2 == 0) {
int t = (int)(0.5 * y) - x;
if (t > 0 && (x - t) >= 0)
return "Yes";
}
return "No";
}
int main() {
int x, y;
std::cin >> x >> y;
std::cout << check(x, y) << std::endl;
return 0;
} | #include <iostream>
#include <string>
std::string check(int x, int y) {
if (y % 2 == 0) {
int t = (int)(0.5 * y) - x;
if (t >= 0 && (x - t) >= 0)
return "Yes";
}
return "No";
}
int main() {
int x, y;
std::cin >> x >> y;
std::cout << check(x, y) << std::endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,480 | 352,481 | u622713722 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, j;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
j = x - i;
if ((i * 4 + j * 2) == y) {
cout << "YES";
return 0;
}
}
cout << "NO";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, j;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
j = x - i;
if ((i * 4 + j * 2) == y) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,490 | 352,491 | u428549967 | cpp |
p02640 | #include <algorithm>
#include <iostream>
#include <queue>
#include <string.h>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
if (m > 4 * n || m % 2)
cout << "No";
else {
int x = (4 * n - m) / 2;
if (2 * x + 4 * (n - x) == m)
cout << "Yes";
else
cout << "No";
}
return ... | #include <algorithm>
#include <iostream>
#include <queue>
#include <string.h>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
if (m > 4 * n || m % 2 || m < 2 * n)
cout << "No";
else {
int x = (4 * n - m) / 2;
if (2 * x + 4 * (n - x) == m)
cout << "Yes";
else
cout << "No";
... | [
"control_flow.branch.if.condition.change"
] | 352,492 | 352,493 | u287940151 | cpp |
p02640 | #include <bits/stdc++.h>
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 <bits/stdc++.h>
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"
] | 352,503 | 352,504 | u460727588 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int turu = 0, kame = 0;
while (turu < x) {
kame = x - turu;
if (turu * 2 + kame * 4 == y) {
cout << "Yes" << endl;
r... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int turu = 0, kame = 0;
while (turu <= x) {
kame = x - turu;
if (turu * 2 + kame * 4 == y) {
cout << "Yes" << endl;
... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 352,537 | 352,538 | u316657076 | cpp |
p02640 | #include <bits/stdc++.h>
#define limit (int)(2e5 + 5)
#define mod (int)(1e9 + 7)
using namespace std;
using lli = long long int;
using ulli = unsigned long long int;
using ld = long double;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int x, y;
cin >> x >> y;
if (y % 2 != 0)... | #include <bits/stdc++.h>
#define limit (int)(2e5 + 5)
#define mod (int)(1e9 + 7)
using namespace std;
using lli = long long int;
using ulli = unsigned long long int;
using ld = long double;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int x, y;
cin >> x >> y;
if (y % 2 != 0)... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,572 | 352,573 | u433665251 | cpp |
p02640 | #include <bits/stdc++.h>
#include <cctype>
#define ll long long int
#define PB push_back
#define GO \
ll t; \
cin >> t; ... | #include <bits/stdc++.h>
#include <cctype>
#define ll long long int
#define PB push_back
#define GO \
ll t; \
cin >> t; ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,576 | 352,577 | u232917796 | cpp |
p02640 | #include <algorithm>
#include <bitset>
#include <chrono>
#include <cstring>
#include <ctype.h>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#inclu... | #include <algorithm>
#include <bitset>
#include <chrono>
#include <cstring>
#include <ctype.h>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#inclu... | [
"control_flow.branch.if.condition.change"
] | 352,578 | 352,579 | u734397606 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if ((y & 1 == 0) && y >= 2 * x && y <= 4 * x) {
cout << "Yes" << '\n';
} else {
cout << "No" << '\n';
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if ((y % 2 == 0) && y >= 2 * x && y <= 4 * x) {
cout << "Yes" << '\n';
} else {
cout << "No" << '\n';
}
} | [] | 352,580 | 352,581 | u997146378 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long int x, y;
cin >> x >> y;
if (y % 2 == 1) {
cout << "No"
<< "\n";
return 0;
}
int crane = abs(y - 4 * x) / 2;
int turtle = abs(x - crane);
if (crane + turtle == x)
... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long int x, y;
cin >> x >> y;
if (y % 2 == 1) {
cout << "No"
<< "\n";
return 0;
}
int crane = abs(y - 4 * x) / 2;
int turtle = abs(x - crane);
if (2 * crane + 4 * turtle ==... | [
"control_flow.branch.if.condition.change",
"identifier.change"
] | 352,582 | 352,583 | u208768692 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool res = false;
for (int i = 1; i < x; i++) {
int b = x - i;
if ((2 * b + 4 * i) == y)
res = true;
}
if (res)
cout << "Yes";
else
cout << "No";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool res = false;
for (int i = 0; i <= x; i++) {
int b = x - i;
if ((2 * b + 4 * i) == y)
res = true;
}
if (res)
cout << "Yes";
else
cout << "No";
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 352,584 | 352,585 | u350766567 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool res = false;
for (int i = 1; i <= x; i++) {
int b = x - i;
if ((2 * b + 4 * i) == y)
res = true;
}
if (res)
cout << "Yes";
else
cout << "No";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool res = false;
for (int i = 0; i <= x; i++) {
int b = x - i;
if ((2 * b + 4 * i) == y)
res = true;
}
if (res)
cout << "Yes";
else
cout << "No";
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 352,586 | 352,585 | u350766567 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace ::std;
#define int long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sax(x) cout << "!!!!!!!!!!! " << #x << " = " << x << '\n'
#define inf (sizeof(int) == 4 ? (int)1E9 : (int)1E18)
#define one(x) x.insert(x.begin(), 0);
#define TCT... | #include <bits/stdc++.h>
using namespace ::std;
#define int long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sax(x) cout << "!!!!!!!!!!! " << #x << " = " << x << '\n'
#define inf (sizeof(int) == 4 ? (int)1E9 : (int)1E18)
#define one(x) x.insert(x.begin(), 0);
#define TCT... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,592 | 352,593 | u093681822 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (2 * A <= B && 4 * A >= B && B % 2 == 2) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (2 * A <= B && 4 * A >= B && B % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 352,598 | 352,599 | u425231382 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (2 * A <= B && 2 * A >= B && B % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (2 * A <= B && 4 * A >= B && B % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 352,600 | 352,599 | u425231382 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (2 * A <= B && 2 * A >= B && B % 2 == 2) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (2 * A <= B && 4 * A >= B && B % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 352,601 | 352,599 | u425231382 | cpp |
p02640 | /******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... | /******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,602 | 352,603 | u485667323 | cpp |
p02640 |
#include <bits/stdc++.h>
using namespace std;
/// File input & output /////
#define fRead(x) freopen("x.txt", "r", stdin)
#define fWrite(x) freopen("x.txt", "w", stdout)
#define mt make_tuple
#define ld long double
#define ll long long
#define ull unsigned long long
#define ff first
#define ss second
#define pb pus... |
#include <bits/stdc++.h>
using namespace std;
/// File input & output /////
#define fRead(x) freopen("x.txt", "r", stdin)
#define fWrite(x) freopen("x.txt", "w", stdout)
#define mt make_tuple
#define ld long double
#define ll long long
#define ull unsigned long long
#define ff first
#define ss second
#define pb pus... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,609 | 352,610 | u954935895 | cpp |
p02640 | /*
Author: ankrypt
*/
#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;
template <class T>
using oset =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define MOD 1000000007... | /*
Author: ankrypt
*/
#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;
template <class T>
using oset =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define MOD 1000000007... | [
"identifier.change",
"call.function.change"
] | 352,611 | 352,612 | u428267713 | cpp |
p02640 | #include <iostream>
#include <vector>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
for (int i = 1; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| #include <iostream>
#include <vector>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 352,617 | 352,618 | u359856428 | cpp |
p02640 | #include <iostream>
#include <vector>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
for (int i = 1; i < x; i++) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| #include <iostream>
#include <vector>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 352,619 | 352,618 | u359856428 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y & 1 != 1 and x * 4 >= y and x * 2 <= y)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if ((y & 1) != 1 and x * 4 >= y and x * 2 <= y)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [
"control_flow.branch.if.condition.change"
] | 352,620 | 352,621 | u989947733 | cpp |
p02640 | // IN the name of GOD
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int M = 1e9 + 7;
void solve() {
int z1, z2;
cin >> z1 >> z2;
int x, y;
bool ok = 0;
if (z2 < 2 * z1 || z2 > 4 * z1) {
cout << "NO";
return;
}
if ((z2 - 2 * z1) % 2) {
cout << "NO";
return;
}
... | // IN the name of GOD
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int M = 1e9 + 7;
void solve() {
int z1, z2;
cin >> z1 >> z2;
int x, y;
bool ok = 0;
if (z2 < 2 * z1 || z2 > 4 * z1) {
cout << "No";
return;
}
if ((z2 - 2 * z1) % 2) {
cout << "No";
return;
}
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,622 | 352,623 | u927520692 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if (y >= x * 4 && x * 2 >= y) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if (y <= x * 4 && x * 2 <= y) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,630 | 352,629 | u349155070 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if (y >= x * 4 && x * 2 <= y) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if (y <= x * 4 && x * 2 <= y) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,631 | 352,629 | u349155070 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if (y > x * 4 && x * 2 < y) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if (y <= x * 4 && x * 2 <= y) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,632 | 352,629 | u349155070 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if (y > x * 4 && x * 2 < y) {
cout << "No";
} else {
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 == 0) {
if (y <= x * 4 && x * 2 <= y) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 352,633 | 352,629 | u349155070 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool ans = false;
for (int i = 0; i <= x && !ans; ++i)
if (2 * i + 4 * (x - i) == y)
ans = true;
cout << (ans ? "YES\n" : "NO\n");
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool ans = false;
for (int i = 0; i <= x && !ans; ++i)
if (2 * i + 4 * (x - i) == y)
ans = true;
cout << (ans ? "Yes\n" : "No\n");
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,637 | 352,638 | u885423967 | cpp |
p02640 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
typedef long long ll;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
typedef long long ll;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool... | [
"expression.operation.binary.add"
] | 352,641 | 352,642 | u745134826 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a = 0;
bool flag = false;
for (int i = 0; i <= x; i++) {
a = 4 * i + 2 * (x - i);
if (a == y)
flag = true;
}
if (flag = true)
cout << "YES" << endl;
else if (flag == false)
cout << "NO" << end... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a = 0;
bool flag = false;
for (int i = 0; i <= x; i++) { // int j=x-i;
a = 4 * i + 2 * (x - i);
if (a == y)
flag = true;
}
if (flag == true)
cout << "Yes" << endl;
else if (flag == false)
cou... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,645 | 352,646 | u237839412 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a = 0;
bool flag = false;
for (int i = 0; i <= x; i++) {
a = 2 * i + 4 * (x - i);
if (a == y)
flag = true;
}
if (flag = true)
cout << "YES" << endl;
else if (flag == false)
cout << "NO" << endl... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a = 0;
bool flag = false;
for (int i = 0; i <= x; i++) { // int j=x-i;
a = 4 * i + 2 * (x - i);
if (a == y)
flag = true;
}
if (flag == true)
cout << "Yes" << endl;
else if (flag == false)
cou... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,647 | 352,646 | u237839412 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define bit(a) __builtin_popcount(a)
#define all(x) x.begin(), x.end()
#define minv(v) *min_element(all(v))
#define maxv(v) *max_element(all(v))
#define unq(v) sort(all(v)), v.erase(unique(all(v)), v.end())
#define w(x) while (x--)
#define rep(i, a, b) for (i = a; i <= b; i... | #include <bits/stdc++.h>
using namespace std;
#define bit(a) __builtin_popcount(a)
#define all(x) x.begin(), x.end()
#define minv(v) *min_element(all(v))
#define maxv(v) *max_element(all(v))
#define unq(v) sort(all(v)), v.erase(unique(all(v)), v.end())
#define w(x) while (x--)
#define rep(i, a, b) for (i = a; i <= b; i... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,648 | 352,649 | u540661309 | cpp |
p02640 | #include <bits/stdc++.h>
typedef long long ll;
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define fr f... | #include <bits/stdc++.h>
typedef long long ll;
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define fr f... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,671 | 352,672 | u877319121 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define x first
#define y second
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
// assert(freopen("input.txt","r",stdin));
// assert(freopen("output.txt","w",stdout));
ll x, y;
cin >> x >> y;
int ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define x first
#define y second
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
// assert(freopen("input.txt","r",stdin));
// assert(freopen("output.txt","w",stdout));
ll x, y;
cin >> x >> y;
int ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,681 | 352,682 | u552577742 | cpp |
p02640 | #include <bits/stdc++.h> // include all standard C++ libraries
using namespace std;
// Loops
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define _rrep(i, n) rrepi(i, n, 0)
#define rrepi(i, a, b) for (int i = int(a) - 1; i ... | #include <bits/stdc++.h> // include all standard C++ libraries
using namespace std;
// Loops
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define _rrep(i, n) rrepi(i, n, 0)
#define rrepi(i, a, b) for (int i = int(a) - 1; i ... | [
"expression.operation.binary.add"
] | 352,683 | 352,684 | u292813062 | cpp |
p02640 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
if (a * 2 < b && a * 4 >> b) {
if (b % 2 == 0 && b % 6 == 0) {
cout << "Yes" << endl;
} else if (b % 6 == 0 || b % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << end... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
if (a * 2 <= b && a * 4 >= b) {
if (b % 2 == 0 && b % 6 == 0) {
cout << "Yes" << endl;
} else if (b % 6 == 0 || b % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << en... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 352,691 | 352,690 | u969962623 | cpp |
p02640 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
if (a * 2 < b && a * 4 >> b) {
if (b % 2 == 0 && b % 6 == 0) {
cout << "yes" << endl;
} else if (b % 6 == 0 || b % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << end... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
if (a * 2 <= b && a * 4 >= b) {
if (b % 2 == 0 && b % 6 == 0) {
cout << "Yes" << endl;
} else if (b % 6 == 0 || b % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << en... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,692 | 352,690 | u969962623 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(), c.end()
#define mp(x, y) make_pair... | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(), c.end()
#define mp(x, y) make_pair... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.branch.if.condition.change"
] | 352,702 | 352,703 | u282896139 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(), c.end()
#define mp(x, y) make_pair... | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(), c.end()
#define mp(x, y) make_pair... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 352,704 | 352,703 | u282896139 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(), c.end()
#define mp(x, y) make_pair... | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(), c.end()
#define mp(x, y) make_pair... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 352,702 | 352,705 | u282896139 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(), c.end()
#define mp(x, y) make_pair... | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(), c.end()
#define mp(x, y) make_pair... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.branch.if.condition.change"
] | 352,704 | 352,705 | u282896139 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int i, x, y, ck = 0;
cin >> x >> y;
for (i = 1; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
ck = 1;
break;
}
}
if (ck)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int i, x, y, ck = 0;
cin >> x >> y;
for (i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
ck = 1;
break;
}
}
if (ck)
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"
] | 352,708 | 352,709 | u527670491 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= 50; i++) {
for (int j = 0; j <= 24; j++) {
if (2 * i + 4 * j == y && i + j == x)
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= 50; i++) {
for (int j = 0; j <= 25; j++) {
if (2 * i + 4 * j == y && i + j == x) {
cout << "Yes" << endl;
return 0;
}
}
}
cout << "No" << endl;
return 0;
}
| [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 352,737 | 352,736 | u056912761 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long int LLI;
void solve() {
int x, y;
cin >> x >> y;
bool found = false;
for (int turtles = 0; turtles <= x; ++turtles) {
int cranes = x - turtles;
int legs = turtles * 4 + cranes * 2;
if (legs == y) {
found = true;
}
}
if (... | #include <bits/stdc++.h>
using namespace std;
typedef long long int LLI;
void solve() {
int x, y;
cin >> x >> y;
bool found = false;
for (int turtles = 0; turtles <= x; ++turtles) {
int cranes = x - turtles;
int legs = turtles * 4 + cranes * 2;
if (legs == y) {
found = true;
}
}
if (... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,740 | 352,741 | u030820165 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int C = i;
int T = x - i;
if (((T * 4) + (C * 2)) == 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++) {
int C = i;
int T = x - i;
if (((T * 4) + (C * 2)) == y) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,742 | 352,743 | u681321870 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y <= 4 * x and 2 * y <= x and y % 2 == 0)
cout << "Yes" << '\n';
else
cout << "No" << '\n';
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y <= 4 * x and 2 * x <= y and y % 2 == 0)
cout << "Yes" << '\n';
else
cout << "No" << '\n';
}
| [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 352,749 | 352,750 | u548589319 | cpp |
p02640 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie... | [
"call.remove"
] | 352,751 | 352,752 | u770040456 | cpp |
p02640 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie... | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 352,753 | 352,752 | u770040456 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.