Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02639
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define mod 1000000007 #define f(i, a, b) for (ll i = a; i < b; i++) #define IOS \ ios::sync_with_stdio(0); \...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define mod 1000000007 #define f(i, a, b) for (ll i = a; i < b; i++) #define IOS \ ios::sync_with_stdio(0); \...
[]
350,110
350,111
u883521673
cpp
p02639
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int x; rep(i, 5) { cin >> x; if (x == 0) { cout << x + 1 << endl; } } }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int x; rep(i, 5) { cin >> x; if (x == 0) { cout << i + 1 << endl; } } }
[ "identifier.change", "io.output.change" ]
350,119
350,120
u656325289
cpp
p02639
#include <bits/stdc++.h> using namespace std; int main(void) { int i, j; for (i = 0; i < 5; ++i) { int k; cin >> k; if (k == 0) { j = i; } } printf("%d\n", j); return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { int i, j; for (i = 0; i < 5; ++i) { int k; cin >> k; if (k == 0) { j = i + 1; } } printf("%d\n", j); return 0; }
[ "assignment.change" ]
350,127
350,128
u464540027
cpp
p02639
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll = long long; int main() { for (int i = 0; i < 4; i++) { int x; cin >> x; if (x == 0) cout << i + 1 << endl; } }
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll = long long; int main() { for (int i = 0; i < 5; i++) { int x; cin >> x; if (x == 0) cout << i + 1 << endl; } }
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,129
350,130
u495692658
cpp
p02639
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, n) for (ll(i) = (0); (i) < (n); ++i) #define REV(i, n) for (ll(i)...
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, n) for (ll(i) = (0); (i) < (n); ++i) #define REV(i, n) for (ll(i)...
[ "expression.operation.binary.add" ]
350,138
350,139
u382880969
cpp
p02639
#include <iostream> using namespace std; int main() { int x[5]; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) { cout << i << endl; return 0; } } }
#include <iostream> using namespace std; int main() { int x[5]; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) { cout << i + 1 << endl; return 0; } } }
[ "expression.operation.binary.add" ]
350,153
350,154
u492244370
cpp
p02639
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 0; i < 4; i++) { int t; cin >> t; if (!t) { cout << i + 1 << endl; return 0; } } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 0; i < 5; i++) { int t; cin >> t; if (!t) { cout << i + 1 << endl; return 0; } } return 0; }
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,158
350,159
u490206183
cpp
p02639
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; int main() { for (int i = 0; i < 4; i++) { int temp; cin >> temp; if (temp == 0) cout << i + 1 << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; int main() { for (int i = 0; i < 5; i++) { int temp; cin >> temp; if (temp == 0) cout << i + 1 << endl; } return 0; }
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,179
350,180
u118647609
cpp
p02639
// // Created by 26019 on 2020/6/14/014. // #include <iostream> using namespace std; int main() { int x1, x2, x3, x4, x5; cin >> x1 >> x2 >> x3 >> x4 >> x5; if (x1 == 0) { cout << "1" << endl; } if (x2 == 0) { cout << "1" << endl; } if (x3 == 0) { cout << "1" << endl; } if (x4 == 0) { ...
// // Created by 26019 on 2020/6/14/014. // #include <iostream> using namespace std; int main() { int x1, x2, x3, x4, x5; cin >> x1 >> x2 >> x3 >> x4 >> x5; if (x1 == 0) { cout << "1" << endl; } if (x2 == 0) { cout << "2" << endl; } if (x3 == 0) { cout << "3" << endl; } if (x4 == 0) { ...
[ "literal.string.change", "io.output.change" ]
350,181
350,182
u005039821
cpp
p02639
#include <bits/stdc++.h> #include <cmath> #define pb push_back #define ld long double #define mp make_pair #define vl vector<ll> #define vd vector<double> #define vld vector<long double> #define ll long long int #define pl pair<ll, ll> #define all(a) a.begin(), a.end() #define forr(i, n) for (ll i = 0; i < n; i++) #def...
#include <bits/stdc++.h> #include <cmath> #define pb push_back #define ld long double #define mp make_pair #define vl vector<ll> #define vd vector<double> #define vld vector<long double> #define ll long long int #define pl pair<ll, ll> #define all(a) a.begin(), a.end() #define forr(i, n) for (ll i = 0; i < n; i++) #def...
[ "literal.number.change", "variable_declaration.value.change" ]
350,183
350,184
u212813350
cpp
p02639
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { vector<int> v(5); for (int i = 0; i < 4; i++) { cin >> v[i]; if (v[i] == 0) cout << i + 1 << endl; } }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { vector<int> v(5); for (int i = 0; i < 5; i++) { cin >> v[i]; if (v[i] == 0) cout << i + 1 << endl; } }
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,189
350,190
u619653948
cpp
p02639
#include <algorithm> //sort,二分探索,など #include <bitset> //固定長bit集合 #include <cmath> //pow,logなど #include <complex> //複素数 #include <deque> //両端アクセスのキュー #include <functional> //sortのgreater #include <iomanip> //setprecision(浮動小数点の出力の誤差) #include <iostream> //入出力 #include <iter...
#include <algorithm> //sort,二分探索,など #include <bitset> //固定長bit集合 #include <cmath> //pow,logなど #include <complex> //複素数 #include <deque> //両端アクセスのキュー #include <functional> //sortのgreater #include <iomanip> //setprecision(浮動小数点の出力の誤差) #include <iostream> //入出力 #include <iter...
[ "expression.operation.binary.add" ]
350,191
350,192
u694422786
cpp
p02639
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; scanf("%d %d %d %d %d", &x[0], &x[1], &x[2], &x[3], &x[4]); for (int i = 0; i < 5; i++) { if (x[i] == 0) { printf("%d", i); break; } } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; scanf("%d %d %d %d %d", &x[0], &x[1], &x[2], &x[3], &x[4]); for (int i = 0; i < 5; i++) { if (x[i] == 0) { printf("%d", i + 1); break; } } return 0; }
[ "expression.operation.binary.add" ]
350,195
350,196
u685629265
cpp
p02639
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using ll = long long; #define rep(i, n) for (int i = 0; i < n; i++) #define repk(i, k, n...
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using ll = long long; #define rep(i, n) for (int i = 0; i < n; i++) #define repk(i, k, n...
[ "expression.operation.binary.add" ]
350,201
350,202
u296160120
cpp
p02639
#include <bits/stdc++.h> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) #define repp(i, n, m) for (int i = m; i < (n); ++i) #define repl(i, n) for (long long i = 0; i < (n); ++i) #d...
#include <bits/stdc++.h> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) #define repp(i, n, m) for (int i = m; i < (n); ++i) #define repl(i, n) for (long long i = 0; i < (n); ++i) #d...
[]
350,205
350,206
u772395065
cpp
p02639
/* The Island Was Silent before. ..... And One day again it became Silent. */ #include <bits/stdc++.h> using namespace std; #define endl '\n' #define ll long long #define modd(a, b) ((a + 2 * b) % b) #define debug(a) cout << #a << ": " << (a) << "\n" #define ioso ios_base::sync_with_stdio(0), cin.tie(0), cout.ti...
/* The Island Was Silent before. ..... And One day again it became Silent. */ #include <bits/stdc++.h> using namespace std; #define endl '\n' #define ll long long #define modd(a, b) ((a + 2 * b) % b) #define debug(a) cout << #a << ": " << (a) << "\n" #define ioso ios_base::sync_with_stdio(0), cin.tie(0), cout.ti...
[ "variable_declaration.remove", "literal.number.change", "variable_declaration.array_dimensions.change" ]
350,207
350,208
u118452388
cpp
p02639
#include <bits/stdc++.h> #define INF 1e18 #define Rep(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) Rep(i, 0, n) #define all(a) (a).begin(), (a).end() #define MAX 1000 #define ll long long #define P pair<int, int> #define cout_set(n) cout << setprecision(10) << (n) << endl; const double PI = 3.141592653589...
#include <bits/stdc++.h> #define INF 1e18 #define Rep(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) Rep(i, 0, n) #define all(a) (a).begin(), (a).end() #define MAX 1000 #define ll long long #define P pair<int, int> #define cout_set(n) cout << setprecision(10) << (n) << endl; const double PI = 3.141592653589...
[ "expression.operation.binary.add" ]
350,213
350,214
u771184600
cpp
p02639
#include <bits/stdc++.h> #define fi first #define se second #define pb push_back using namespace std; int main() { for (int i = 1; i <= 5; i++) { int x; cin >> x; if (x == 0) cout << 1 << endl; } }
#include <bits/stdc++.h> #define fi first #define se second #define pb push_back using namespace std; int main() { for (int i = 1; i <= 5; i++) { int x; cin >> x; if (x == 0) cout << i << endl; } }
[ "identifier.replace.add", "literal.replace.remove", "io.output.change" ]
350,215
350,216
u786568137
cpp
p02639
#include <bits/stdc++.h> #define int long long int #define endl '\n' #define pb push_back #define mod 1000000007 #define db(i) cout << i << " "; #define db1(i) cout << "(" << i << ")"; #define db2(i) cout << "[" << i << "]"; #define db3(i) cout << "{" << i << "}"; #define ff first #define ss second #define vv vector #d...
#include <bits/stdc++.h> #define int long long int #define endl '\n' #define pb push_back #define mod 1000000007 #define db(i) cout << i << " "; #define db1(i) cout << "(" << i << ")"; #define db2(i) cout << "[" << i << "]"; #define db3(i) cout << "{" << i << "}"; #define ff first #define ss second #define vv vector #d...
[ "expression.operation.binary.remove", "assignment.change" ]
350,221
350,222
u054483369
cpp
p02639
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; int ans = 0; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) ans = i; } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x[5]; int ans = 0; for (int i = 0; i < 5; i++) { cin >> x[i]; if (x[i] == 0) ans = i + 1; } cout << ans << endl; return 0; }
[ "assignment.change" ]
350,223
350,224
u906832993
cpp
p02639
/* Author : Nishant Gupta 2.0 */ #include <bits/stdc++.h> using namespace std; #define LL long long int #define getcx getchar_unlocked #define X first #define Y second #define PB push_back #define MP make_pair #define MAX 100005 #define LOG_MAX 20 #define MOD 1000000007 #define INF 0x3f3f3f3f #define INFL (LL(1e18...
/* Author : Nishant Gupta 2.0 */ #include <bits/stdc++.h> using namespace std; #define LL long long int #define getcx getchar_unlocked #define X first #define Y second #define PB push_back #define MP make_pair #define MAX 100005 #define LOG_MAX 20 #define MOD 1000000007 #define INF 0x3f3f3f3f #define INFL (LL(1e18...
[]
350,229
350,230
u229654503
cpp
p02639
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define pb push_back #define mk make_pair #define ff first #define ss second typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); for (int i = 1; i <= 5; i++) { int x; cin >> x; if (!x) cout ...
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define pb push_back #define mk make_pair #define ff first #define ss second typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); for (int i = 1; i <= 5; i++) { int x; cin >> x; if (!x) cout ...
[ "expression.operation.binary.remove" ]
350,231
350,232
u432727615
cpp
p02639
#include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(0); \ cin.tie(NULL); \ cout.tie(NULL); #define Mod 1...
#include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(0); \ cin.tie(NULL); \ cout.tie(NULL); #define Mod 1...
[ "io.output.change" ]
350,235
350,236
u095260469
cpp
p02639
#include <bits/stdc++.h> using namespace std; signed main() { int a; for (int i = 0; i < 5; i++) { cin >> a; if (i == 0) { cout << i + 1 << endl; } } return (0); }
#include <bits/stdc++.h> using namespace std; signed main() { int a; for (int i = 0; i < 5; i++) { cin >> a; if (a == 0) { cout << i + 1 << endl; } } return (0); }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
350,237
350,238
u899084195
cpp
p02639
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 0; i < 5; ++i) { cin >> x; if (x == 0) { cout << i << endl; return 0; } } }
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 0; i < 5; ++i) { cin >> x; if (x == 0) { cout << i + 1 << endl; return 0; } } }
[ "expression.operation.binary.add" ]
350,239
350,240
u031240034
cpp
p02639
/* */ #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep2(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) rep2(i, 0, n) template <class T, class U> void chmin(T &t, U f) { if (t > f) t = f; } template <class T, class U> void chmax(T &t, U f) { if (t < f) t = f; } i...
/* */ #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep2(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) rep2(i, 0, n) template <class T, class U> void chmin(T &t, U f) { if (t > f) t = f; } template <class T, class U> void chmax(T &t, U f) { if (t < f) t = f; } i...
[ "expression.operation.binary.add" ]
350,241
350,242
u277956366
cpp
p02639
#include <iostream> using namespace std; int main() { int a[5]; for (int x = 0; x < 5; x++) { cin >> a[x]; if (a[x] == 0) cout << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a[5]; for (int x = 0; x < 5; x++) { cin >> a[x]; if (a[x] == 0) cout << x + 1 << endl; } return 0; }
[ "expression.operation.binary.add" ]
350,243
350,244
u545031555
cpp
p02639
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include ...
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include ...
[ "expression.operation.binary.remove" ]
350,253
350,254
u105005412
cpp
p02639
#pragma GCC target("avx") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> // #include<ext/pb_ds/assoc_container.hpp> // #include<ext/pb_ds/tree_policy.hpp> // #include<ext/pb_ds/tag_and_trait.hpp> // using namespace __gnu_pbds; // #include<boost/multiprecision/cpp_int.hpp> // na...
#pragma GCC target("avx") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> // #include<ext/pb_ds/assoc_container.hpp> // #include<ext/pb_ds/tree_policy.hpp> // #include<ext/pb_ds/tag_and_trait.hpp> // using namespace __gnu_pbds; // #include<boost/multiprecision/cpp_int.hpp> // na...
[]
350,255
350,256
u251847465
cpp
p02639
// In the name of god #include <bits/stdc++.h> #pragma GCC optimize("02") #define pb push_back #define F first #define S second using namespace std; using ll = long long; const ll maxn = 1e5 + 5, inf = 1e18 + 18; ll n, m, t; int main() { ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); for (int i = 0; i < 4; i...
// In the name of god #include <bits/stdc++.h> #pragma GCC optimize("02") #define pb push_back #define F first #define S second using namespace std; using ll = long long; const ll maxn = 1e5 + 5, inf = 1e18 + 18; ll n, m, t; int main() { ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); for (int i = 0; i <= 4; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,259
350,260
u264116128
cpp
p02639
// May this submission get accepted #include <bits/stdc++.h> // エイリアス using ll = long signed long; using ull = long unsigned long; using ld = long double; using namespace std; // AtCoder/Codeforces 用 デバッグ検知 #ifdef ONLINE_JUDGE constexpr bool DEBUG_MODE = false; #else constexpr bool DEBUG_MODE = true; #endif // エイリアス...
// May this submission get accepted #include <bits/stdc++.h> // エイリアス using ll = long signed long; using ull = long unsigned long; using ld = long double; using namespace std; // AtCoder/Codeforces 用 デバッグ検知 #ifdef ONLINE_JUDGE constexpr bool DEBUG_MODE = false; #else constexpr bool DEBUG_MODE = true; #endif // エイリアス...
[ "expression.operation.binary.add" ]
350,261
350,262
u653187094
cpp
p02639
#include <assert.h> #include <bits/stdc++.h> #include <time.h> using namespace std; #define For(i, x, n) for (long long i = x; i < n; i++) #define rFor(i, x, n) for (long long i = x; i >= n; i--) #define itFor(it, st) for (auto it = st.begin(); it != st.end(); it++) #define MOD 1000000007 #define PI 3.141592653589793...
#include <assert.h> #include <bits/stdc++.h> #include <time.h> using namespace std; #define For(i, x, n) for (long long i = x; i < n; i++) #define rFor(i, x, n) for (long long i = x; i >= n; i--) #define itFor(it, st) for (auto it = st.begin(); it != st.end(); it++) #define MOD 1000000007 #define PI 3.141592653589793...
[ "control_flow.break.remove", "control_flow.return.add", "function.return_value.change" ]
350,269
350,270
u375267383
cpp
p02639
// -------------- // Tejas Pandey | // 14 - 06 - 20 | // Atcoder BC 170| // -------------- #include <bits/stdc++.h> using namespace std; #define mod 1000000007 #define vi vector<int> typedef long long int ll; int main(void) { // freopen("in.txt","r",stdin); // freopen("out.txt","w",stdout); ios_base::sync_wi...
// -------------- // Tejas Pandey | // 14 - 06 - 20 | // Atcoder BC 170| // -------------- #include <bits/stdc++.h> using namespace std; #define mod 1000000007 #define vi vector<int> typedef long long int ll; int main(void) { // freopen("in.txt","r",stdin); // freopen("out.txt","w",stdout); ios_base::sync_wi...
[ "call.arguments.add" ]
350,277
350,278
u878492982
cpp
p02639
/* *********************************************************************************************************** Created By - TANISHQ GUPTA (tanishq_code_c) *********************************************************************************************...
/* *********************************************************************************************************** Created By - TANISHQ GUPTA (tanishq_code_c) *********************************************************************************************...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,279
350,280
u097320244
cpp
p02639
//#pragma GCC optimize("O3") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define trav(x, a) for (const auto &x : a) #define sz(x) (int)(x).size() #define all(x) (x).begin(), x.end() #define mem(a, v) memset((a), (v), sizeof(a)) #define enl printf("\n") #define ...
//#pragma GCC optimize("O3") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define trav(x, a) for (const auto &x : a) #define sz(x) (int)(x).size() #define all(x) (x).begin(), x.end() #define mem(a, v) memset((a), (v), sizeof(a)) #define enl printf("\n") #define ...
[ "expression.operation.binary.add" ]
350,281
350,282
u270920804
cpp
p02639
// Author : Hardik Upadhyay // college: SVNIT // slogan : Ab to phod dunga #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> #define F first #define S second #define pb push_back #define mp make_pair #define rep(i, a, b) for (int i = a; i <= b; i++) #define rrep(i, a, b) for (int i = a; i >= b; i--) #...
// Author : Hardik Upadhyay // college: SVNIT // slogan : Ab to phod dunga #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> #define F first #define S second #define pb push_back #define mp make_pair #define rep(i, a, b) for (int i = a; i <= b; i++) #define rrep(i, a, b) for (int i = a; i >= b; i--) #...
[ "expression.operation.binary.remove", "assignment.change" ]
350,285
350,286
u933442616
cpp
p02639
#include <bits/stdc++.h> using namespace std; signed main() { int n; for (int i = 1; i <= n; ++i) { scanf("%d", &n); if (n) continue; else { printf("%d\n", i); return 0; } } }
#include <bits/stdc++.h> using namespace std; signed main() { int n; for (int i = 1; i <= 5; ++i) { scanf("%d", &n); if (n) continue; else { printf("%d\n", i); return 0; } } }
[ "identifier.replace.remove", "literal.replace.add", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
350,295
350,296
u855677173
cpp
p02639
#pragma GCC optimize("Ofast") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #define all(x) std::begin(x), std::end(x) #define isz(x) (int)std::size(x) const auto ready = []() { std::ios_base::sync_with_stdio(0); std::cin.tie(0); std::cout << std::fixed << std::setprecision(12); return 1; }(); //...
#pragma GCC optimize("Ofast") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #define all(x) std::begin(x), std::end(x) #define isz(x) (int)std::size(x) const auto ready = []() { std::ios_base::sync_with_stdio(0); std::cin.tie(0); std::cout << std::fixed << std::setprecision(12); return 1; }(); //...
[ "expression.operation.binary.add" ]
350,299
350,300
u935796174
cpp
p02639
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 1; i <= 5; i++) { cin >> x; if (x == 0) { cout << 0 << endl; return 0; } } }
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 1; i <= 5; i++) { cin >> x; if (x == 0) { cout << i << endl; return 0; } } }
[ "identifier.replace.add", "literal.replace.remove", "io.output.change" ]
350,307
350,308
u376603629
cpp
p02639
#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 t; rep(i, 1, 5) { cin >> t; if (t == 0) {...
#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 t; rep(i, 1, 6) { cin >> t; if (t == 0) {...
[ "literal.number.change", "call.arguments.change" ]
350,311
350,312
u229030993
cpp
p02639
#include <bits/stdc++.h> using namespace std; int main(void) { int a[5], i; cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4]; for (int i = 0; i < 5; i++) { if (a[i] == 0) { cout << i; break; } } }
#include <bits/stdc++.h> using namespace std; int main(void) { int a[5], i; cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4]; for (int i = 0; i < 5; i++) { if (a[i] == 0) { cout << i + 1; break; } } }
[ "expression.operation.binary.add" ]
350,315
350,316
u395478557
cpp
p02639
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; typedef pair<int, int> PI; typedef pair<ll, ll> PL; using graph = vector<vector<int>>; const double pi = 3.14159265358979323846; const ll mod = 1000000007; int main() { cin.tie(0); ios::sync_with_stdi...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; typedef pair<int, int> PI; typedef pair<ll, ll> PL; using graph = vector<vector<int>>; const double pi = 3.14159265358979323846; const ll mod = 1000000007; int main() { cin.tie(0); ios::sync_with_stdi...
[ "expression.operation.binary.add" ]
350,317
350,318
u515131769
cpp
p02639
// A #include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { for (int i = 1; i <= 5; i++) { int x; cin >> x; if (!x) cout << x; } return 0; }
// A #include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { for (int i = 1; i <= 5; i++) { int x; cin >> x; if (!x) cout << i; } return 0; }
[ "identifier.change", "io.output.change" ]
350,319
350,320
u934766861
cpp
p02640
#include <iostream> typedef long long ll; using namespace std; int main() { ll x, y; cin >> x >> y; if (x * 2 <= y && x * 4 >= y && y % 2 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
#include <iostream> typedef long long ll; using namespace std; int main() { ll x, y; cin >> x >> y; if (x * 2 <= y && x * 4 >= y && y % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
350,328
350,329
u564905682
cpp
p02640
#include <iostream> using namespace std; int main() { // your code goes here int a, b, num, i; cin >> a >> b; for (i = 0; i <= a; i++) { num = a - i; if (i * 2 + num * 4 == b) { cout << "YES" << endl; return 0; break; } } cout << "NO" << endl; return 0; }
#include <iostream> using namespace std; int main() { // your code goes here int a, b, num; cin >> a >> b; for (int i = 0; i <= a; i++) { num = a - i; if (i * 2 + num * 4 == b) { cout << "Yes" << endl; return 0; break; } } cout << "No" << endl; return 0; }
[ "variable_declaration.remove", "literal.string.change", "literal.string.case.change", "io.output.change" ]
350,333
350,334
u570331394
cpp
p02640
#include <iostream> using namespace std; int main() { // your code goes here int a, b, num; cin >> a >> b; for (int i = 0; i <= a; i++) { num = a - i; if (i * 2 + num * 4 == b) { cout << "YES" << endl; return 0; break; } } cout << "NO" << endl; return 0; }
#include <iostream> using namespace std; int main() { // your code goes here int a, b, num; cin >> a >> b; for (int i = 0; i <= a; i++) { num = a - i; if (i * 2 + num * 4 == b) { cout << "Yes" << endl; return 0; break; } } cout << "No" << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
350,335
350,334
u570331394
cpp
p02640
#include <iostream> using namespace std; int main() { int x, y, a, b; cin >> x >> y; for (a = 0; a < x; a++) { b = x - a; if (a * 2 + b * 4 == y) { cout << "Yes" << endl; return 0; break; } } cout << "No" << endl; }
#include <iostream> using namespace std; int main() { int x, y, a, b; cin >> x >> y; for (a = 0; a <= x; a++) { b = x - a; if (a * 2 + b * 4 == y) { cout << "Yes" << endl; return 0; break; } } cout << "No" << endl; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,336
350,337
u299863190
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 && 2 * x <= y && 4 & x >= y) { cout << "Yes" << endl; return 0; } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 == 0 && 2 * x <= y && 4 * x >= y) { cout << "Yes" << endl; return 0; } cout << "No" << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
350,342
350,343
u008778526
cpp
p02640
#pragma GCC target("avx2") #pragma GCC optimize "trapv" #pragma GCC optimization("O3") #pragma GCC optimization("unroll-loops") #include <bits/stdc++.h> #define input(a, n) \ for (ll i1 = 0; i1 < n; i1++) \ cin...
#pragma GCC target("avx2") #pragma GCC optimize "trapv" #pragma GCC optimization("O3") #pragma GCC optimization("unroll-loops") #include <bits/stdc++.h> #define input(a, n) \ for (ll i1 = 0; i1 < n; i1++) \ cin...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
350,351
350,352
u299835664
cpp
p02640
#pragma comment(linker, "/stack:20000000") #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx") #include <bits/stdc++.h> #define se second #define fi first #define mp make_pair #define pb push_back using namespace std; typedef long long ll; int x, y; int main() { ios_base:...
#pragma comment(linker, "/stack:20000000") #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx") #include <bits/stdc++.h> #define se second #define fi first #define mp make_pair #define pb push_back using namespace std; typedef long long ll; int x, y; int main() { ios_base:...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
350,358
350,359
u863370423
cpp
p02640
#include <iostream> 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; } else if (2 * i + 4 * (x - i) < y) { 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 (2 * i + 4 * (x - i) == y) { cout << "Yes" << endl; return 0; } else if (2 * i + 4 * (x - i) < y) break; } cout << "No" << endl; return 0; }
[]
350,362
350,363
u961358555
cpp
p02640
#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++) { int A = i + 1, B = j + 1; if (A + B == X && A * 2 + B * 4 == Y) { cout << "Yes" << endl; return 0; } } } cout << "No" <...
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 0; i < 101; i++) { for (int j = 0; j < 101; j++) { int A = i, B = j; if (A + B == X && A * 2 + B * 4 == Y) { cout << "Yes" << endl; return 0; } } } cout << "No" << endl; ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.remove" ]
350,370
350,371
u280966279
cpp
p02640
#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++) { int A = i + 1, B = j + 1; if (A + B == X && A * 2 + B * 4 == Y) { cout << "Yes" << endl; return 0; } } } cout << "No" <...
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 0; i < 101; i++) { for (int j = 0; j < 101; j++) { int A = i, B = j; if (A + B == X && A * 2 + B * 4 == Y) { cout << "Yes" << endl; return 0; } } } cout << "No" << endl; ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.remove" ]
350,370
350,372
u280966279
cpp
p02640
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int x = 1; x <= X; x++) { if ((2 * x + 4 * (X - x)) == Y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int x = 0; x <= X; x++) { if ((2 * x + 4 * (X - x)) == 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" ]
350,373
350,374
u658283466
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; scanf("%d %d", &X, &Y); if (Y % 2 == 0 && Y / 2 - X >= 0 && 2 * X - Y / 4 >= 0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; scanf("%d %d", &X, &Y); if (Y % 2 == 0 && Y / 2 - X >= 0 && 2 * X - Y / 2 >= 0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
350,379
350,380
u188228787
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int a, b, flag = 0; b = x - a; for (int a = 0; a < x; a++) { if ((2 * a) + (4 * (x - a)) == y) flag = 1; } if (flag == 1) { cout << "Yes" << "\n"; } else { cout << "No" << "\n"; } ...
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int a, b, flag = 0; b = x - a; for (int a = 0; a <= x; a++) { if ((2 * a) + (4 * (x - a)) == y) flag = 1; } if (flag == 1) { cout << "Yes" << "\n"; } else { cout << "No" << "\n"; }...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,383
350,384
u849432892
cpp
p02640
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; bool ans = false; for (int i = 0; i < X; i++) { if (4 * X - 2 * i == Y) { ans = true; break; } } if (ans) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; bool ans = false; for (int i = 0; i <= X; i++) { if (4 * X - 2 * i == Y) { ans = true; break; } } if (ans) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,385
350,386
u084662841
cpp
p02640
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; bool ans = false; for (int i = 0; i < X; i++) { if (4 * X - 2i == Y) { ans = true; break; } } if (ans) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; bool ans = false; for (int i = 0; i <= X; i++) { if (4 * X - 2 * i == Y) { ans = true; break; } } if (ans) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
350,387
350,386
u084662841
cpp
p02640
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; bool ans = false; for (int i = 0; i < X; i++) { if (4 * X - 2i == 0) { ans = true; break; } } if (ans) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; bool ans = false; for (int i = 0; i <= X; i++) { if (4 * X - 2 * i == Y) { ans = true; break; } } if (ans) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "control_flow.branch.if.condition.change", "identifier.replace.add", "literal.replace.remove" ]
350,388
350,386
u084662841
cpp
p02640
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<long long>; using vvi = vector<vector<int>>; using pii = pair<int, int>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define pb push_back int main() { int x, y; cin >> x >> y; rep(i, x + 1) re...
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<long long>; using vvi = vector<vector<int>>; using pii = pair<int, int>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define pb push_back int main() { int x, y; cin >> x >> y; rep(i, x + 1) re...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
350,389
350,390
u590995678
cpp
p02640
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<long long>; using vvi = vector<vector<int>>; using pii = pair<int, int>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define pb push_back int main() { int x, y; cin >> x >> y; rep(i, x + 1) re...
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<long long>; using vvi = vector<vector<int>>; using pii = pair<int, int>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define pb push_back int main() { int x, y; cin >> x >> y; rep(i, x + 1) re...
[ "control_flow.branch.if.condition.change" ]
350,391
350,390
u590995678
cpp
p02640
#include <bits/stdc++.h> #define repr(i, a, b) for (int i = a; i < b; i++) #define rep(i, n) for (int i = 0; i < n; i++) #define reprrev(i, a, b) for (int i = b - 1; i >= a; i--) // [a, b) #define reprev(i, n) reprrev(i, 0, n) #define _GLIBCXX_DEBUG using ll = long long; using ull = unsigned long long; template <class...
#include <bits/stdc++.h> #define repr(i, a, b) for (int i = a; i < b; i++) #define rep(i, n) for (int i = 0; i < n; i++) #define reprrev(i, a, b) for (int i = b - 1; i >= a; i--) // [a, b) #define reprev(i, n) reprrev(i, 0, n) #define _GLIBCXX_DEBUG using ll = long long; using ull = unsigned long long; template <class...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
350,399
350,400
u979078704
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll mod = 1e9 + 7; int main() { int x, y; cin >> x >> y; if (4 * x < y || (y & 1) == 1) cout << "No"; else cout << "Yes"; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll mod = 1e9 + 7; int main() { int x, y; cin >> x >> y; if (4 * x < y || (y & 1) == 1 || y < 2 * x) cout << "No"; else cout << "Yes"; return 0; }
[ "control_flow.branch.if.condition.change" ]
350,401
350,402
u116954704
cpp
p02640
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { bool t = false; int x, y; cin >> x >> y; rep(i, x + 1) { if (y == i * 2 + y * (x - i)) t = true; } if (t) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { bool t = false; int x, y; cin >> x >> y; rep(i, x + 1) { if (y == i * 2 + 4 * (x - i)) t = true; } if (t) cout << "Yes" << endl; else cout << "No" << endl; }
[ "identifier.replace.remove", "literal.replace.add", "control_flow.branch.if.condition.change" ]
350,403
350,404
u460597319
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int a = 0; a <= X; a++) { int b = X - a; if (Y = (2 * a) + (4 * b)) { cout << "Yes"; return 0; } } cout << "No"; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int a = 0; a <= X; a++) { int b = X - a; if (Y == (2 * a) + (4 * b)) { cout << "Yes"; return 0; } } cout << "No"; }
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
350,405
350,406
u174584859
cpp
p02640
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { if ((2 * i + 4 * (x - i)) == y) { cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }
#include <algorithm> #include <iostream> #include <string> #include <vector> 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.string.change", "literal.string.case.change", "io.output.change" ]
350,411
350,412
u682413606
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long int #define li int64_t int main() { int x, y; cin >> x >> y; if ((y - 2 * x) % 2 == 0 && (4 * x - y % 2) == 0 && y - 2 * x >= 0 && 4 * x - y >= 0) cout << "Yes"; else { cout << "No"; } }
#include <bits/stdc++.h> using namespace std; #define ll long long int #define li int64_t int main() { int x, y; cin >> x >> y; if ((y - 2 * x) % 2 == 0 && (4 * x - y) % 2 == 0 && y - 2 * x >= 0 && 4 * x - y >= 0) cout << "Yes"; else { cout << "No"; } }
[ "control_flow.branch.if.condition.change" ]
350,441
350,442
u630939231
cpp
p02640
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); ++i) #define REPS(i, a, b) for (int i = (a); i < (b); ++i) using namespace std; using ll = long long; int main() { int x, y; cin >> x >> y; int z = 2 * x; REP(i, x) { if (z == y) { cout << "Yes" << endl; return 0; } z...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); ++i) #define REPS(i, a, b) for (int i = (a); i < (b); ++i) using namespace std; using ll = long long; int main() { int x, y; cin >> x >> y; int z = 2 * x; REP(i, x + 1) { if (z == y) { cout << "Yes" << endl; return 0; } ...
[ "expression.operation.binary.add" ]
350,451
350,452
u514896542
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; string ans = "No"; for (int i = 1; i < X + 1; i++) { int j = X - i; if (2 * i + 4 * j == Y) { ans = "Yes"; break; } } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; string ans = "No"; for (int i = 0; i < X + 1; i++) { int j = X - i; if (2 * i + 4 * j == Y) { ans = "Yes"; break; } } cout << ans << endl; return 0; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
350,459
350,460
u863957421
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); i++) #define INF 1001001001 #define LLINF 1001001001001001001 #define MOD 1000000007 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,...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); i++) #define INF 1001001001 #define LLINF 1001001001001001001 #define MOD 1000000007 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,...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
350,463
350,464
u608329742
cpp
p02640
#include <bits/stdc++.h> #define con continue #define pb push_back #define fi first #define se second #define fr front() #define one 1.0 #define inf 1000000000000000000 #define ret return #define all(vl) vl.begin(), vl.end() #define sor sort #define cl clear #define m_p make_pair using namespace std; typedef long long ...
#include <bits/stdc++.h> #define con continue #define pb push_back #define fi first #define se second #define fr front() #define one 1.0 #define inf 1000000000000000000 #define ret return #define all(vl) vl.begin(), vl.end() #define sor sort #define cl clear #define m_p make_pair using namespace std; typedef long long ...
[ "literal.number.change", "expression.operation.binary.change" ]
350,470
350,471
u918039777
cpp
p02640
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; typedef long long ll; typedef pair<int, int> pii; const int mod = 1000000007; int main() { ios::sync_with_stdio(false); int x, y; cin >> x >> y; if (y % 2 || x * 2 < y || x * 4 > y) cout << "N...
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; typedef long long ll; typedef pair<int, int> pii; const int mod = 1000000007; int main() { ios::sync_with_stdio(false); int x, y; cin >> x >> y; if (y % 2 || x * 2 > y || x * 4 < y) cout << "N...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
350,472
350,473
u151855078
cpp
p02640
#include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <vector> using namespace std; typedef long long ll; type...
#include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <vector> using namespace std; typedef long long ll; type...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
350,487
350,488
u466157315
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define rep(i, k, n) for (int i = k; i < n; i++) #define repp(i, k, n) for (int i = k; i <= n; i++) #define per(i, k, n) for (int i = k; i >= n; i--) #define int long long #define all(a) a.begin(), a.end() #define pb push_back typedef long long ll; typedef pair<int, int> ...
#include <bits/stdc++.h> using namespace std; #define rep(i, k, n) for (int i = k; i < n; i++) #define repp(i, k, n) for (int i = k; i <= n; i++) #define per(i, k, n) for (int i = k; i >= n; i--) #define int long long #define all(a) a.begin(), a.end() #define pb push_back typedef long long ll; typedef pair<int, int> ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
350,500
350,501
u548341309
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; int ans = 0; for (int i = 0; i < X; i++) { if (Y == i * 2 + (X - i) * 4) ans++; } if (ans > 0) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; int ans = 0; for (int i = 0; i <= X; i++) { if (Y == i * 2 + (X - i) * 4) ans++; } if (ans > 0) cout << "Yes" << endl; else cout << "No" << endl; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,518
350,519
u650243369
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define all(x) x.begin(), x.end() typedef vector<ll> vll; typedef vector<int> vi; const ll N = 2e6 + 10; const int M = 1e9 + 7; const double eps = 1e-9; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x;...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define all(x) x.begin(), x.end() typedef vector<ll> vll; typedef vector<int> vi; const ll N = 2e6 + 10; const int M = 1e9 + 7; const double eps = 1e-9; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x;...
[ "literal.string.change", "literal.string.case.change", "function.return_value.change", "expression.operation.binary.change", "io.output.change" ]
350,542
350,543
u694882399
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X; int Y; cin >> X >> Y; int i, j; if (Y % 2 == 1 || 4 * X > Y) { cout << "No" << endl; return 0; } for (i = X; i >= 0; i--) { if (2 * i > Y) { continue; } else { if ((Y - 2 * i) % 4 == 0 && (Y - 2 * i) / 4 + i =...
#include <bits/stdc++.h> using namespace std; int main() { int X; int Y; cin >> X >> Y; int i, j; if (Y % 2 == 1 || 2 * X > Y) { cout << "No" << endl; return 0; } for (i = X; i >= 0; i--) { if (2 * i > Y) { continue; } else { if ((Y - 2 * i) % 4 == 0 && (Y - 2 * i) / 4 + i =...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
350,554
350,555
u529114225
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; for (int i = 0; i <= X; i++) { if (i * 4 + (X - i) * 2 == 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 (i * 4 + (X - i) * 2 == Y) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
350,556
350,557
u792069587
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; int a; // a=turu , b = kame for (a = 0; a < X; a++) { if (Y == 2 * a + 4 * (X - a)) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; int a; // a=turu , b = kame for (a = 0; a <= X; a++) { if (Y == 2 * a + 4 * (X - a)) { 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" ]
350,562
350,563
u714624983
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 && y < x * 2) cout << "No"; else { int temp = (y - x * 2) / 2; if (temp > x) cout << "No"; else cout << "Yes"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (y % 2 || y < x * 2) cout << "No"; else { int temp = (y - x * 2) / 2; if (temp > x) cout << "No"; else cout << "Yes"; } return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
350,592
350,593
u368431457
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; cout << ((x * 2 <= y && y <= x * 4 && y & 1 == 0) ? "Yes" : "No") << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; cout << ((x * 2 <= y && y <= x * 4 && y % 2 == 0) ? "Yes" : "No") << "\n"; }
[]
350,596
350,597
u045289115
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 <= (y >> 1); ++i) { if (2 * i + 4 * (x - i) == y) { cout << "YES"; return 0; } } cout << "NO"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int x, y; cin >> x >> y; for (int i = 0; i <= (y >> 1); ++i) { if (2 * i + 4 * (x - i) == y) { cout << "Yes"; return 0; } } cout << "No"; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
350,606
350,607
u066540225
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define ll long long #define fill fill_n #define pf push_front #define pb push_back #define FOR(i, l, r) for (int i = l; i < r; i++) #define ROF(i, r, l) for (int i = r; i >= l; i--) #define comp(v) (v).begin(), (v).end() #define ff first #define ss second #define infile ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define fill fill_n #define pf push_front #define pb push_back #define FOR(i, l, r) for (int i = l; i < r; i++) #define ROF(i, r, l) for (int i = r; i >= l; i--) #define comp(v) (v).begin(), (v).end() #define ff first #define ss second #define infile ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
350,618
350,619
u585787446
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define INF 1e9 #define rep(i, n) for (int i = 0; i < (n); ++i) #define ALL(x) (x).begin(), (x).end() typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef pair<int, int> pii; template <typename T1, typename T2> inline void chmin(T1 &a, T2 b) { if (...
#include <bits/stdc++.h> using namespace std; #define INF 1e9 #define rep(i, n) for (int i = 0; i < (n); ++i) #define ALL(x) (x).begin(), (x).end() typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef pair<int, int> pii; template <typename T1, typename T2> inline void chmin(T1 &a, T2 b) { if (...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
350,620
350,621
u280175105
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) #define per(i, a, n) for (int i = n - 1; i >= a; i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() #define fi first #define se second #define SZ(x) ((int)(x).size()) typedef vector<int> VI; ...
#include <bits/stdc++.h> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) #define per(i, a, n) for (int i = n - 1; i >= a; i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() #define fi first #define se second #define SZ(x) ((int)(x).size()) typedef vector<int> VI; ...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
350,622
350,623
u530868041
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 p = i * 2; int q = (x - i) * 4; if (p + q == y) { cout << "Yes"; break; } } cout << "No"; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { int p = i * 2; int q = (x - i) * 4; if (p + q == y) { cout << "Yes"; return 0; } } cout << "No"; }
[ "control_flow.break.remove", "control_flow.return.add", "function.return_value.change" ]
350,624
350,625
u307260937
cpp
p02640
#include <bits/stdc++.h> #include <iostream> using namespace std; #define ll long long const int mod = 1e9 + 7; const ll INF = 1e14; void solve() { int x, y; cin >> x >> y; if (((4 * x - y >= 0 ? 4 * x - y : 1) % 2 == 0) && ((y - 2 * x >= 0 ? y - 2 * x : 1) % 2 == 0)) cout << "YES"; else cou...
#include <bits/stdc++.h> #include <iostream> using namespace std; #define ll long long const int mod = 1e9 + 7; const ll INF = 1e14; void solve() { int x, y; cin >> x >> y; if (((4 * x - y >= 0 ? 4 * x - y : 1) % 2 == 0) && ((y - 2 * x >= 0 ? y - 2 * x : 1) % 2 == 0)) cout << "Yes"; else cou...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
350,628
350,629
u477026604
cpp
p02640
#include <bits/stdc++.h> #define ALL(obj) begin(obj), end(obj) #define debug(x) cerr << #x << ": " << x << '\n' using namespace std; template <class T> vector<T> make_vec(size_t a) { return vector<T>(a); } template <class T, class... Ts> auto make_vec(size_t a, Ts... ts) { return vector<decltype(make_vec<T>(ts...))>(...
#include <bits/stdc++.h> #define ALL(obj) begin(obj), end(obj) #define debug(x) cerr << #x << ": " << x << '\n' using namespace std; template <class T> vector<T> make_vec(size_t a) { return vector<T>(a); } template <class T, class... Ts> auto make_vec(size_t a, Ts... ts) { return vector<decltype(make_vec<T>(ts...))>(...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
350,630
350,631
u571173211
cpp
p02640
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <list> #include <map> #include <vector> using namespace std; int main(void) { int X, Y; cin >> X >> Y; for (int i = 0; i < Y; ++i) { if (2 * i + 4 * (X - i) == Y) { cout << "Yes"; return 0; } } cout <<...
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <list> #include <map> #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"; return 0; } } cout <...
[ "control_flow.loop.for.condition.change" ]
350,634
350,635
u591008980
cpp
p02640
#include <algorithm> #include <cmath> #include <ctype.h> #include <iostream> #include <map> #include <stdlib.h> #include <string> #include <vector> using namespace std; int main() { int X, Y; cin >> X >> Y; int tmp = 0; for (int i = 1; i <= X; i++) { int tmp = 2 * i + 4 * (X - i); if (tmp == Y) { ...
#include <algorithm> #include <cmath> #include <ctype.h> #include <iostream> #include <map> #include <stdlib.h> #include <string> #include <vector> using namespace std; int main() { int X, Y; cin >> X >> Y; int tmp = 0; for (int i = 0; i <= X; i++) { int tmp = 2 * i + 4 * (X - i); if (tmp == Y) { ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
350,636
350,637
u123724799
cpp
p02640
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> using namespace std; #define int long long signed main() { int x, y; cin >> x >> y; for (int i = 0; i <= 100; i++) { for (int j = 0; j <= 100; j++) { if (i +...
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> using namespace std; #define int long long signed main() { int x, y; cin >> x >> y; for (int i = 0; i <= 100; i++) { for (int j = 0; j <= 100; j++) { if (i +...
[ "literal.string.change", "io.output.change" ]
350,641
350,642
u032189172
cpp
p02640
#include <iostream> int main() { int A, B; scanf("%d%d", &A, &B); if ((A * 2 <= B) && (B <= A * 4) && (B % 2 == 1)) printf("Yes"); else printf("No"); }
#include <iostream> int main() { int A, B; scanf("%d%d", &A, &B); if ((A * 2 <= B) && (B <= A * 4) && (B % 2 == 0)) printf("Yes"); else printf("No"); }
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
350,643
350,644
u604266742
cpp
p02640
#include <iostream> int main() { int A, B; scanf("%d%d", &A, &B); if ((A * 2 < B) && (B < A * 4) && (B % 2 == 1)) printf("Yes"); else printf("No"); }
#include <iostream> int main() { int A, B; scanf("%d%d", &A, &B); if ((A * 2 <= B) && (B <= A * 4) && (B % 2 == 0)) printf("Yes"); else printf("No"); }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.number.change" ]
350,645
350,644
u604266742
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define itos(x) to_string(x) #define stoi(x) stoi(x) #define ctoi(x) (x - '0') #define pb(x) push_back(x) #define pf(x) push_front(x) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define sz(x) (int)(x).size() #define ll long long #define...
#include <bits/stdc++.h> using namespace std; #define itos(x) to_string(x) #define stoi(x) stoi(x) #define ctoi(x) (x - '0') #define pb(x) push_back(x) #define pf(x) push_front(x) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define sz(x) (int)(x).size() #define ll long long #define...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,669
350,670
u013905105
cpp
p02640
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, n) for (int i = 1; i <= (int)(n); i++) int main() { int X, Y; cin >> X >> Y; int crane = 2; int turtle = 4; for (int i = 1; i <= X; i++) { if (i * crane + (X - i) * turtle == Y) { cou...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, n) for (int i = 1; i <= (int)(n); i++) int main() { int X, Y; cin >> X >> Y; int crane = 2; int turtle = 4; for (int i = 0; i <= X; i++) { if (i * crane + (X - i) * turtle == Y) { cou...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
350,674
350,675
u127228093
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; (4 * x >= y && y % 2 == 0 && x < y) ? cout << "Yes" : cout << "No"; }
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; (4 * x >= y && y % 2 == 0 && x <= y / 2) ? cout << "Yes" : cout << "No"; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
350,678
350,679
u111165737
cpp
p02640
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; int main() { int x, y; cin >> x >> y; for (int tsuru = 0; tsuru <= x; tsuru++) { int kame = x - tsuru; if (kame * 4 + tsuru * 2 == y) { cout << "yes" << endl; return 0; } } cout << "No" << en...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; int main() { int x, y; cin >> x >> y; for (int tsuru = 0; tsuru <= x; tsuru++) { int kame = x - tsuru; if (kame * 4 + tsuru * 2 == y) { cout << "Yes" << endl; return 0; } } cout << "No" << en...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
350,682
350,683
u320267096
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 != 0) { cout << "No" << endl; } else { if ((Y + 0.5) / 4 <= X && X <= Y / 2) { cout << "Yes" << endl; } else { cout << "No" << endl; } } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 != 0) { cout << "No" << endl; } else { if ((Y + 2) / 4 <= X && X <= Y / 2) { cout << "Yes" << endl; } else { cout << "No" << endl; } } }
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
350,684
350,685
u114143339
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 != 0) { cout << "No" << endl; } else { if (Y / 4 <= X && X <= Y / 2) { cout << "Yes" << endl; } else { cout << "No" << endl; } } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 != 0) { cout << "No" << endl; } else { if ((Y + 2) / 4 <= X && X <= Y / 2) { cout << "Yes" << endl; } else { cout << "No" << endl; } } }
[ "control_flow.branch.if.condition.change" ]
350,686
350,685
u114143339
cpp
p02640
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 != 0) { cout << "No" << endl; } else { if (Y / 4 <= X <= Y / 2) { cout << "Yes" << endl; } else { cout << "No" << endl; } } }
#include <bits/stdc++.h> using namespace std; int main() { int X, Y; cin >> X >> Y; if (Y % 2 != 0) { cout << "No" << endl; } else { if ((Y + 2) / 4 <= X && X <= Y / 2) { cout << "Yes" << endl; } else { cout << "No" << endl; } } }
[ "control_flow.branch.if.condition.change" ]
350,687
350,685
u114143339
cpp