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
p03813
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) int main() { int x; cout << (x < 1200 ? "ABC" : "ARC") << "\n"; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) int main() { int x; cin >> x; cout << (x < 1200 ? "ABC" : "ARC") << "\n"; return 0; }
[]
1,442,407
1,442,408
u517348254
cpp
p03813
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x >= 1200) cout << "ABC"; else cout << "ARC"; return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x >= 1200) cout << "ARC"; else cout << "ABC"; return 0; }
[ "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
1,442,409
1,442,410
u590067912
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } return 0; }
[]
1,442,418
1,442,419
u961443099
cpp
p03813
#include <iostream> using namespace std; int main() { int rate; if (rate < 1200) cout << "ABC"; else cout << "ARC"; return 0; }
#include <iostream> using namespace std; int main() { int rate; cin >> rate; if (rate < 1200) cout << "ABC"; else cout << "ARC"; return 0; }
[]
1,442,422
1,442,423
u453683890
cpp
p03813
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; #define rep(i, N) for (ll(i) = 0; (i) < (N); (i)++) const int mod = 1000000007; int main() { int x; if (x < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; #define rep(i, N) for (ll(i) = 0; (i) < (N); (i)++) const int mod = 1000000007; int main() { int x; cin >> x; if (x < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; }
[]
1,442,428
1,442,429
u239409893
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int x; cout << x; if (x < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; }
[]
1,442,432
1,442,433
u820224016
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a > 1000) cout << "ARC"; else cout << "ABC"; cout << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a >= 1200) cout << "ARC"; else cout << "ABC"; cout << endl; return 0; }
[]
1,442,440
1,442,441
u247366051
cpp
p03813
#include <iostream> using namespace std; int main() { int a; cin >> a; if (a >= 1200) cout << "ABC"; else cout << "ARC"; cout << endl; }
#include <iostream> using namespace std; int main() { int a; cin >> a; if (a >= 1200) cout << "ARC"; else cout << "ABC"; cout << endl; }
[ "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
1,442,442
1,442,443
u860794112
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; printf("%d\n", x >= 1200 ? "ARC" : "ABC"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; printf(x >= 1200 ? "ARC" : "ABC"); return 0; }
[ "call.arguments.change" ]
1,442,448
1,442,449
u115867677
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { //入力 int x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { //入力 int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
[]
1,442,456
1,442,457
u115927976
cpp
p03813
#include <bits/stdc++.h> #include <math.h> #include <stdlib.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) inline constexpr ll gcd(ll a, ll b) { if (!a || !b) return 0; while (b) { ll c = b; b = a % b; a = c; } return a; } inline constexpr ll l...
#include <bits/stdc++.h> #include <math.h> #include <stdlib.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) inline constexpr ll gcd(ll a, ll b) { if (!a || !b) return 0; while (b) { ll c = b; b = a % b; a = c; } return a; } inline constexpr ll l...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,442,464
1,442,463
u540741303
cpp
p03813
#include <iostream> #include <string> int main() { int a; std::cin >> a; if (a < 1600) { std::cout << "ABC"; } else if (a <= 3000) { std::cout << "ARC"; } }
#include <iostream> #include <string> int main() { int a; std::cin >> a; if (a < 1200) { std::cout << "ABC"; } else if (a <= 3000) { std::cout << "ARC"; } }
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,442,467
1,442,468
u204785680
cpp
p03813
#include <iostream> #include <string> int main() { int a; std::cin >> a; if (1 < a && a < 1600) { std::cout << "ABC"; } else if (a <= 3000) { std::cout << "ARC"; } }
#include <iostream> #include <string> int main() { int a; std::cin >> a; if (a < 1200) { std::cout << "ABC"; } else if (a <= 3000) { std::cout << "ARC"; } }
[ "expression.operation.binary.remove", "literal.number.change", "control_flow.branch.if.condition.change" ]
1,442,469
1,442,468
u204785680
cpp
p03813
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x >= 1200) { cout << "ASC" << endl; } else { cout << "ABC" << endl; } }
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x >= 1200) { cout << "ARC" << endl; } else { cout << "ABC" << endl; } }
[ "literal.string.change", "io.output.change" ]
1,442,475
1,442,476
u012131682
cpp
p03813
#include <bits/stdc++.h> #include <cstdio> #include <iostream> #include <list> //list<???> a; a.push_back ,insert(追加したい要素),a.sort(),参照できない #include <set> #include <string> #include <vector> //vector<???> a; a.push_back,sort(a.begin(),a.end());a[i] //配列 int a[N];a[i]=追加したい要素;sort(a,a+N);a[i] const int MOD = 1e9 + 7; usi...
#include <bits/stdc++.h> #include <cstdio> #include <iostream> #include <list> //list<???> a; a.push_back ,insert(追加したい要素),a.sort(),参照できない #include <set> #include <string> #include <vector> //vector<???> a; a.push_back,sort(a.begin(),a.end());a[i] //配列 int a[N];a[i]=追加したい要素;sort(a,a+N);a[i] const int MOD = 1e9 + 7; usi...
[ "literal.string.change", "io.output.change" ]
1,442,499
1,442,500
u235376569
cpp
p03812
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <ctime> #include <iostream> #include <map> #include <queue> #include <string> using namespace std; template <typename T> inline T read() { T x = 0, f = 1; char c = getchar(); while (!isdigit(c)) { if (c == '-') f = -f...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <ctime> #include <iostream> #include <map> #include <queue> #include <string> using namespace std; template <typename T> inline T read() { T x = 0, f = 1; char c = getchar(); while (!isdigit(c)) { if (c == '-') f = -f...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "function.return_value.change" ]
1,442,501
1,442,502
u832748306
cpp
p03812
#include <bits/stdc++.h> using namespace std; const int N = 6005; int ne[N], tot, fi[N], zz[N], n, a[N], f[N], x, y, Ans[N]; void jb(int x, int y) { ne[++tot] = fi[x]; fi[x] = tot; zz[tot] = y; } int cmp(int x, int y) { return a[x] < a[y]; } int main() { scanf("%d", &n); for (int i = 1; i <= n; i++) scanf...
#include <bits/stdc++.h> using namespace std; const int N = 6005; int ne[N], tot, fi[N], zz[N], n, a[N], f[N], x, y, Ans[N]; void jb(int x, int y) { ne[++tot] = fi[x]; fi[x] = tot; zz[tot] = y; } int cmp(int x, int y) { return a[x] < a[y]; } int main() { scanf("%d", &n); for (int i = 1; i <= n; i++) scanf...
[ "expression.operation.unary.add" ]
1,442,505
1,442,506
u768967683
cpp
p03812
#include <bits/stdc++.h> using namespace std; const int N = 6005; int ne[N], tot, fi[N], zz[N], n, a[N], f[N], x, y, Ans[N]; void jb(int x, int y) { ne[++tot] = fi[x]; fi[x] = tot; zz[tot] = y; } int cmp(int x, int y) { return a[x] < a[y]; } int main() { scanf("%d", &n); for (int i = 1; i <= n; i++) scanf...
#include <bits/stdc++.h> using namespace std; const int N = 6005; int ne[N], tot, fi[N], zz[N], n, a[N], f[N], x, y, Ans[N]; void jb(int x, int y) { ne[++tot] = fi[x]; fi[x] = tot; zz[tot] = y; } int cmp(int x, int y) { return a[x] < a[y]; } int main() { scanf("%d", &n); for (int i = 1; i <= n; i++) scanf...
[]
1,442,507
1,442,506
u768967683
cpp
p03812
#include <bits/stdc++.h> using namespace std; const int N = 3e3 + 7; bool fl[N]; int n, w[N], len[N]; vector<int> v[N]; inline void find(int u, int fa) { fl[u] = 0; for (int i = 0; i < len[u]; i++) { int x = v[u][i]; if (x == fa) return; find(x, u); if (w[u] > w[x] && !fl[x]) fl[u] = 1; ...
#include <bits/stdc++.h> using namespace std; const int N = 3e3 + 7; bool fl[N]; int n, w[N], len[N]; vector<int> v[N]; inline void find(int u, int fa) { fl[u] = 0; for (int i = 0; i < len[u]; i++) { int x = v[u][i]; if (x == fa) continue; find(x, u); if (w[u] > w[x] && !fl[x]) fl[u] = 1...
[ "control_flow.return.remove", "control_flow.continue.add" ]
1,442,511
1,442,512
u464097254
cpp
p03812
#include <bits/stdc++.h> using namespace std; const int N = 1e3 + 7; bool fl[N]; int n, w[N], len[N]; vector<int> v[N]; inline void find(int u, int fa) { fl[u] = 0; for (int i = 0; i < len[u]; i++) { int x = v[u][i]; if (x == fa) return; find(x, u); if (w[u] > w[x] && !fl[x]) fl[u] = 1; ...
#include <bits/stdc++.h> using namespace std; const int N = 3e3 + 7; bool fl[N]; int n, w[N], len[N]; vector<int> v[N]; inline void find(int u, int fa) { fl[u] = 0; for (int i = 0; i < len[u]; i++) { int x = v[u][i]; if (x == fa) continue; find(x, u); if (w[u] > w[x] && !fl[x]) fl[u] = 1...
[ "literal.number.change", "expression.operation.binary.change", "control_flow.return.remove", "control_flow.continue.add" ]
1,442,513
1,442,512
u464097254
cpp
p03812
/******************************* Author:galaxy yr LANG:C++ Created Time:2019/08/13 10:25:27 *******************************/ #include <cstdio> #include <cstring> #include <iostream> using namespace std; const int maxn = 1e4 + 5; int head[maxn], cnt, n, w[maxn]; struct edge { int to, next; } e[maxn << 1]; void add(in...
/******************************* Author:galaxy yr LANG:C++ Created Time:2019/08/13 10:25:27 *******************************/ #include <cstdio> #include <cstring> #include <iostream> using namespace std; const int maxn = 1e4 + 5; int head[maxn], cnt, n, w[maxn]; struct edge { int to, next; } e[maxn << 1]; void add(in...
[ "assignment.variable.change", "identifier.change", "variable_access.subscript.index.change" ]
1,442,518
1,442,519
u752285032
cpp
p03812
#include <algorithm> #include <cstdio> #include <iostream> #define N 3003 using namespace std; struct edge { int to, nxt; } e[N << 1]; int n, cnt; int a[N], fir[N]; bool book[N]; void dfs(int, int); void add(int, int); int main() { scanf("%d", &n); for (int i = 1; i <= n; ++i) scanf("%d", a + i); for (...
#include <algorithm> #include <cstdio> #include <iostream> #define N 3003 using namespace std; struct edge { int to, nxt; } e[N << 1]; int n, cnt; int a[N], fir[N]; bool vis[N]; void dfs(int, int); void add(int, int); int main() { scanf("%d", &n); for (int i = 1; i <= n; ++i) scanf("%d", a + i); for (i...
[ "identifier.change", "variable_declaration.array_dimensions.change", "control_flow.branch.if.condition.change", "assignment.variable.change", "misc.opposites", "expression.operator.compare.change" ]
1,442,522
1,442,523
u615698034
cpp
p03812
#include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <queue> using namespace std; #define N 3050 int n, a[N], head[N], to[N << 1], nxt[N << 1], cnt; int mn[N], se[N], is[N]; inline void add(int u, int v) { to[++cnt] = v; nxt[cnt] = head[u]; head[u] = cnt; } int dfs(int x) { int ...
#include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <queue> using namespace std; #define N 3050 int n, a[N], head[N], to[N << 1], nxt[N << 1], cnt; int mn[N], se[N], is[N]; inline void add(int u, int v) { to[++cnt] = v; nxt[cnt] = head[u]; head[u] = cnt; } int dfs(int x) { int ...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
1,442,532
1,442,533
u472943364
cpp
p03812
#include <bits/stdc++.h> #define N 3009 using namespace std; int n, tot, a[N], fst[N], pnt[N], nxt[N], q[N]; bool ok[N]; void add(int x, int y) { pnt[++tot] = y; nxt[tot] = fst[x]; fst[x] = tot; } bool cmp(int x, int y) { return a[x] < a[y]; } int main() { scanf("%d", &n); int i, j, x, y; for (i = 1; i <= ...
#include <bits/stdc++.h> #define N 3009 using namespace std; int n, tot, a[N], fst[N], pnt[N], nxt[N], q[N]; bool ok[N]; void add(int x, int y) { pnt[++tot] = y; nxt[tot] = fst[x]; fst[x] = tot; } bool cmp(int x, int y) { return a[x] < a[y]; } int main() { scanf("%d", &n); int i, j, x, y; for (i = 1; i <= ...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
1,442,536
1,442,537
u070528238
cpp
p03812
#include <algorithm> #include <cstdio> #include <vector> #define N 100005 using namespace std; int a[N], sg[N], n, k; vector<int> G[N]; void dfs(int u, int fa) { sg[u] = 0; for (int i = 0; i < G[u].size(); i++) { int v = G[u][i]; if (v == fa || a[v] > a[u]) continue; dfs(v, u); if (!sg[v]) ...
#include <algorithm> #include <cstdio> #include <vector> #define N 100005 using namespace std; int a[N], sg[N], n, k; vector<int> G[N]; void dfs(int u, int fa) { sg[u] = 0; for (int i = 0; i < G[u].size(); i++) { int v = G[u][i]; if (v == fa || a[v] >= a[u]) continue; dfs(v, u); if (!sg[v]) ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,442,547
1,442,548
u463932134
cpp
p03812
#include <bits/stdc++.h> using namespace std; #define sim template <class c #define ris return *this #define dor > debug &operator<< #define eni(x) \ sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( \ c i) { sim ...
#include <bits/stdc++.h> using namespace std; #define sim template <class c #define ris return *this #define dor > debug &operator<< #define eni(x) \ sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( \ c i) { sim >...
[]
1,442,551
1,442,552
u729652692
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int N; if (N < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
[]
1,442,573
1,442,574
u280728543
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int N; if (N <= 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,442,576
1,442,574
u280728543
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a > 1200) cout << "ABC" << endl; else cout << "ARC" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,442,577
1,442,578
u790461875
cpp
p03813
#include <iostream> using namespace std; int main() { int i; cin >> i; if (i > 1200) { cout << "ARS"; } else cout << "ABC"; return 0; }
#include <iostream> using namespace std; int main() { int i; cin >> i; if (i >= 1200) { cout << "ARC"; } else cout << "ABC"; return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "io.output.change" ]
1,442,596
1,442,595
u618893141
cpp
p03813
#include <iostream> using namespace std; int main() { int x; if (x <= 1200) { cout << "ABC"; } else cout << "ARC"; return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC"; } else cout << "ARC"; return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,442,601
1,442,600
u318329027
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "AGC" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
[ "literal.string.change", "io.output.change" ]
1,442,622
1,442,623
u379822620
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int a; if (a >= 1200) { cout << "ARC" << endl; } else { cout << "ABC" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a >= 1200) { cout << "ARC" << endl; } else { cout << "ABC" << endl; } }
[]
1,442,654
1,442,655
u330025192
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; cout << (x > 1200 ? "ABC" : "ARC") << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; cout << (x < 1200 ? "ABC" : "ARC") << endl; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "io.output.change" ]
1,442,674
1,442,675
u902149880
cpp
p03813
#include <algorithm> #include <cmath> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <string.h> #include <string> #include <vector> using namespace std; long long dp[3][100100] = {}; const long l...
#include <algorithm> #include <cmath> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <string.h> #include <string> #include <vector> using namespace std; long long dp[3][100100] = {}; const long l...
[]
1,442,680
1,442,681
u959822889
cpp
p03813
#include <algorithm> #include <iostream> #include <math.h> #include <queue> #include <stack> #include <string> #include <vector> //#include<windows.h> using namespace std; #define Int int64_t #define dump(x) cout << (x) << endl #define fi first #define se second Int mod = 1e9 + 7; Int INF = 1e18; double EPS = 0.0000...
#include <algorithm> #include <iostream> #include <math.h> #include <queue> #include <stack> #include <string> #include <vector> //#include<windows.h> using namespace std; #define Int int64_t #define dump(x) cout << (x) << endl #define fi first #define se second Int mod = 1e9 + 7; Int INF = 1e18; double EPS = 0.0000...
[ "literal.number.change", "control_flow.loop.for.condition.change", "io.output.change", "literal.string.change" ]
1,442,682
1,442,683
u959822889
cpp
p03813
#include "bits/stdc++.h" using namespace std; int main() { int A; string ans; if (A < 1200) ans = "ABC"; else ans = "ARC"; cout << ans << endl; }
#include "bits/stdc++.h" using namespace std; int main() { int A; cin >> A; string ans; if (A < 1200) ans = "ABC"; else ans = "ARC"; cout << ans << endl; }
[]
1,442,713
1,442,714
u637834578
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x <= 1000) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
[]
1,442,715
1,442,716
u941284252
cpp
p03813
#include <algorithm> #include <complex> #include <iostream> #include <string.h> #include <vector> using namespace std; typedef long long int llint; int main() { int x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } return 0; }
#include <algorithm> #include <complex> #include <iostream> #include <string.h> #include <vector> using namespace std; typedef long long int llint; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } return 0; }
[]
1,442,719
1,442,720
u376082984
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n > 1200) cout << "ABC" << endl; else cout << "ARC" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,442,721
1,442,722
u634527561
cpp
p03813
#include <iostream> using namespace std; int main() { int n; cin >> n; if (n - 1199) { cout << "ARC" << endl; } else { cout << "ABC" << endl; } }
#include <iostream> using namespace std; int main() { int n; cin >> n; if (n - 1200 >= 0) { cout << "ARC" << endl; } else { cout << "ABC" << endl; } }
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,442,731
1,442,732
u681557252
cpp
p03813
#define _CRT_SECURE_NO_WARNINGS #include "bits/stdc++.h" #ifdef _DEBUG #define DBG(n) n #else #define DBG(n) #endif #define INF 1e9 #define INFLL 1e18 #define EPS 1e-9 #define MOD 1000000007 #define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i) #define REP1(i, n) for (ll i = 1, i##_len = (n); i <= i##_len; ...
#define _CRT_SECURE_NO_WARNINGS #include "bits/stdc++.h" #ifdef _DEBUG #define DBG(n) n #else #define DBG(n) #endif #define INF 1e9 #define INFLL 1e18 #define EPS 1e-9 #define MOD 1000000007 #define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i) #define REP1(i, n) for (ll i = 1, i##_len = (n); i <= i##_len; ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "io.output.change" ]
1,442,735
1,442,736
u388817534
cpp
p03813
#include <iostream> int main() { int rate; std::cin >> rate; if (rate >= 1200) { std::cout << "ABR" << std::endl; } else { std::cout << "ABC" << std::endl; } return 0; }
#include <iostream> int main() { int rate; std::cin >> rate; if (rate >= 1200) { std::cout << "ARC" << std::endl; } else { std::cout << "ABC" << std::endl; } return 0; }
[ "literal.string.change", "expression.operation.binary.change" ]
1,442,753
1,442,754
u240226076
cpp
p03813
#include <bits/stdc++.h> #include <ctype.h> using namespace std; int main() { int x; if (x < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; }
#include <bits/stdc++.h> #include <ctype.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; }
[]
1,442,755
1,442,756
u123942368
cpp
p03813
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long int main() { int a; if (a < 1200) cout << "ABC"; else cout << "ARC"; return 0; }
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long int main() { int a; cin >> a; if (a < 1200) cout << "ABC"; else cout << "ARC"; return 0; }
[]
1,442,766
1,442,767
u770161743
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } return 0; }
[]
1,442,803
1,442,804
u856232850
cpp
p03813
#include <algorithm> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <functional> #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>...
#include <algorithm> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <functional> #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>...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,442,833
1,442,834
u271063202
cpp
p03813
#include <cstdio> using namespace std; // This makes the code much more cleaner int main() { /* int a, b, c, d; scanf("%d %d %d %d",&a,&b,&c,&d); int area = a*b; int areatwo = c*d; if (area>=areatwo) { printf("%d",...
#include <cstdio> using namespace std; // This makes the code much more cleaner int main() { /* int a, b, c, d; scanf("%d %d %d %d",&a,&b,&c,&d); int area = a*b; int areatwo = c*d; if (area>=areatwo) { printf("%d",...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,442,853
1,442,854
u392089543
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARc" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,442,857
1,442,858
u530329977
cpp
p03813
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARS" << endl; } }
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
[ "literal.string.change", "io.output.change" ]
1,442,866
1,442,867
u015187377
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n < 1200) { cout << "ABC"; } else { cout << "AGC"; } cout << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n < 1200) { cout << "ABC"; } else { cout << "ARC"; } cout << endl; }
[ "literal.string.change", "io.output.change" ]
1,442,872
1,442,873
u468647389
cpp
p03813
#include <stdio.h> int main(void) { int x; 1 < x < 3000; scanf("%d", &x); if (x < 1200) { printf("ARC\n"); } else { printf("ABC\n"); } return 0; }
#include <stdio.h> int main(void) { int x; 1 < x < 3000; scanf("%d", &x); if (x < 1200) { printf("ABC\n"); } else { printf("ARC\n"); } return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,442,880
1,442,879
u644911355
cpp
p03813
#include <stdio.h> int main(void) { int x; 1 < x < 3000; scanf("%d", &x); if (x < 1200) { printf("'ARC'\n"); } else { printf("'ABC'\n"); } return 0; }
#include <stdio.h> int main(void) { int x; 1 < x < 3000; scanf("%d", &x); if (x < 1200) { printf("ABC\n"); } else { printf("ARC\n"); } return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,442,881
1,442,879
u644911355
cpp
p03813
#include <stdio.h> int main(void) { int x; 1 < x < 3000; scanf("%d", &x); if (x < 2000) { printf("ARC\n"); } else { printf("ABC\n"); } return 0; }
#include <stdio.h> int main(void) { int x; 1 < x < 3000; scanf("%d", &x); if (x < 1200) { printf("ABC\n"); } else { printf("ARC\n"); } return 0; }
[ "literal.number.change", "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
1,442,882
1,442,879
u644911355
cpp
p03813
#include <cstdio> #include <iostream> using namespace std; int x; int main() { cin >> x; if (x < 1200) printf("ARC"); else printf("ABC"); return 0; }
#include <cstdio> #include <iostream> using namespace std; int x; int main() { cin >> x; if (x < 1200) printf("ABC"); else printf("ARC"); return 0; }
[ "call.remove", "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add", "call.add" ]
1,442,902
1,442,903
u569363648
cpp
p03813
#include <cstdio> #include <iostream> using namespace std; int x; int main() { cin >> x; if (x < 1200) printf("ABC"); else printf("ABC"); return 0; }
#include <cstdio> #include <iostream> using namespace std; int x; int main() { cin >> x; if (x < 1200) printf("ABC"); else printf("ARC"); return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,442,904
1,442,903
u569363648
cpp
p03813
#include <cstdio> #include <iostream> using namespace std; int x; int main() { printf(x < 1200 ? "ABC" : "ARC"); return 0; }
#include <cstdio> #include <iostream> using namespace std; int x; int main() { cin >> x; printf(x < 1200 ? "ABC" : "ARC"); return 0; }
[]
1,442,905
1,442,906
u223057636
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
[]
1,442,910
1,442,911
u627434558
cpp
p03813
#include <iostream> using namespace std; int main() { int x; if (x < 1200) cout << "ABC"; else cout << "ARC"; }
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x < 1200) cout << "ABC"; else cout << "ARC"; }
[]
1,442,916
1,442,917
u927804708
cpp
p03813
#include <iostream> using namespace std; int main() { int x; if (x < 1200) cout << "ABC"; else cout << "ARG"; }
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x < 1200) cout << "ABC"; else cout << "ARC"; }
[ "literal.string.change", "io.output.change" ]
1,442,918
1,442,917
u927804708
cpp
p03813
#include <algorithm> #include <assert.h> #include <cassert> #include <cctype> #include <cerrno> #include <cfloat> #include <cmath> #include <cstdio> #include <cstring> #include <ctype.h> #include <errno.h> #include <float.h> #include <iostream> #include <map> #include <math.h> #include <memory.h> #include <memory> #inc...
#include <algorithm> #include <assert.h> #include <cassert> #include <cctype> #include <cerrno> #include <cfloat> #include <cmath> #include <cstdio> #include <cstring> #include <ctype.h> #include <errno.h> #include <float.h> #include <iostream> #include <map> #include <math.h> #include <memory.h> #include <memory> #inc...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,442,927
1,442,926
u957239743
cpp
p03813
#include <algorithm> #include <assert.h> #include <cassert> #include <cctype> #include <cerrno> #include <cfloat> #include <cmath> #include <cstdio> #include <cstring> #include <ctype.h> #include <errno.h> #include <float.h> #include <iostream> #include <map> #include <math.h> #include <memory.h> #include <memory> #inc...
#include <algorithm> #include <assert.h> #include <cassert> #include <cctype> #include <cerrno> #include <cfloat> #include <cmath> #include <cstdio> #include <cstring> #include <ctype.h> #include <errno.h> #include <float.h> #include <iostream> #include <map> #include <math.h> #include <memory.h> #include <memory> #inc...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,442,927
1,442,928
u957239743
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int a; if (a < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; }
[]
1,442,930
1,442,931
u259210975
cpp
p03813
#include <algorithm> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> #define f(i, x) for (int i = 0; i < x; i++) using namespace std; int main() { int a; if (a < 1200) cout << "ABC"; else cout << "ARC"; return 0; }
#include <algorithm> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> #define f(i, x) for (int i = 0; i < x; i++) using namespace std; int main() { int a; cin >> a; if (a < 1200) cout << "ABC"; else cout << "ARC"; return 0; }
[]
1,442,932
1,442,933
u996952235
cpp
p03813
#include <iostream> #include <string> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << 'ABC' << endl; } else { cout << 'ARC' << endl; } }
#include <iostream> #include <string> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
[ "literal.string.change", "io.output.change" ]
1,442,937
1,442,938
u075865455
cpp
p03813
#include <iostream> using namespace std; int main(void) { int x; cin >> x; if (x >= 1200) { cout << 'ARC' << endl; } else { cout << 'ABC' << endl; } return 0; }
#include <iostream> using namespace std; int main(void) { int x; cin >> x; if (x >= 1200) { cout << "ARC" << endl; } else { cout << "ABC" << endl; } return 0; }
[ "literal.string.change", "io.output.change" ]
1,442,955
1,442,956
u567255951
cpp
p03813
#include <cstdio> int main() { int x; scanf("%d", &x); printf("%s", x >= 1200 ? "ABC" : "ARC"); }
#include <cstdio> int main() { int x; scanf("%d", &x); printf("%s", x < 1200 ? "ABC" : "ARC"); }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
1,442,960
1,442,961
u484398192
cpp
p03813
#include <cstdio> int main() { int x; scanf("%d", &x); printf("%s", x > 1200 ? "ABC" : "ARC"); }
#include <cstdio> int main() { int x; scanf("%d", &x); printf("%s", x < 1200 ? "ABC" : "ARC"); }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
1,442,962
1,442,961
u484398192
cpp
p03813
#include <algorithm> #include <iostream> #include <list> #include <math.h> #include <set> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { int x; if (x < 1200) cout << "ABC\n"; else cout << "ARC\n"; }
#include <algorithm> #include <iostream> #include <list> #include <math.h> #include <set> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { int x; cin >> x; if (x < 1200) cout << "ABC\n"; else cout << "ARC\n"; }
[]
1,442,963
1,442,964
u744305661
cpp
p03813
#include "stdio.h" int main(void) { int x; scanf("%d", &x); if (1 <= x < 1200) { printf("ABC\n"); } else { printf("ARC\n"); } return 0; }
#include "stdio.h" int main(void) { int x; scanf("%d", &x); if (x < 1200) { printf("ABC\n"); } else { printf("ARC\n"); } return 0; }
[ "expression.operation.binary.remove" ]
1,442,973
1,442,974
u626567597
cpp
p03813
#include "stdio.h" int main(void) { int x; scanf("%d", &x); if (1 <= x < 120) { printf("ABC\n"); } else { printf("ARC\n"); } return 0; }
#include "stdio.h" int main(void) { int x; scanf("%d", &x); if (x < 1200) { printf("ABC\n"); } else { printf("ARC\n"); } return 0; }
[ "expression.operation.binary.remove", "literal.number.change", "control_flow.branch.if.condition.change" ]
1,442,975
1,442,974
u626567597
cpp
p03813
#include "stdio.h" int main(void) { int x; scanf("%d", &x); if (x < 120) { printf("ABC\n"); } else { printf("ARC\n"); } return 0; }
#include "stdio.h" int main(void) { int x; scanf("%d", &x); if (x < 1200) { printf("ABC\n"); } else { printf("ARC\n"); } return 0; }
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,442,976
1,442,974
u626567597
cpp
p03813
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x > 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,442,986
1,442,987
u008730999
cpp
p03813
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <iostream> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; (i) < (n); (i)++) #define ll long long int main() { int N; cin...
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <iostream> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; (i) < (n); (i)++) #define ll long long int main() { int N; cin...
[ "literal.number.change", "control_flow.loop.for.condition.change", "io.output.change" ]
1,442,988
1,442,989
u354773735
cpp
p03813
#include <algorithm> #include <iostream> using namespace std; int main() { int x; cout << (x < 1200 ? "ABC" : "ARC") << endl; return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int x; cin >> x; cout << (x < 1200 ? "ABC" : "ARC") << endl; return 0; }
[]
1,442,995
1,442,996
u120026978
cpp
p03813
#include <iostream> using namespace std; int main() { int X; cin >> X; if (1 <= X < 1200) { cout << "ABC" << endl; } if (1200 <= X) { cout << "ARC" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int X; cin >> X; if (X < 1200) { cout << "ABC" << endl; } if (1200 <= X) { cout << "ARC" << endl; } return 0; }
[ "expression.operation.binary.remove" ]
1,443,005
1,443,006
u755084183
cpp
p03813
#include <iostream> using namespace std; int main() { int X; cin >> X; if (1 <= X < 1200) { cout << 'ABC' << endl; } if (1200 <= X) { cout << 'ARC' << endl; } return 0; }
#include <iostream> using namespace std; int main() { int X; cin >> X; if (X < 1200) { cout << "ABC" << endl; } if (1200 <= X) { cout << "ARC" << endl; } return 0; }
[ "expression.operation.binary.remove", "literal.string.change", "io.output.change" ]
1,443,007
1,443,006
u755084183
cpp
p03813
#include <algorithm> #include <cmath> #include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { int n; cin >> n; if (n < 1200) { cout << "ABC"; } else if (n < 2000) { cout << "ARC"; } cout << endl; return 0; }
#include <algorithm> #include <cmath> #include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { int n; cin >> n; if (n < 1200) { cout << "ABC"; } else { cout << "ARC"; } cout << endl; return 0; }
[]
1,443,008
1,443,009
u393086221
cpp
p03813
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <map> #include <random> #include <string> #include <vector> using namespace std; #define MK make_pair #define PB push_back #define MSI map<string, int> #define VI vector<int> #define VII vector<int, int> #define FOR(i, a, b) for (int ...
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <map> #include <random> #include <string> #include <vector> using namespace std; #define MK make_pair #define PB push_back #define MSI map<string, int> #define VI vector<int> #define VII vector<int, int> #define FOR(i, a, b) for (int ...
[ "literal.string.change", "expression.operation.binary.change" ]
1,443,010
1,443,011
u001513927
cpp
p03813
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <map> #include <random> #include <string> #include <vector> using namespace std; #define MK make_pair #define PB push_back #define MSI map<string, int> #define VI vector<int> #define VII vector<int, int> #define FOR(i, a, b) for (int ...
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <map> #include <random> #include <string> #include <vector> using namespace std; #define MK make_pair #define PB push_back #define MSI map<string, int> #define VI vector<int> #define VII vector<int, int> #define FOR(i, a, b) for (int ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "literal.string.change" ]
1,443,012
1,443,011
u001513927
cpp
p03813
#include <stdio.h> int main() { int n; scanf("%d", &n); printf("%s\n", n > 1300 ? "ABC" : "ARC"); }
#include <stdio.h> int main() { int n; scanf("%d", &n); printf("%s\n", n < 1200 ? "ABC" : "ARC"); }
[]
1,443,021
1,443,020
u887740613
cpp
p03813
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x > 1200) { cout << "ABC"; } else { cout << "ARC"; } return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x < 1200) { cout << "ABC"; } else { cout << "ARC"; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,443,032
1,443,033
u285308210
cpp
p03813
#include <bits/stdc++.h> using namespace std; #define int long long #define Rep(i, N) for (int i = 0; i < N; i++) signed main() { int X; if (X >= 1200) { cout << "ARC" << endl; } else { cout << "ABC" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; #define int long long #define Rep(i, N) for (int i = 0; i < N; i++) signed main() { int X; cin >> X; if (X >= 1200) { cout << "ARC" << endl; } else { cout << "ABC" << endl; } return 0; }
[]
1,443,038
1,443,039
u239239546
cpp
p03814
#include <bits/stdc++.h> using namespace std; int main() { string S, C, D; cin >> S; for (int i = 0; i < S.length(); i++) { if (S[i] == 'A') { C = S.substr(i); } } reverse(C.begin(), C.end()); for (int i = 0; i < C.length(); i++) { if (C[i] == 'Z') { D = C.substr(i); } } cou...
#include <bits/stdc++.h> using namespace std; int main() { string S, C, D; cin >> S; for (int i = 0; i < S.length(); i++) { if (S[i] == 'A') { C = S.substr(i); break; } } reverse(C.begin(), C.end()); for (int i = 0; i < C.length(); i++) { if (C[i] == 'Z') { D = C.substr(i); ...
[ "control_flow.break.add" ]
1,443,043
1,443,044
u624830211
cpp
p03814
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int a, b; for (int i = 0; i < s.length(); i++) { if (s.at(i) == 'A') { a = i; } } for (int i = s.length() - 1; i > 0; i--) { if (s.at(i) == 'Z') { b = i; } } cout << b - a + 1 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int a, b; for (int i = 0; i < s.length(); i++) { if (s.at(i) == 'A') { a = i; break; } } for (int i = s.length() - 1; i > 0; i--) { if (s.at(i) == 'Z') { b = i; break; } } cout << b - ...
[ "control_flow.break.add" ]
1,443,045
1,443,046
u624830211
cpp
p03814
#include <bits/stdc++.h> #include <string> using namespace std; int main() { string s; cin >> s; int a = 0, z = 0; for (int i = 0; i < s.size(); i++) { if (s.at(i) == 'A' && a == 0) { a = i; } if (s.at(i) == 'Z' && z <= i) { z = i; } } cout << z - a + 1 << endl; }
#include <bits/stdc++.h> #include <string> using namespace std; int main() { string s; cin >> s; int a = -1, z = 0; for (int i = 0; i < s.size(); i++) { if (s.at(i) == 'A' && a == -1) { a = i; } if (s.at(i) == 'Z' && z <= i) { z = i; } } cout << z - a + 1 << endl; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.branch.if.condition.change" ]
1,443,047
1,443,048
u799751074
cpp
p03814
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <iostream> #include <string> #include <vector> using namespace std; int main() { string s; cin >> s; int A = 0; int Z = 0; for (int i = 0; i < s.size(); i++) { if (s[i] == 'A') A = i; break; } for (int i = s.size();...
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <iostream> #include <string> #include <vector> using namespace std; int main() { string s; cin >> s; int A = 0; int Z = 0; for (int i = 0; i < s.size(); i++) { if (s[i] == 'A') { A = i; break; } } for (int i =...
[]
1,443,051
1,443,052
u390997234
cpp
p03814
#include <bits/stdc++.h> using namespace std; int main() { string s; int a = 0, b = 0; cin >> s; for (int i = 0; i < s.size(); i++) { if (s[i] == 'A') { a = i; break; } } for (int i = a; i < s.size(); i++) { if (s[i] == 'Z') { b = i; break; } } cout << b - a + 1 ...
#include <bits/stdc++.h> using namespace std; int main() { string s; int a = 0, b = 0; cin >> s; for (int i = 0; i < s.size(); i++) { if (s[i] == 'A') { a = i; break; } } for (int i = a; i < s.size(); i++) { if (s[i] == 'Z') { b = i; } } cout << b - a + 1 << endl; }
[]
1,443,062
1,443,063
u834753207
cpp
p03814
#include <bits/stdc++.h> using namespace std; int main() { string s; int a = 0, b = 0; cin >> s; for (int i = 0; i < s.size(); i++) { if (s[i] == 'A') { a = i; break; } } for (int i = a; i < s.size(); i++) { if (s[i] == 'Z') { b = i; break; } } cout << b - a << e...
#include <bits/stdc++.h> using namespace std; int main() { string s; int a = 0, b = 0; cin >> s; for (int i = 0; i < s.size(); i++) { if (s[i] == 'A') { a = i; break; } } for (int i = a; i < s.size(); i++) { if (s[i] == 'Z') { b = i; } } cout << b - a + 1 << endl; }
[ "expression.operation.binary.add" ]
1,443,064
1,443,063
u834753207
cpp
p03814
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string s; cin >> s; int a = 0; int z = 0; rep(i, s.size()) { if (s.at(i) == 'A') { a = i; break; } } rep(i, s.size()) { if (s.at(i) == 'Z') z = i; } cout << ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string s; cin >> s; int a = 0; int z = 0; rep(i, s.size()) { if (s.at(i) == 'A') { a = i; break; } } rep(i, s.size()) { if (s.at(i) == 'Z') z = i; } cout << ...
[ "expression.operation.binary.add" ]
1,443,065
1,443,066
u442855610
cpp
p03814
#include <algorithm> #include <iostream> using namespace std; #define REP(i, s, e) for ((i) = (s); (i) < (e); (i)++) #define RREP(i, s, e) for ((i) = ((s)-1); (i) >= (e); (i)--) int main() { string s; cin >> s; int a = -1, z = -1, i; REP(i, 0, s.size()) { if (s[i] == 'A') { a = i; break; ...
#include <algorithm> #include <iostream> using namespace std; #define REP(i, s, e) for ((i) = (s); (i) < (e); (i)++) #define RREP(i, s, e) for ((i) = ((s)-1); (i) >= (e); (i)--) int main() { string s; cin >> s; int a = -1, z = -1, i; REP(i, 0, s.size()) { if (s[i] == 'A') { a = i; break; ...
[ "expression.operation.binary.add" ]
1,443,067
1,443,068
u853817705
cpp
p03814
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll MOD = 1e9 + 7 /*998244353*/; const ll INF = 1LL << 60; ll mod_pow(ll, ll, ll); ll mod_fact(ll, ll); ll mod_inv(ll, ll); ll gcd(ll, ll); ll lcm(ll, ll); // int main() { string s; cin >> s; int a, z; for (int i = 0; i < s.size(); i++) { ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll MOD = 1e9 + 7 /*998244353*/; const ll INF = 1LL << 60; ll mod_pow(ll, ll, ll); ll mod_fact(ll, ll); ll mod_inv(ll, ll); ll gcd(ll, ll); ll lcm(ll, ll); // int main() { string s; cin >> s; int a, z; for (int i = 0; i < s.size(); i++) { ...
[ "control_flow.continue.remove", "control_flow.break.add" ]
1,443,069
1,443,070
u369712616
cpp
p03814
#include <bits/stdc++.h> using namespace std; int main() { char s[250000]; cin >> s; int a, b; for (int i = 0; i < strlen(s); i++) { if (s[i] == 'A') a = i; break; } for (int i = strlen(s) - 1; i > -1; i--) { if (s[i] == 'Z') b = i; break; } cout << b - a + 1; }
#include <bits/stdc++.h> using namespace std; int main() { char s[250000]; cin >> s; int a, b; for (int i = 0; i < strlen(s); i++) { if (s[i] == 'A') { a = i; break; } } for (int i = strlen(s) - 1; i > -1; i--) { if (s[i] == 'Z') { b = i; break; } } cout << b - a ...
[]
1,443,079
1,443,080
u222643545
cpp
p03814
#include <iostream> #include <string> using namespace std; int main() { string data; cin >> data; int a = 0, b = 0; for (int i = 0; i < data.size(); i++) { if (a == 0 and data[i] == 'A') { a = i; } if (data[i] == 'Z') { b = i; } } cout << b - a + 1; }
#include <iostream> #include <string> using namespace std; int main() { string data; cin >> data; int a = 0, b = 0; for (int i = 1; i <= data.size(); i++) { if (a == 0 and data[i - 1] == 'A') { a = i; } if (data[i - 1] == 'Z') { b = i; } } cout << b - a + 1; }
[ "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", "control_flow.branch.if.condition.change", "misc.of...
1,443,083
1,443,084
u875036292
cpp
p03814
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; while (s.size() > 0) { if (s[0] != 'A') { s.erase(s.begin() + 0); } else break; } while (s.size() > 0) { if (s.back() != 'Z') { s.erase(s.begin() + s.size() - 1); } else break; } cout << ...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; while (s.size() > 0) { if (s[0] != 'A') { s.erase(s.begin() + 0); } else break; } while (s.size() > 0) { if (s.back() != 'Z') { s.erase(s.begin() + s.size() - 1); } else break; } cout << ...
[ "call.add" ]
1,443,091
1,443,092
u325954055
cpp
p03814
#include <bits/stdc++.h> using namespace std; #define int long long #define ar array #define vt vector #define pb push_back #define all(c) (c).begin(), (c).end() #define sz(x) (int)(x).size() #define F_OR(i, a, b, s) \ for (int i = (a); (s) > 0 ? i < (b) : i > ...
#include <bits/stdc++.h> using namespace std; #define int long long #define ar array #define vt vector #define pb push_back #define all(c) (c).begin(), (c).end() #define sz(x) (int)(x).size() #define F_OR(i, a, b, s) \ for (int i = (a); (s) > 0 ? i < (b) : i > ...
[ "call.remove" ]
1,443,098
1,443,099
u141580535
cpp
p03814
/* URL_HERE */ /* */ #ifdef _WIN32 #pragma warning(disable : 4996) #endif #include <algorithm> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unordered_map> using namespace std; FILE *_fin = stdin; FILE *_fout = stdout; #define PI 3.141592653589793238462643383279502884197169399...
/* URL_HERE */ /* */ #ifdef _WIN32 #pragma warning(disable : 4996) #endif #include <algorithm> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unordered_map> using namespace std; FILE *_fin = stdin; FILE *_fout = stdout; #define PI 3.141592653589793238462643383279502884197169399...
[]
1,443,103
1,443,104
u950002813
cpp
p03814
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0) const ll inf = 1e9 + 7; string a, b, c; ll mod(ll a) { if (a < inf) return a; else return a % inf; } void test_cases() { string s; cin >> s; ll index1, index2; ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0) const ll inf = 1e9 + 7; string a, b, c; ll mod(ll a) { if (a < inf) return a; else return a % inf; } void test_cases() { string s; cin >> s; ll index1, index2; ...
[ "control_flow.break.add" ]
1,443,118
1,443,119
u933095385
cpp
p03814
#include <bits/stdc++.h> using namespace std; #define debug(n) cerr << #n << ':' << n << endl; #define dline cerr << __LINE__ << endl; using ll = long long; using ull = unsigned long long; template <class T, class U> using P = pair<T, U>; template <class T> using Heap = priority_queue<T>; template <class T> using he...
#include <bits/stdc++.h> using namespace std; #define debug(n) cerr << #n << ':' << n << endl; #define dline cerr << __LINE__ << endl; using ll = long long; using ull = unsigned long long; template <class T, class U> using P = pair<T, U>; template <class T> using Heap = priority_queue<T>; template <class T> using he...
[]
1,443,124
1,443,125
u691380397
cpp
p03814
#include <iostream> #include <string> using namespace std; int main(void) { string S; cin >> S; int l = S.length(); int a, z; for (int i = 0; i < l; i++) { if (S[i] == 'A') a = i; break; } for (int i = 0; i < l; i++) { if (S[i] == 'Z') z = i; } cout << z - a << endl; retur...
#include <iostream> #include <string> using namespace std; int main(void) { string S; cin >> S; int l = S.length(); int a, z; for (int i = 0; i < l; i++) { if (S[i] == 'A') { a = i; break; } } for (int i = 0; i < l; i++) { if (S[i] == 'Z') z = i; } cout << z - a + 1 <<...
[ "expression.operation.binary.add" ]
1,443,128
1,443,129
u883680855
cpp