problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02640 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
typedef long long ll;
int main() {
int x, y;
cin >> x >> y;
int c = x * 2;
for (int i = 0; i < x; ++i) {
if (c == y) {
cout << "Yes" << endl;
return 0;
}
c += 2;
}
cout << "No" << end... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
typedef long long ll;
int main() {
int x, y;
cin >> x >> y;
int c = x * 2;
for (int i = 0; i <= x; ++i) {
if (c == y) {
cout << "Yes" << endl;
return 0;
}
c += 2;
}
cout << "No" << en... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 354,651 | 354,652 | u437683448 | cpp |
p02640 | #include <iostream>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
int main() {
int sum, foot;
int souwa;
bool turukame = false;
cin >> sum >> foot;
rep(i, sum) {
int j = sum - i;
souwa = 2 * i + 4 * j;
if (souwa == foot) {
turukame = true;
}
}
if (turuka... | #include <iostream>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
int main() {
int sum, foot;
int souwa;
bool turukame = false;
cin >> sum >> foot;
rep(i, sum + 1) {
int j = sum - i;
souwa = 2 * i + 4 * j;
if (souwa == foot) {
turukame = true;
}
}
if (tu... | [
"expression.operation.binary.add"
] | 354,661 | 354,662 | u885010386 | cpp |
p02640 | #include <iostream>
using namespace std;
#define ll long long int
int main() {
int x, y;
cin >> x >> y;
if (y % 2 != 0) {
cout << "No";
return 0;
}
if (y >= x * 2 && y <= x * 4) {
cout << "Yes";
}
cout << "No";
return 0;
} | #include <iostream>
using namespace std;
#define ll long long int
int main() {
ll x, y;
cin >> x >> y;
if (y % 2 != 0) {
cout << "No";
return 0;
}
if (y >= x * 2 && y <= x * 4) {
cout << "Yes";
return 0;
}
cout << "No";
return 0;
} | [
"variable_declaration.type.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 354,667 | 354,668 | u511332668 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int x, y, a, b;
bool k;
cin >> x >> y;
b = y - 2 * x;
if (b % 2) {
k = 0;
} else {
b /= 2;
if (b > x) {
k = 0;
} else {
k = 1;
}
}
if (k)
cout << "Yes\n";... | #include <bits/stdc++.h>
using namespace std;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int x, y, b;
bool k;
cin >> x >> y;
b = y - 2 * x;
if (b % 2) {
k = 0;
} else {
b /= 2;
if (b > x || b < 0) {
k = 0;
} else {
k = 1;
}
}
if (k)
cout << "Y... | [
"variable_declaration.remove",
"control_flow.branch.if.condition.change"
] | 354,669 | 354,670 | u066174722 | cpp |
p02640 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <regex>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
template <typename T> bool chmax(T &a, const T b) {
if (a <=... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <regex>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
template <typename T> bool chmax(T &a, const T b) {
if (a <=... | [
"control_flow.continue.add"
] | 354,673 | 354,674 | u408910484 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pi;
typedef vector<int> vi;
typedef vector<pi> vpi;
#define f first
#define s second
#define sz(x) (int)x.size()
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rsz... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pi;
typedef vector<int> vi;
typedef vector<pi> vpi;
#define f first
#define s second
#define sz(x) (int)x.size()
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rsz... | [
"literal.number.change",
"call.arguments.change"
] | 354,678 | 354,679 | u867529352 | cpp |
p02640 | #include <bits/stdc++.h>
#define int long long
#define pb push_back
#define fr first
#define sc second
#define sz(v) ((int)(v).size())
#define mp make_pair
#define all(a) a.begin(), a.end()
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repd(i, a, p) for (int i = a - 1; i >= p; i--)
#define M 1000000007
#defi... | #include <bits/stdc++.h>
#define int long long
#define pb push_back
#define fr first
#define sc second
#define sz(v) ((int)(v).size())
#define mp make_pair
#define all(a) a.begin(), a.end()
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repd(i, a, p) for (int i = a - 1; i >= p; i--)
#define M 1000000007
#defi... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 354,682 | 354,683 | u986535135 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
int kame, turu;
bool ans = false;
cin >> x >> y;
for (int i = 1; i < x; i++) {
kame = i * 4;
turu = (x - i) * 2;
if ((kame + turu) == y) {
ans = true;
break;
}
}
if (ans)
cout << "Yes" << endl;
else
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
int kame, turu;
bool ans = false;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
kame = i * 4;
turu = (x - i) * 2;
if ((kame + turu) == y) {
ans = true;
break;
}
}
if (ans)
cout << "Yes" << endl;
else... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 354,689 | 354,690 | u866861266 | cpp |
p02640 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d, e, x, y;
cin >> x >> y;
// xは頭数、yは足
a = x * 2;
b = x * 4;
c = y % 2;
if (c == 0)
d = 0;
else
d = 1;
if (d == 1)
cout << "No";
if (a <= y) {
if (b >= y)
cout << "Yes";
else
cout <... | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d, e, x, y;
cin >> x >> y;
// xは頭数、yは足
a = x * 2;
b = x * 4;
c = y % 2;
if (c == 0)
d = 0;
else
d = 1;
if (d == 1)
cout << "No";
else {
if (a <= y) {
if (b >= y)
cout << "Yes";
... | [
"control_flow.branch.else.add"
] | 354,695 | 354,696 | u512050435 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define mod 1000000007
using namespace std;
ll binpow(ll x, ll y) /* (x^y)%p in O(log y) */ {
ll res = 1;
while (y > 0) {
if (y & 1)
res = (res * x);
y = y >> 1;
x = (x * x);
}
return res;
}
ll binpowmod(ll x, ll y, l... | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define mod 1000000007
using namespace std;
ll binpow(ll x, ll y) /* (x^y)%p in O(log y) */ {
ll res = 1;
while (y > 0) {
if (y & 1)
res = (res * x);
y = y >> 1;
x = (x * x);
}
return res;
}
ll binpowmod(ll x, ll y, l... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 354,697 | 354,698 | u950915155 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int INF = 1001001001;
using P = pair<int, int>;
int main(void) {
int x, y;
cin >> x >> y;
if (y % 2 != 0) {
cout << "No" << endl;
return 0;
}
if (y < (4 * x) && y > 2 * x) ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int INF = 1001001001;
using P = pair<int, int>;
int main(void) {
int x, y;
cin >> x >> y;
if (y % 2 != 0) {
cout << "No" << endl;
return 0;
}
if (y <= (4 * x) && y >= 2 * x... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,699 | 354,700 | u493928141 | cpp |
p02640 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, p, q;
cin >> a >> b;
p = 2 * a;
q = 4 * a;
c = b % 2;
p = b / 2;
if (c == 1) {
cout << "No" << endl;
} else if (p <= b && b <= q) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, p, q;
cin >> a >> b;
p = 2 * a;
q = 4 * a;
c = b % 2;
if (c == 1) {
cout << "No" << endl;
} else if (p <= b && b <= q) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [] | 354,701 | 354,702 | u913698352 | cpp |
p02640 | /*
* @Author: kabbo
* @Date: 2020-06-14 17:50:39
* @Last Modified by: kabbo
* @Last Modified time: 2020-06-14 18:16:10
*/
#include <bits/stdc++.h>
using namespace std;
#define pii pair<long long, long long>
#define endl '\n'
#define ull unsigned long long
#define ll long long
const int mod = 1e9 + 7;
using u64... | /*
* @Author: kabbo
* @Date: 2020-06-14 17:50:39
* @Last Modified by: kabbo
* @Last Modified time: 2020-06-14 18:19:54
*/
#include <bits/stdc++.h>
using namespace std;
#define pii pair<long long, long long>
#define endl '\n'
#define ull unsigned long long
#define ll long long
const int mod = 1e9 + 7;
using u64... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,705 | 354,706 | u392331162 | cpp |
p02640 |
#include <iostream>
#define s true
using namespace std;
int abs(int i, int j) {
int f = i - j;
if (f < 0) {
i *= -1;
}
return f;
}
int main() {
int a, b;
cin >> a >> b;
int c = a * 2;
a *= 4;
if (b % 2 == 0 && a > b && c < b) {
cout << "Yes";
} else
cout << "No";
return 0;
} | #include <iostream>
#define s true
using namespace std;
int abs(int i, int j) {
int f = i - j;
if (f < 0) {
i *= -1;
}
return f;
}
int main() {
int a, b;
cin >> a >> b;
int c = a * 2;
a *= 4;
if (b % 2 == 0 && a >= b && c <= b) {
cout << "Yes";
} else
cout << "No";
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,713 | 354,714 | u783280866 | 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;
int a, b;
bool test = false;
rep(a, x) {
b = x - a;
if ((2 * a + 4 * b) == y) {
test = true;
}
}
if (test) ... | #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;
int b;
bool test = false;
rep(a, x + 1) {
b = x - a;
if ((2 * a + 4 * b) == y) {
test = true;
}
}
if (test... | [
"variable_declaration.remove"
] | 354,717 | 354,718 | u150013862 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int x, y;
cin >> x >> y;
bool finish = false;
for (int i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
finish = true;
break;
}
}
if (finish) {
cout << "YES" << endl;
} el... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int x, y;
cin >> x >> y;
bool finish = false;
for (int i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
finish = true;
break;
}
}
if (finish) {
cout << "Yes" << endl;
} el... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,721 | 354,722 | u915582296 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (B % 2)
puts("NO");
else if (A * 2 <= B && B <= A * 4)
puts("YES");
else
puts("NO");
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (B % 2)
puts("No");
else if (A * 2 <= B && B <= A * 4)
puts("Yes");
else
puts("No");
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 354,725 | 354,726 | u538921909 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int x, y;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> x >> y;
for (int i = 1; i <= x; i++) {
if (i * 2 + (x - i) * 4 == y) {
cout << "Yes\n";
return 0;
}
}
cout << "No\n";
}
| #include <bits/stdc++.h>
using namespace std;
int x, y;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if (i * 2 + (x - i) * 4 == y) {
cout << "Yes\n";
return 0;
}
}
cout << "No\n";
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,729 | 354,730 | u807064686 | cpp |
p02640 | #include <bits/stdc++.h>
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
using ll = long long;
using ld = long double;
#define rep(i, a, n) for (ll i = (a); i < (n); i++)
#define per(i, a, n) for (ll i = (n - 1); i >= (a); i--)
#define F first
#define S second
#define endl "\n"
... | #include <bits/stdc++.h>
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
using ll = long long;
using ld = long double;
#define rep(i, a, n) for (ll i = (a); i < (n); i++)
#define per(i, a, n) for (ll i = (n - 1); i >= (a); i--)
#define F first
#define S second
#define endl "\n"
... | [
"literal.number.change",
"call.arguments.change"
] | 354,744 | 354,745 | u208956581 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i < 100; i++) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
} | #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;
} | [
"control_flow.loop.for.condition.change"
] | 354,746 | 354,747 | u543466827 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y > x * 4 || y % 2 != 0) {
cout << "No\n";
} else {
cout << "Yes\n";
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y > x * 4 || y % 2 != 0 || y < x * 2) {
cout << "No\n";
} else {
cout << "Yes\n";
}
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 354,748 | 354,749 | u604725308 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
scanf("%d%d", &x, &y);
if (2 * x < y)
printf("No");
else if (4 * x > y)
printf("No");
else if (y % 2 == 1)
printf("No");
else
printf("Yes");
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
scanf("%d%d", &x, &y);
if (2 * x > y)
printf("No");
else if (4 * x < y)
printf("No");
else if (y % 2 == 1)
printf("No");
else
printf("Yes");
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,750 | 354,751 | u232994913 | cpp |
p02640 | #include <bits/stdc++.h>
//#pragma GCC optimize(2)
#define pb push_back
#define mp make_pair
#define all(x) x.begin(), x.end()
#define rep(i, a, b) for (int i = (a); i <= (b); i++)
#define per(i, a, b) for (int i = (a); i >= (b); i--)
#define pii pair<int, int>
#define pll pair<long long, long long>
#define fi first
#d... | #include <bits/stdc++.h>
//#pragma GCC optimize(2)
#define pb push_back
#define mp make_pair
#define all(x) x.begin(), x.end()
#define rep(i, a, b) for (int i = (a); i <= (b); i++)
#define per(i, a, b) for (int i = (a); i >= (b); i--)
#define pii pair<int, int>
#define pll pair<long long, long long>
#define fi first
#d... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,752 | 354,753 | u282201171 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
long n, m;
string ans = "Yes";
cin >> n >> m;
if (n % 2 == 1)
ans = "No";
if (m < n * 2)
ans = "No";
if (m > n * 4)
ans = "No";
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long n, m;
string ans = "Yes";
cin >> n >> m;
if (m % 2 == 1)
ans = "No";
if (m < n * 2)
ans = "No";
if (m > n * 4)
ans = "No";
cout << ans << endl;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 354,754 | 354,755 | u966257731 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
for (int i = 0; i < 100; i++) {
for (int j = 0; j < 100; j++) {
if (2 * i + 4 * j == y && i + j == x) {
cout << "YES" << '\n';
return 0;
}
}
}
c... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
for (int i = 0; i < 100; i++) {
for (int j = 0; j < 100; j++) {
if (2 * i + 4 * j == y && i + j == x) {
cout << "Yes" << '\n';
return 0;
}
}
}
c... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,770 | 354,771 | u509516894 | cpp |
p02640 | #define MOD 1000000007
#if 1
//------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
template <class T> struct Entry {
static void Run() { T().Run(); }
};
struct MyMain;
//------------------------------------------------------------
#if defined(TEST)
#include "t... | #define MOD 1000000007
#if 1
//------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
template <class T> struct Entry {
static void Run() { T().Run(); }
};
struct MyMain;
//------------------------------------------------------------
#if defined(TEST)
#include "t... | [
"expression.operation.binary.add"
] | 354,778 | 354,779 | u658243311 | cpp |
p02640 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP1(i, n) for (int i = 1; i <= (n); i++)
#define REPD(i, a, b) for (int i = (a); i < (b); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef ve... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP1(i, n) for (int i = 1; i <= (n); i++)
#define REPD(i, a, b) for (int i = (a); i < (b); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef ve... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 354,780 | 354,781 | u281876921 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define fr(i, n) for (long long i = 0; i < (n); ++i)
#define Fr(i, n) for (long long i = 1; i <= (n); ++i)
#define ifr(i, n) for (long long i = (n)-1; i >= 0; --i)
#define iFr(i, n) for (long long i = (n); i > 0; --i)
using Graph = vector<vector<int>>;... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define fr(i, n) for (long long i = 0; i < (n); ++i)
#define Fr(i, n) for (long long i = 1; i <= (n); ++i)
#define ifr(i, n) for (long long i = (n)-1; i >= 0; --i)
#define iFr(i, n) for (long long i = (n); i > 0; --i)
using Graph = vector<vector<int>>;... | [
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 354,790 | 354,791 | u608493167 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
for (int i = 0; i < 100; i++)
for (int n = 0; n < 100; n++)
if (i + n == a && i * 2 + n * 4 == b) {
cout << "YES";
return 0;
}
cout << "NO";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
for (int i = 0; i < 100; i++)
for (int n = 0; n < 100; n++)
if (i + n == a && i * 2 + n * 4 == b) {
cout << "Yes";
return 0;
}
cout << "No";
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,796 | 354,797 | u042388355 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
if (y == i * 2 + (x - i) * 4) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
if (y == i * 2 + (x - i) * 4) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,798 | 354,799 | u161719628 | cpp |
p02640 | #include <algorithm>
#include <iomanip> // setprecisionを使用するのに必要 cout << fixed << setprecision(15) << p でpを小数点以下15桁表示
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
#define REPD(i, a, b) f... | #include <algorithm>
#include <iomanip> // setprecisionを使用するのに必要 cout << fixed << setprecision(15) << p でpを小数点以下15桁表示
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
#define REPD(i, a, b) f... | [
"expression.operator.compare.change",
"preprocessor.define.value.change"
] | 354,807 | 354,808 | u568426505 | cpp |
p02640 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const ll mod = 1... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const ll mod = 1... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 354,809 | 354,810 | u110336920 | cpp |
p02640 | #include "bits/stdc++.h"
#define int long long
#define endl '\n'
using namespace std;
typedef long long ll;
typedef long double ld;
#define db(x) cerr << #x << ": " << x << '\n';
#define read(a) \
int a; ... | #include "bits/stdc++.h"
#define int long long
#define endl '\n'
using namespace std;
typedef long long ll;
typedef long double ld;
#define db(x) cerr << #x << ": " << x << '\n';
#define read(a) \
int a; ... | [
"literal.number.change",
"call.arguments.change"
] | 354,815 | 354,816 | u448147261 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, k = 0;
cin >> x >> y;
for (int i = 0; i < x; i++) {
if (4 * i + 2 * (x - i) == y) {
k = -1;
}
}
if (k == -1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, k = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if (4 * i + 2 * (x - i) == y) {
k = -1;
}
}
if (k == -1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 354,821 | 354,822 | u646051775 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <string>
#include <unordered_map>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
using namespace std;
template <class T> vector<T> make_vec(size_t a) { return vector<T>(a); }
template <cl... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <string>
#include <unordered_map>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
using namespace std;
template <class T> vector<T> make_vec(size_t a) { return vector<T>(a); }
template <cl... | [
"expression.operation.binary.add"
] | 354,823 | 354,824 | u314960567 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// print(fixed << setprecision(10));
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define repk(i, n, k) for (ll i = k; i < (n); i++)
#define all(n) n.begin(), n.end()
#define print(n) cout << n << endl
double PI = acos(-1.0);
int INF = 1e9;
ll LINF ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// print(fixed << setprecision(10));
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define repk(i, n, k) for (ll i = k; i < (n); i++)
#define all(n) n.begin(), n.end()
#define print(n) cout << n << endl
double PI = acos(-1.0);
int INF = 1e9;
ll LINF ... | [
"control_flow.branch.if.condition.change"
] | 354,827 | 354,828 | u713575610 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
scanf("%d%d", &x, &y);
for (int i = 1; i <= x; i++) {
int L = i * 2 + (x - i) * 4;
if (L == y) {
printf("Yes");
return 0;
}
}
printf("No");
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
scanf("%d%d", &x, &y);
for (int i = 0; i <= x; i++) {
int L = i * 2 + (x - i) * 4;
if (L == 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,831 | 354,832 | u204421101 | cpp |
p02640 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define li long
#define ll long long
#define ull unsigned long long
#define ff first
#define ss second
#define pii pair<int, int>
#define pli pair<li, li>
#define pll p... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define li long
#define ll long long
#define ull unsigned long long
#define ff first
#define ss second
#define pii pair<int, int>
#define pli pair<li, li>
#define pll p... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,833 | 354,834 | u133356919 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define fst first
#define snd second
#define sz(X) (int)(X).size()
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define fornr(i, n) for (int i = int(n) - 1; i >= 0; i--)
#define forab(i, a, b) for (int i = int(a); i < int(b... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define fst first
#define snd second
#define sz(X) (int)(X).size()
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define fornr(i, n) for (int i = int(n) - 1; i >= 0; i--)
#define forab(i, a, b) for (int i = int(a); i < int(b... | [
"literal.number.change",
"call.arguments.change"
] | 354,837 | 354,838 | u711540245 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define mk make_pair
#define pb push_back
typedef long long lld;
typedef pair<lld, lld> pr;
typedef priority_queue<lld> max_heap;
typedef priority_queue<lld, vector<lld>, greater<lld>> min_heap;
lld const mod = 1e9 + 7;
lld power(lld x, lld y) {
lld res = 1;
while (y... | #include <bits/stdc++.h>
using namespace std;
#define mk make_pair
#define pb push_back
typedef long long lld;
typedef pair<lld, lld> pr;
typedef priority_queue<lld> max_heap;
typedef priority_queue<lld, vector<lld>, greater<lld>> min_heap;
lld const mod = 1e9 + 7;
lld power(lld x, lld y) {
lld res = 1;
while (y... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 354,839 | 354,840 | u081502813 | cpp |
p02640 | #include <bits/stdc++.h>
#include <stdio.h>
#define ll long long
#define fr(i, p, n) for (ll i = p; i < n; i++)
#define fr1(i, p, n) for (ll i = p; i >= n; i--)
#define FAST \
ios::sync_with_stdio(0); ... | #include <bits/stdc++.h>
#include <stdio.h>
#define ll long long
#define fr(i, p, n) for (ll i = p; i < n; i++)
#define fr1(i, p, n) for (ll i = p; i >= n; i--)
#define FAST \
ios::sync_with_stdio(0); ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,849 | 354,850 | u792753129 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << (2 * x <= y && y <= 4 * x && y % 2 == 0 ? "YES" : "NO");
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << (2 * x <= y && y <= 4 * x && y % 2 == 0 ? "Yes" : "No");
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,851 | 354,852 | u118784386 | cpp |
p02640 | // itne me hi thakk gaye?
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("-O3")
#define ll long long
#define ull unsigned long long
using ld = long double;
const ll mod = 1e9 + 7;
const ll inf = 1e18;
const ll rk = 256;
const ll mod2 = 998244353;
const ld PI = 3.141592653589793;
#define pb push_back... | // itne me hi thakk gaye?
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("-O3")
#define ll long long
#define ull unsigned long long
using ld = long double;
const ll mod = 1e9 + 7;
const ll inf = 1e18;
const ll rk = 256;
const ll mod2 = 998244353;
const ld PI = 3.141592653589793;
#define pb push_back... | [
"control_flow.branch.if.condition.change"
] | 354,857 | 354,858 | u207533939 | cpp |
p02640 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = int64_t;
int main() {
int x, y;
cin >> x >> y;
bool is_ok = false;
for (int i = 1; i <= x; ++i) {
if (i * 2 + (x - i) * 4 == y)
is_ok = true;
}
if (is_ok)
cout << "Yes" << endl;
else
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = int64_t;
int main() {
int x, y;
cin >> x >> y;
bool is_ok = false;
for (int i = 0; i <= x; ++i) {
if (i * 2 + (x - i) * 4 == y)
is_ok = true;
}
if (is_ok)
cout << "Yes" << endl;
else
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,859 | 354,860 | u698741861 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#ifdef FIO
const int S = 1 << 21;
char p0[S], *p1, *p2;
#ifndef ZXY
#define getchar() \
(p2 == p1 && (p2 = (p1 = p0) + fread(p0, 1, S, stdin)) == p1 ? EOF : *p1++)
#endif
inline int read() {
static int x, c;
... | #include <bits/stdc++.h>
using namespace std;
#ifdef FIO
const int S = 1 << 21;
char p0[S], *p1, *p2;
#ifndef ZXY
#define getchar() \
(p2 == p1 && (p2 = (p1 = p0) + fread(p0, 1, S, stdin)) == p1 ? EOF : *p1++)
#endif
inline int read() {
static int x, c;
... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 354,865 | 354,866 | u191790075 | cpp |
p02640 | #include <bits/stdc++.h>
#define endl '\n'
#define pb push_back
#define mp make_pair
#define MOD 1000000007
#define cont continue
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const i... | #include <bits/stdc++.h>
#define endl '\n'
#define pb push_back
#define mp make_pair
#define MOD 1000000007
#define cont continue
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const i... | [
"control_flow.branch.if.condition.change"
] | 354,867 | 354,868 | u454965990 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x + 2 <= y && x * 4 >= y && x % 2 == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x * 2 <= y && x * 4 >= y && y % 2 == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"identifier.change"
] | 354,873 | 354,874 | u247123590 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pil pair<int, ll>
#define pli pair<ll, int>
#define ppi pair<pii, int>
#define pip pair<int, pii>
#define ppp pair<pii, pii>
#define pdd pair<double, double>
#define f first
#define s second
#d... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pil pair<int, ll>
#define pli pair<ll, int>
#define ppi pair<pii, int>
#define pip pair<int, pii>
#define ppp pair<pii, pii>
#define pdd pair<double, double>
#define f first
#define s second
#d... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,875 | 354,876 | u146724119 | cpp |
p02640 | #include "bits/stdc++.h"
using namespace std;
int main() {
long long X, Y;
cin >> X >> Y;
if (Y % 2 != 0)
cout << "NO" << endl;
else {
for (long long i = 0; i <= X; i++) {
if (i * 2 + (X - i) * 4 == Y) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
}
}... | #include "bits/stdc++.h"
using namespace std;
int main() {
long long X, Y;
cin >> X >> Y;
if (Y % 2 != 0)
cout << "No" << endl;
else {
for (long long i = 0; i <= X; i++) {
if (i * 2 + (X - i) * 4 == Y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
}... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,883 | 354,884 | u815026012 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
inline int ctoi(char c) {
if (c < '0' || '9' < c)
throw invalid_argument("ctoi error");
return c - '0';
}
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, k, n) for (int i = (int)(k); i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
tem... | #include <bits/stdc++.h>
using namespace std;
inline int ctoi(char c) {
if (c < '0' || '9' < c)
throw invalid_argument("ctoi error");
return c - '0';
}
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, k, n) for (int i = (int)(k); i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
tem... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,885 | 354,886 | u052935091 | cpp |
p02640 | #include <bits/stdc++.h>
#define INF 0x3f3f3f3f
#define rep(i, a, n) for (int i = (a); i < (n); i++)
#define per(i, a, n) for (int i = (a); i > (n); i--)
typedef long long ll;
const int maxn = 2e5 + 5;
const int mod = 1e9 + 7;
using namespace std;
void solve() {
ll x, y;
cin >> x >> y;
rep(i, 0, x) {
if (2 *... | #include <bits/stdc++.h>
#define INF 0x3f3f3f3f
#define rep(i, a, n) for (int i = (a); i < (n); i++)
#define per(i, a, n) for (int i = (a); i > (n); i--)
typedef long long ll;
const int maxn = 2e5 + 5;
const int mod = 1e9 + 7;
using namespace std;
void solve() {
ll x, y;
cin >> x >> y;
rep(i, 0, x + 1) {
if ... | [
"expression.operation.binary.add"
] | 354,889 | 354,890 | u229030993 | cpp |
p02640 | #include "bits/stdc++.h"
// Begin Header {{{
using namespace std;
#ifndef DEBUG
#define dump(...)
#endif
#define all(x) x.begin(), x.end()
#define rep(i, b, e) for (intmax_t i = (b), i##_limit = (e); i < i##_limit; ++i)
#define reps(i, b, e) \
for (intmax_t ... | #include "bits/stdc++.h"
// Begin Header {{{
using namespace std;
#ifndef DEBUG
#define dump(...)
#endif
#define all(x) x.begin(), x.end()
#define rep(i, b, e) for (intmax_t i = (b), i##_limit = (e); i < i##_limit; ++i)
#define reps(i, b, e) \
for (intmax_t ... | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 354,893 | 354,894 | u671257784 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define all(x) x.begin(), x.end()
#define rep(i, j, n) for (int i = j; i < (int)(n); i++)
#define _GLIBCXX_DEBUG
#define MOD 1000000007
temp... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define all(x) x.begin(), x.end()
#define rep(i, j, n) for (int i = j; i < (int)(n); i++)
#define _GLIBCXX_DEBUG
#define MOD 1000000007
temp... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,901 | 354,902 | u164181205 | cpp |
p02640 | #include <bits/stdc++.h>
// __builtin_ctz : no of trailing zeros
#define int long long
#define ll long long
#define pp pair<int, int>
#define mod 1000000007
#define trace(x) cerr << #x << ": " << x << " " << endl
#define trace2(x, y) cerr << #x << ": " << x << " | " << #y << ": " << y << endl
#define trace3(x, y, z) ... | #include <bits/stdc++.h>
// __builtin_ctz : no of trailing zeros
#define int long long
#define ll long long
#define pp pair<int, int>
#define mod 1000000007
#define trace(x) cerr << #x << ": " << x << " " << endl
#define trace2(x, y) cerr << #x << ": " << x << " | " << #y << ": " << y << endl
#define trace3(x, y, z) ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 354,903 | 354,904 | u083041127 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef int64_t ll;
typedef long double ld;
const ll MOD = 1000000007;
const ll MODA = 998244353;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
long long gcd(long long a, long long b) {
ll gcdmax = max(a, b);
ll gcdmin = min(a, b);
while (true) {
if (gcdmax %... | #include <bits/stdc++.h>
using namespace std;
typedef int64_t ll;
typedef long double ld;
const ll MOD = 1000000007;
const ll MODA = 998244353;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
long long gcd(long long a, long long b) {
ll gcdmax = max(a, b);
ll gcdmin = min(a, b);
while (true) {
if (gcdmax %... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 354,907 | 354,908 | u288905450 | cpp |
p02640 | #include <bits/stdc++.h>
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define vec_input(v) \
for (auto it = v.begin(); it != v.end(); it++) { \
cin >... | #include <bits/stdc++.h>
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define vec_input(v) \
for (auto it = v.begin(); it != v.end(); it++) { \
cin >... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.branch.if.condition.change"
] | 354,911 | 354,912 | u225660136 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 5;
const long long mod = 1e9 + 7;
int x, y;
void solve() {
for (int i = 0; i <= x; i++) {
int curr = i * 2;
int rem = (x - i) * 4;
if (curr + rem == y) {
cout << "YES\n";
return;
}
}
cout << "NO\n";
}
int main() {
... | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 5;
const long long mod = 1e9 + 7;
int x, y;
void solve() {
for (int i = 0; i <= x; i++) {
int curr = i * 2;
int rem = (x - i) * 4;
if (curr + rem == y) {
cout << "Yes\n";
return;
}
}
cout << "No\n";
}
int main() {
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,913 | 354,914 | u321132398 | cpp |
p02640 | // clear adj and visited vector declared globally after each test case
// check for long long overflow
// while adding and subs check if mod becomes -ve
// while using an integer directly in a builtin function add ll
// Mod wale question mein last mein if dalo ie. Ans<0 then ans+=mod;
// Dont keep array name as size or... | // clear adj and visited vector declared globally after each test case
// check for long long overflow
// while adding and subs check if mod becomes -ve
// while using an integer directly in a builtin function add ll
// Mod wale question mein last mein if dalo ie. Ans<0 then ans+=mod;
// Dont keep array name as size or... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,915 | 354,916 | u120659896 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, ini, n) for (int i = ini; i < n; i++)
#define _rep(i, ini, n) for (int i = ini; i >= n; i--)
#define ToEnd(a) a.begin(), a.end()
uint64_t MOD = 1000000007;
int main() {
int x, y;
cin >> x >> y;
string ans = "No";
rep(i, 1, x + 1) {
if (2 * i + 4... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, ini, n) for (int i = ini; i < n; i++)
#define _rep(i, ini, n) for (int i = ini; i >= n; i--)
#define ToEnd(a) a.begin(), a.end()
uint64_t MOD = 1000000007;
int main() {
int x, y;
cin >> x >> y;
string ans = "No";
rep(i, 0, x + 1) {
if (2 * i + 4... | [
"literal.number.change",
"call.arguments.change"
] | 354,919 | 354,920 | u190679129 | cpp |
p02640 | #include <bits/stdc++.h>
#define rep(i, cc, n) for (int i = cc; i <= n; ++i)
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = X, t = 0;
bool ans = false;
while (0 < c) {
if (2 * c + 4 * t == Y) {
cout << "Yes" << endl;
return 0;
} else {
c--, t++;
}
}
cou... | #include <bits/stdc++.h>
#define rep(i, cc, n) for (int i = cc; i <= n; ++i)
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = X, t = 0;
while (0 <= c) {
if (2 * c + 4 * t == Y) {
cout << "Yes" << endl;
return 0;
} else {
c--, t++;
}
}
cout << "No" << endl;
... | [
"variable_declaration.remove",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 354,937 | 354,938 | u752006685 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int an, legs;
scanf("%d %d", &an, &legs);
if (legs % 2 == 0 && an * 2 <= legs && an * 4 >= legs)
printf("YES");
else
printf("NO");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int an, legs;
scanf("%d %d", &an, &legs);
if (legs % 2 == 0 && an * 2 <= legs && an * 4 >= legs)
printf("Yes");
else
printf("No");
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 354,939 | 354,940 | u078016678 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll x, y;
cin >> x >> y;
for (ll i = 1; i <= 100; i++) {
ll t = i * 2;
ll r = (x - i) * 4;
if (t + r == y) {
cout << "Yes"
<< "\n";
return 0;
}
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll x, y;
cin >> x >> y;
for (ll i = 0; i <= x; i++) {
ll t = i * 2;
ll r = (x - i) * 4;
if (t + r == y) {
cout << "Yes"
<< "\n";
return 0;
}
}
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 354,943 | 354,944 | u786667376 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
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;
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;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 354,945 | 354,946 | u285486772 | cpp |
p02640 | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll, ll>>
#define VVL vector<vector<ll>>
#define VVP ve... | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll, ll>>
#define VVL vector<vector<ll>>
#define VVP ve... | [
"literal.number.change",
"call.arguments.change"
] | 354,955 | 354,956 | u829403090 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// int/long: -2,147,483,648 - 2,147,483,647 (-2^31 <= int < 2^31)
// long/long long: -9,223,372,036,854,775,808 - 9,223,372,036,854,775,807
// (-2^63 <= long < 2^63)
#define INF (1 << 30)
// 1,073,741,824
//= 536,870,912 *2
#define M... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// int/long: -2,147,483,648 - 2,147,483,647 (-2^31 <= int < 2^31)
// long/long long: -9,223,372,036,854,775,808 - 9,223,372,036,854,775,807
// (-2^63 <= long < 2^63)
#define INF (1 << 30)
// 1,073,741,824
//= 536,870,912 *2
#define M... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 354,966 | 354,967 | u216849520 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(), v.end()
#define ALLR(v) v.rbegin(), v.rend()
typedef long long ll;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1}... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(), v.end()
#define ALLR(v) v.rbegin(), v.rend()
typedef long long ll;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1}... | [
"control_flow.branch.if.condition.change"
] | 354,975 | 354,974 | u474760662 | cpp |
p02640 | #include <bits/stdc++.h>
#define rep(i, n) for (long long int i = 0; i < n; i++)
#define _rep(i, m, n) for (long long int i = m; i < n; i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int MAX_N = 100010;
const ll mod = 1000000007;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1,... | #include <bits/stdc++.h>
#define rep(i, n) for (long long int i = 0; i < n; i++)
#define _rep(i, m, n) for (long long int i = m; i < n; i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int MAX_N = 100010;
const ll mod = 1000000007;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1,... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 354,988 | 354,989 | u999788719 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
main() {
int x, y;
cin >> x >> y;
if (y & 1)
cout << "No";
else {
if (y >= (2 * x) || y <= (4 * x))
cout << "Yes";
else
cout << "No";
}
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
main() {
int x, y;
cin >> x >> y;
if (y & 1)
cout << "No";
else {
if (y >= (2 * x) && y <= (4 * x))
cout << "Yes";
else
cout << "No";
}
} | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 354,992 | 354,993 | u780713452 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define M 200005
#define MOD 1000000007
#define PI 3.14159265358979323846
#define ep emplace_back
#define mk make_pair
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
typedef long long int lli;
typedef unsigned long long int ulli;
typedef pa... | #include <bits/stdc++.h>
using namespace std;
#define M 200005
#define MOD 1000000007
#define PI 3.14159265358979323846
#define ep emplace_back
#define mk make_pair
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
typedef long long int lli;
typedef unsigned long long int ulli;
typedef pa... | [
"control_flow.branch.if.condition.change"
] | 354,996 | 354,997 | u232476314 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define ar array
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int x, y;
cin >> x >> y;
for (int a = 1; a < x; a++) {
int b = x - a;
if (2 * a + 4 * b == y) {
cout << "Yes\n";
return 0... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define ar array
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int x, y;
cin >> x >> y;
for (int a = 0; a <= x; a++) {
int b = x - a;
if (2 * a + 4 * b == y) {
cout << "Yes\n";
return ... | [
"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"
] | 355,000 | 355,001 | u366795445 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define rep(i, a, b) for (i = a; i < b; i++)
ll int large = (ll int)1e18;
ll int mod = (ll int)1e9 + 7;
ll int mod_exp(ll int x, ll int n) {
ll int result = 1;
while (n > 0) {
if (n % 2 == 1)
result = (result * x) % m... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define rep(i, a, b) for (i = a; i < b; i++)
ll int large = (ll int)1e18;
ll int mod = (ll int)1e9 + 7;
ll int mod_exp(ll int x, ll int n) {
ll int result = 1;
while (n > 0) {
if (n % 2 == 1)
result = (result * x) % m... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 355,002 | 355,003 | u885507578 | cpp |
p02640 | /*
* WelcomeToAtCoder.cpp
*
* Created on: 2020/02/19
* Author: black
*/
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <list>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 1; i <= x; ++i) {
if... | /*
* WelcomeToAtCoder.cpp
*
* Created on: 2020/02/19
* Author: black
*/
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <list>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
if... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 355,008 | 355,009 | u183987726 | cpp |
p02640 | #include <bits/stdc++.h>
#define pb push_back
#define vii vector<int>
#define task "RESORT"
#define pll pair<ll, ll>
#define pii pair<ll, pair<ll, ll>>
#define fi first
#define se second
using ll = long long;
using ld = long double;
using ull = unsigned long long;
const int mod = 1e9 + 7;
using namespace std;
const in... | #include <bits/stdc++.h>
#define pb push_back
#define vii vector<int>
#define task "RESORT"
#define pll pair<ll, ll>
#define pii pair<ll, pair<ll, ll>>
#define fi first
#define se second
using ll = long long;
using ld = long double;
using ull = unsigned long long;
const int mod = 1e9 + 7;
using namespace std;
const in... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 355,010 | 355,011 | u521156363 | cpp |
p02640 | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = 1; i < (int)(n); i++)
#define dunk(n) cout << n << endl
#define all(a) (a).begin(), (a).end()
typedef pair<int, int> P;
typedef long long ll;
int main() {
int x, y... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = 1; i < (int)(n); i++)
#define dunk(n) cout << n << endl
#define all(a) (a).begin(), (a).end()
typedef pair<int, int> P;
typedef long long ll;
int main() {
int x, y... | [
"expression.operation.binary.add"
] | 355,012 | 355,013 | u257837042 | cpp |
p02640 | #include <bits/stdc++.h>
//#include<cstdio>
//#pragma GCC optimize("Ofast,unroll-loops,no-stack-protector,fast-math")
/*
inline int read(){
int res=0; char ch=getchar_unlocked();
while(ch<'0'||ch>'9') ch=getchar_unlocked();
while(ch>='0'&&ch<='9')
res=(res<<3)+(res<<1)+(ch^48),ch=getchar_unlocke... | #include <bits/stdc++.h>
//#include<cstdio>
//#pragma GCC optimize("Ofast,unroll-loops,no-stack-protector,fast-math")
/*
inline int read(){
int res=0; char ch=getchar_unlocked();
while(ch<'0'||ch>'9') ch=getchar_unlocked();
while(ch>='0'&&ch<='9')
res=(res<<3)+(res<<1)+(ch^48),ch=getchar_unlocke... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 355,016 | 355,017 | u058481253 | cpp |
p02640 | #include <bits/stdc++.h>
// debug
#define vecprint(v) \
rep(i, v.size()) cout << v[i] << " "; \
cout << endl;
#define setprint(s) \
for (auto i = s.begin(); ... | #include <bits/stdc++.h>
// debug
#define vecprint(v) \
rep(i, v.size()) cout << v[i] << " "; \
cout << endl;
#define setprint(s) \
for (auto i = s.begin(); ... | [
"control_flow.branch.if.condition.change"
] | 355,018 | 355,019 | u792882228 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = (0); i < (n); ++i)
#define ALL(obj) (obj).begin(), (obj).end()
#define DEBUG(val) cout << #val << " : " << val << endl
#define MOD 1000000007
int main() {
int x, y;
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = (0); i < (n); ++i)
#define ALL(obj) (obj).begin(), (obj).end()
#define DEBUG(val) cout << #val << " : " << val << endl
#define MOD 1000000007
int main() {
int x, y;
... | [
"literal.number.change",
"call.arguments.change"
] | 355,020 | 355,021 | u947517859 | cpp |
p02640 | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define pii acos(-1)
#define fo(i0n) for (i = 0; i < n; i++)
#define fo(i1n) for (i = 1; i <= n; i++)
#define fo(j0n) for (j = 0; j < n; j++)
#define fo(j1n) for (j = 1; j <= n; j++)
#define fast() ... | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define pii acos(-1)
#define fo(i0n) for (i = 0; i < n; i++)
#define fo(i1n) for (i = 1; i <= n; i++)
#define fo(j0n) for (j = 0; j < n; j++)
#define fo(j1n) for (j = 1; j <= n; j++)
#define fast() ... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 355,022 | 355,023 | u563289170 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr long long MOD = 1000000007;
constexpr long long INF = 1LL << 60;
const long double PI = acosl(-1.0);
constexpr long double EPS = 1e-11;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr long long MOD = 1000000007;
constexpr long long INF = 1LL << 60;
const long double PI = acosl(-1.0);
constexpr long double EPS = 1e-11;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return ... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 355,024 | 355,025 | u371051907 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool nazo = false;
for (int i = 1; i <= X; i++) {
if (i * 2 + (X - i) * 4 == Y) {
nazo = true;
}
}
if (nazo) {
cout << "Yes";
} else {
cout << "No";
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool nazo = false;
for (int i = 0; i <= X; i++) {
if (i * 2 + (X - i) * 4 == Y) {
nazo = true;
}
}
if (nazo) {
cout << "Yes";
} else {
cout << "No";
}
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 355,026 | 355,027 | u659267170 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int crane = 4 * X - Y;
if (crane > 0) {
if (2 * X - crane < 0)
cout << "No" << endl;
else if (crane % 2 == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
} else
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int crane = 4 * X - Y;
if (crane >= 0) {
if (2 * X - crane < 0)
cout << "No" << endl;
else if (crane % 2 == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
} else
cout << "No" << endl;
}... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 355,032 | 355,033 | u075250977 | cpp |
p02640 | /**
* Hi, I'm Arpan.
* Hardwork beats talent if talents doesn't work hard, friend me if you want
* to. ✌.|•͡˘‿•͡˘|.✌
*
*/
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
typedef pair<int, int> pi;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<string> vs;
#define inv(v) ... | /**
* Hi, I'm Arpan.
* Hardwork beats talent if talents doesn't work hard, friend me if you want
* to. ✌.|•͡˘‿•͡˘|.✌
*
*/
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
typedef pair<int, int> pi;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<string> vs;
#define inv(v) ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 355,038 | 355,039 | u330808883 | cpp |
p02640 | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()
using ll = long long;
using ull = unsigned long long;
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (X * 4 < Y)... | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()
using ll = long long;
using ull = unsigned long long;
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (X * 4 < Y ... | [
"control_flow.branch.if.condition.change"
] | 355,040 | 355,041 | u320211890 | cpp |
p02640 | #include <algorithm>
#include <bitset>
#include <chrono>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <stack>
#include <unordered_map>
#include <vector>
using namespace std;
using ll = long long;
const ll INF = (ll)1e18 + 1;
const ll... | #include <algorithm>
#include <bitset>
#include <chrono>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <stack>
#include <unordered_map>
#include <vector>
using namespace std;
using ll = long long;
const ll INF = (ll)1e18 + 1;
const ll... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 355,044 | 355,045 | u645961531 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
#define mod 1000000007
#define IOS ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
int32_t main() {
IOS;
int x, y, c = 0, t;
cin >> x >> y;
bool valid = false;
t = x;
while (t >= 0) {
if (t * 4 + c * 2 == y) {
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
#define mod 1000000007
#define IOS ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
int32_t main() {
IOS;
int x, y, c = 0, t;
cin >> x >> y;
bool valid = false;
t = x;
while (t >= 0) {
if (t * 4 + c * 2 == y) {
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 355,046 | 355,047 | u779968678 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dd;
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define nl << "\n"
#define con continue
#define br break
#define vll vector<ll>
#define vpll vector<pair<ll, ll>>
ll mx = INT_MAX;
ll mi = INT_MIN;
const ll... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dd;
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define nl << "\n"
#define con continue
#define br break
#define vll vector<ll>
#define vpll vector<pair<ll, ll>>
ll mx = INT_MAX;
ll mi = INT_MIN;
const ll... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 355,048 | 355,049 | u716191775 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
int main() {
int x, y;
cin >> x >> y;
rep(i, x) {
if (2 * i == y - 2 * x) {
cout << "Yes" << endl;
return 0;
}
}
cout << ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
int main() {
int x, y;
cin >> x >> y;
rep(i, x + 1) {
if (2 * i == y - 2 * x) {
cout << "Yes" << endl;
return 0;
}
}
cout... | [
"expression.operation.binary.add"
] | 355,052 | 355,053 | u016334391 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
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;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
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;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 355,054 | 355,055 | u873762144 | cpp |
p02640 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y >= 2 * x && 4 * x >= y) {
if ((y - 2 * x) % 2 == 0 && (4 * x - y) == 0)
cout << "Yes";
else
cout << "No";
}
else
cout << "No";
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long long int x, y;
cin >> x >> y;
if (y >= 2 * x && 4 * x >= y) {
if ((y - 2 * x) % 2 == 0 && (4 * x - y) % 2 == 0)
cout << "Yes";
else
cout << "No";
}
else
cout << "No";
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 355,062 | 355,063 | u152646596 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define int long long
#define pb push_back
#define mp make_pair
#define pii pair<int, int>
#define vi vector<int>
#define mii map<int, int>
#define pqb priority_queue<int>
#define pqs priority_queue<int, vi, greater<int>>
#define setbits(... | #include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define int long long
#define pb push_back
#define mp make_pair
#define pii pair<int, int>
#define vi vector<int>
#define mii map<int, int>
#define pqb priority_queue<int>
#define pqs priority_queue<int, vi, greater<int>>
#define setbits(... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 355,064 | 355,065 | u017760727 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y < 2 * x || y > 4 * x) {
cout << "NO" << endl;
} else {
if (y % 2 != 0) {
cout << "NO" << endl;
} else {
cout << "YES" << endl;
}
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y < 2 * x || y > 4 * x) {
cout << "No" << endl;
} else {
if (y % 2 != 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 355,066 | 355,067 | u896302981 | cpp |
p02640 |
/* 実行時間1s制限の場合10^6 1,000,000 : 余裕をもって間に合う10^7
10,000,000 : おそらく間に合う10^8 100,000,000 : 非常にシンプルな処理
でないと厳しい
*/
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#include <bits/stdc++.h>
#define M_PI 3.14159265358979323846
using namespace std;
typedef long... |
/* 実行時間1s制限の場合10^6 1,000,000 : 余裕をもって間に合う10^7
10,000,000 : おそらく間に合う10^8 100,000,000 : 非常にシンプルな処理
でないと厳しい
*/
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#include <bits/stdc++.h>
#define M_PI 3.14159265358979323846
using namespace std;
typedef long... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 355,072 | 355,073 | u234248338 | cpp |
p02640 | #include <cstdio>
int main(void) {
int X, Y;
scanf("%d%d", &X, &Y);
int b2 = Y - 2 * X;
if (b2 < 0 || b2 % 2)
printf("NO");
else {
int a = X - b2 / 2;
if (a < 0)
printf("NO");
else
printf("YES");
}
} | #include <cstdio>
int main(void) {
int X, Y;
scanf("%d%d", &X, &Y);
int b2 = Y - 2 * X;
if (b2 < 0 || b2 % 2)
printf("No");
else {
int a = X - b2 / 2;
if (a < 0)
printf("No");
else
printf("Yes");
}
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 355,076 | 355,077 | u812044413 | cpp |
p02640 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return 1;
}
return 0;
}
#define all(x) (x).begin(), ... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return 1;
}
return 0;
}
#define all(x) (x).begin(), ... | [
"variable_declaration.remove",
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 355,080 | 355,081 | u096266116 | cpp |
p02640 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
for (int i = 1; i <= X; ++i) {
int j = X - i;
if (i * 2 + j * 4 == Y) {
printf("%s\n", "Yes");
return 0;
}
}
printf("%s\n", "No");
return 0;
}
| #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
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) {
printf("%s\n", "Yes");
return 0;
}
}
printf("%s\n", "No");
return 0;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 355,084 | 355,085 | u358765098 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define so(v) sort(v.begin(), v.end())
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
const int MAX = 510000;
const int MOD = 1000000007;
ll gcd(ll a, ll b) {
if (a % b == 0) {
return (b);
}... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define so(v) sort(v.begin(), v.end())
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
const int MAX = 510000;
const int MOD = 1000000007;
ll gcd(ll a, ll b) {
if (a % b == 0) {
return (b);
}... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 355,088 | 355,089 | u851205244 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, x, n) for (int i = x; i < (int)n; i++)
#define rep(i, n) REP(i, 0, n)
#define sp(p) cout << setprecision(16) << fixed << p << endl;
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define SORT(a) sort(all(a))
#define RSORT(a) sort(rall(... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, x, n) for (int i = x; i < (int)n; i++)
#define rep(i, n) REP(i, 0, n)
#define sp(p) cout << setprecision(16) << fixed << p << endl;
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define SORT(a) sort(all(a))
#define RSORT(a) sort(rall(... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 355,090 | 355,091 | u515328251 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, x, n) for (int i = x; i < (int)n; i++)
#define rep(i, n) REP(i, 0, n)
#define sp(p) cout << setprecision(16) << fixed << p << endl;
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define SORT(a) sort(all(a))
#define RSORT(a) sort(rall(... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, x, n) for (int i = x; i < (int)n; i++)
#define rep(i, n) REP(i, 0, n)
#define sp(p) cout << setprecision(16) << fixed << p << endl;
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define SORT(a) sort(all(a))
#define RSORT(a) sort(rall(... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 355,092 | 355,091 | u515328251 | cpp |
p02640 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, x, n) for (int i = x; i < (int)n; i++)
#define rep(i, n) REP(i, 0, n)
#define sp(p) cout << setprecision(16) << fixed << p << endl;
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define SORT(a) sort(all(a))
#define RSORT(a) sort(rall(... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, x, n) for (int i = x; i < (int)n; i++)
#define rep(i, n) REP(i, 0, n)
#define sp(p) cout << setprecision(16) << fixed << p << endl;
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define SORT(a) sort(all(a))
#define RSORT(a) sort(rall(... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 355,093 | 355,091 | u515328251 | cpp |
p02640 | #include <bits/stdc++.h>
#define sz 100002
#define pb push_back
#define ff first
#define ss second
#define ll long long
#define TEST() \
int test; \
cin >> test; ... | #include <bits/stdc++.h>
#define sz 100002
#define pb push_back
#define ff first
#define ss second
#define ll long long
#define TEST() \
int test; \
cin >> test; ... | [
"control_flow.branch.if.condition.change"
] | 355,094 | 355,095 | u308256845 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.