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
p02580
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
281,050
281,051
u309862422
cpp
p02580
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <string> #include <tuple> #include <vector> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i <= n; ++i) #de...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <string> #include <tuple> #include <vector> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i <= n; ++i) #de...
[]
281,057
281,058
u313043608
cpp
p02580
#include <algorithm> #include <cmath> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; typedef unsigned int u32; typedef int i32; typedef unsigned long long int u64; typedef long long int i64; // 9e18 typedef uint16_t u16; type...
#include <algorithm> #include <cmath> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; typedef unsigned int u32; typedef int i32; typedef unsigned long long int u64; typedef long long int i64; // 9e18 typedef uint16_t u16; type...
[ "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" ]
281,063
281,064
u214245159
cpp
p02580
#include <bits/stdc++.h> using namespace std; int main() { long H, W, N; cin >> H >> W >> N; vector<pair<long, long>> ta(H), yo(W); map<pair<long, long>, long> mp; for (int i = 0; i < H; i++) ta.at(i).second = i; for (int i = 0; i < W; i++) yo.at(i).second = i; long h, w; for (int i = 0; i < N; ...
#include <bits/stdc++.h> using namespace std; int main() { long H, W, N; cin >> H >> W >> N; vector<pair<long, long>> ta(H), yo(W); map<pair<long, long>, long> mp; for (int i = 0; i < H; i++) ta.at(i).second = i; for (int i = 0; i < W; i++) yo.at(i).second = i; long h, w; for (int i = 0; i < N; ...
[ "assignment.change" ]
281,065
281,066
u239087789
cpp
p02580
#include <bits/stdc++.h> using namespace std; typedef long long LL; template <typename T> inline void read(T &x) { int f = 1; x = 0; char c = getchar(); for (; !isdigit(c); c = getchar()) if (c == '-') f = -1; for (; isdigit(c); c = getchar()) x = (x << 3) + (x << 1) + (c ^ 48); x *= f; } cons...
#include <bits/stdc++.h> using namespace std; typedef long long LL; template <typename T> inline void read(T &x) { int f = 1; x = 0; char c = getchar(); for (; !isdigit(c); c = getchar()) if (c == '-') f = -1; for (; isdigit(c); c = getchar()) x = (x << 3) + (x << 1) + (c ^ 48); x *= f; } cons...
[ "identifier.change", "variable_access.subscript.index.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
281,076
281,077
u119750178
cpp
p02580
#include <algorithm> #include <chrono> #include <cmath> #include <cstdio> #include <cstring> #include <ctime> #include <iomanip> #include <iostream> #include <limits.h> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <unordered_map> #include <unordered_set> #define fast ...
#include <algorithm> #include <chrono> #include <cmath> #include <cstdio> #include <cstring> #include <ctime> #include <iomanip> #include <iostream> #include <limits.h> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <unordered_map> #include <unordered_set> #define fast ...
[ "expression.operation.binary.add" ]
281,082
281,083
u172942446
cpp
p02580
#include <bits/stdc++.h> using namespace std; int main() { int n, m, k, i, ans = 0, tot, k1 = 0, k2 = 0, mx1 = 0, mx2 = 0; cin >> n >> m >> k; // map<pair<int,int>,int>mp; int a[n + 1] = {0}, b[m + 1] = {0}; int x[k + 1], y[k + 1]; for (i = 1; i <= k; i++) { cin >> x[i] >> y[i]; a[x[i]]++; b[y[...
#include <bits/stdc++.h> using namespace std; int main() { int n, m, k, i, ans = 0, tot, k1 = 0, k2 = 0, mx1 = 0, mx2 = 0; cin >> n >> m >> k; // map<pair<int,int>,int>mp; int a[n + 1] = {0}, b[m + 1] = {0}; int x[k + 1], y[k + 1]; for (i = 1; i <= k; i++) { cin >> x[i] >> y[i]; a[x[i]]++; b[y[...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
281,088
281,089
u408672537
cpp
p02580
#include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #define bug(x) cout << "zdongdebug1: " << x << endl; #define bug2(x, y) co...
#include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #define bug(x) cout << "zdongdebug1: " << x << endl; #define bug2(x, y) co...
[ "identifier.change", "variable_access.subscript.index.change" ]
281,094
281,095
u541410431
cpp
p02581
#include <bits/stdc++.h> #define int long long #define ll long long using ull = unsigned long long; using namespace std; #define dump(x) \ if (dbg) { \ cerr << #x << " = " << (x) << end...
#include <bits/stdc++.h> #define int long long #define ll long long using ull = unsigned long long; using namespace std; #define dump(x) \ if (dbg) { \ cerr << #x << " = " << (x) << end...
[ "call.arguments.change" ]
281,104
281,105
u070600790
cpp
p02581
#include <bits/stdc++.h> using namespace std; int n, x[6005], y[2005][2005], add, ans, mx[2005], mxx; int main() { scanf("%d", &n); for (int i = 0; i < n * 3; i++) scanf("%d", x + i); for (int i = 1; i <= n; i++) { mx[i] = INT_MIN; for (int j = 1; j <= n; j++) y[i][j] = INT_MIN; } mx[x[0]...
#include <bits/stdc++.h> using namespace std; int n, x[6005], y[2005][2005], add, ans, mx[2005], mxx; int main() { scanf("%d", &n); for (int i = 0; i < n * 3; i++) scanf("%d", x + i); for (int i = 1; i <= n; i++) { mx[i] = INT_MIN; for (int j = 1; j <= n; j++) y[i][j] = INT_MIN; } mx[x[0]...
[ "control_flow.loop.for.initializer.change", "expression.operation.binary.remove" ]
281,106
281,107
u986280706
cpp
p02582
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep2(i, a, b) for (int i = (a); i < (b); ++i) #define all(a) (a).begin(), (a).end() int main() { string s; cin >> s; bool p = s[0] == 'R'; bool q = s[1] == 'R'; bool r = s[2] == 'R';...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep2(i, a, b) for (int i = (a); i < (b); ++i) #define all(a) (a).begin(), (a).end() int main() { string s; cin >> s; bool p = s[0] == 'R'; bool q = s[1] == 'R'; bool r = s[2] == 'R';...
[ "expression.operation.binary.remove", "misc.opposites", "control_flow.branch.if.condition.change" ]
281,110
281,109
u119171625
cpp
p02582
#include <bitset> #include <iostream> #include <map> #include <vector> using namespace std; int main() { string w; cin >> w; ; int result; if (w.at(0) == 'S' && w.at(1) == 'S' && w.at(2) == 'S') { result = 0; } else if (w.at(0) == 'R' && w.at(1) == 'R' && w.at(2) == 'R') { result = 3; } else if...
#include <bitset> #include <iostream> #include <map> #include <vector> using namespace std; int main() { string w; cin >> w; ; int result; if (w.at(0) == 'S' && w.at(1) == 'S' && w.at(2) == 'S') { result = 0; } else if (w.at(0) == 'R' && w.at(1) == 'R' && w.at(2) == 'R') { result = 3; } else if...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,119
281,120
u138393078
cpp
p02582
#include <iostream> using namespace std; #include <string> int main() { string str; cin >> str; int ans = 0; if (str.at(1) == 'R') { ans++; if (str.at(2) == 'R') ans++; if (str.at(0) == 'R') ans++; } else { if (str.at(0) == 'R' && str.at(2) == 'R') ans++; } cout << ans <...
#include <iostream> using namespace std; #include <string> int main() { string str; cin >> str; int ans = 0; if (str.at(1) == 'R') { ans++; if (str.at(2) == 'R') ans++; if (str.at(0) == 'R') ans++; } else { if (str.at(0) == 'R' || str.at(2) == 'R') ans++; } cout << ans <...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
281,138
281,139
u961358555
cpp
p02582
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; } template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return true; } return false; } #define all(x) (x).beg...
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; } template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return true; } return false; } #define all(x) (x).beg...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,142
281,143
u133391510
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S == "RRR") { cout << 3 << endl; } else if (S == "RRW" || S == "WRR") { cout << 2 << endl; } else if (S == "SSS") { cout << 0 << endl; } else { cout << 1 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S == "RRR") { cout << 3 << endl; } else if (S == "RRS" || S == "SRR") { cout << 2 << endl; } else if (S == "SSS") { cout << 0 << endl; } else { cout << 1 << endl; } }
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,146
281,147
u280966279
cpp
p02582
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <math.h> #include <string> using namespace std; #define rep(i, j, n) for (int i = j; i < (n); i++) #define rep0(i, n) for (int i = 0; i < (n); i++) #define rep1(i, n) for (int i = 1; i < (n); i++) int main() { string s; cin >> s; if (s[0]...
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <math.h> #include <string> using namespace std; #define rep(i, j, n) for (int i = j; i < (n); i++) #define rep0(i, n) for (int i = 0; i < (n); i++) #define rep1(i, n) for (int i = 1; i < (n); i++) int main() { string s; cin >> s; if (s[0]...
[ "literal.string.change", "io.output.change" ]
281,155
281,156
u676480077
cpp
p02582
// This file is a "Hello, world!" in C++ language by GCC for wandbox. #include <cstdlib> #include <iostream> using namespace std; int main() { string s; cin >> s; if (s == "RRR") { cout << 3 << endl; } if (s == "SSS") { cout << 0 << endl; } else if (s == "RRS" or "SRR") { cout << 2 << end...
// This file is a "Hello, world!" in C++ language by GCC for wandbox. #include <cstdlib> #include <iostream> using namespace std; int main() { string s; cin >> s; if (s == "RRR") { cout << 3 << endl; } else if (s == "SSS") { cout << 0 << endl; } else if (s == "RRS" or s == "SRR") { cout <...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove", "control_flow.branch.if.condition.change" ]
281,186
281,185
u934329211
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int ans = 0; int k = 0; for (int i = 0; i < 3; i++) { if (s.at(i) == 'R') { k++; } else { ans = max(ans, k); } } cout << max(ans, k) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int ans = 0; int k = 0; for (int i = 0; i < 3; i++) { if (s.at(i) == 'R') { k++; } else { ans = max(ans, k); k = 0; } } cout << max(ans, k) << endl; return 0; }
[ "assignment.add" ]
281,187
281,188
u033524082
cpp
p02582
#include <iostream> using namespace std; int main() { string s; cin >> s; int i = 0; if (s[i] == 'R' && s[i + 1] == 'R' && s[i + 2] == 'R') cout << 3 << endl; else if ((s[i] == 'R' && s[i + 1] != 'R' && s[i + 2] != 'R') || (s[i] != 'R' && s[i + 1] == 'R' && s[i + 2] != 'R') || (s[i] ...
#include <iostream> using namespace std; int main() { string s; cin >> s; int i = 0; if (s[i] == 'R' && s[i + 1] == 'R' && s[i + 2] == 'R') cout << 3 << endl; else if ((s[i] == 'R' && s[i + 1] != 'R' && s[i + 2] != 'R') || (s[i] != 'R' && s[i + 1] == 'R' && s[i + 2] != 'R') || (s[i] ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
281,199
281,200
u054820639
cpp
p02582
#include <iostream> using namespace std; int main() { string s; cin >> s; int i = 0; if (s[i] == 'R' && s[i + 1] == 'R' && s[i + 2] == 'R') cout << 3 << endl; else if ((s[i] == 'R' && s[i + 1] != 'R' && s[i + 2] != 'R') || (s[i] != 'R' && s[i + 1] == 'R' && s[i + 2] != 'R') || (s[i] ...
#include <iostream> using namespace std; int main() { string s; cin >> s; int i = 0; if (s[i] == 'R' && s[i + 1] == 'R' && s[i + 2] == 'R') cout << 3 << endl; else if ((s[i] == 'R' && s[i + 1] != 'R' && s[i + 2] != 'R') || (s[i] != 'R' && s[i + 1] == 'R' && s[i + 2] != 'R') || (s[i] ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
281,201
281,200
u054820639
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int ame = 0; for (int i = 0; i < 3; i++) { if (S.at(i) == 'R') { if (i <= 1) { if (S.at(i + 1) == 'R') { if (i == 0) { if (S.at(i + 2) == 'R') { ame == 3; break; ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int ame = 0; for (int i = 0; i < 3; i++) { if (S.at(i) == 'R') { if (i <= 1) { if (S.at(i + 1) == 'R') { if (i == 0) { if (S.at(i + 2) == 'R') { ame = 3; break; ...
[ "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo" ]
281,211
281,212
u669831668
cpp
p02582
// g++ -std=gnu++14 a.cpp #include <algorithm> #include <bitset> #include <complex> #include <deque> #include <iomanip> #include <iostream> #include <istream> #include <iterator> #include <map> #include <math.h> #include <queue> #include <random> #include <set> #include <stack> #include <stdio.h> #include <string> #in...
// g++ -std=gnu++14 a.cpp #include <algorithm> #include <bitset> #include <complex> #include <deque> #include <iomanip> #include <iostream> #include <istream> #include <iterator> #include <map> #include <math.h> #include <queue> #include <random> #include <set> #include <stack> #include <stdio.h> #include <string> #in...
[ "identifier.change" ]
281,217
281,218
u388134182
cpp
p02582
#include "bits/stdc++.h" using namespace std; const int MAX = 700000; const int MOD = 1000000007; long long fac[MAX], finv[MAX], inv[MAX]; // テーブルを作る前処理 void COMinit() { fac[0] = fac[1] = 1; finv[0] = finv[1] = 1; inv[1] = 1; for (int i = 2; i < MAX; i++) { fac[i] = fac[i - 1] * i % MOD; inv[i] = MOD ...
#include "bits/stdc++.h" using namespace std; const int MAX = 700000; const int MOD = 1000000007; long long fac[MAX], finv[MAX], inv[MAX]; // テーブルを作る前処理 void COMinit() { fac[0] = fac[1] = 1; finv[0] = finv[1] = 1; inv[1] = 1; for (int i = 2; i < MAX; i++) { fac[i] = fac[i - 1] * i % MOD; inv[i] = MOD ...
[ "literal.string.change", "io.output.change" ]
281,232
281,233
u473116917
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool p = S.at(0) == 'R'; bool q = S.at(1) == 'R'; bool r = S.at(2) == 'R'; if (p && q && r) cout << 3 << endl; if ((p && q) || (q && r)) cout << 2 << endl; if (p || q || r) cout << 1 << endl; else cout << ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool p = S.at(0) == 'R'; bool q = S.at(1) == 'R'; bool r = S.at(2) == 'R'; if (p && q && r) cout << 3 << endl; else if ((p && q) || (q && r)) cout << 2 << endl; else if (p || q || r) cout << 1 << endl; else ...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
281,239
281,240
u076273565
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int count = 0; for (int i; i < 3; i++) { if (S.at(i) == 'R') { count++; } } if (count == 2) { } else if (S.at(1) == 'S') { count = 1; } cout << count << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int count = 0; for (int i = 0; i < 3; i++) { if (S.at(i) == 'R') { count++; } } if (count == 2) { if (S.at(1) == 'S') { count = 1; } } cout << count << endl; }
[ "control_flow.loop.for.initializer.change", "variable_declaration.value.change" ]
281,249
281,250
u918529265
cpp
p02582
#include <iostream> using namespace std; int main() { string wheather; cin >> wheather; char cnt = 0; char maxcnt = 0; for (int loop = 0; loop < 3; loop++) { if (wheather[loop] == 'R') { cnt++; if (maxcnt <= cnt) maxcnt = cnt; } else cnt = 0; } cout << maxcnt << endl; ...
#include <iostream> using namespace std; int main() { string wheather; cin >> wheather; int cnt = 0; int maxcnt = 0; for (int loop = 0; loop < 3; loop++) { if (wheather[loop] == 'R') { cnt++; if (maxcnt <= cnt) maxcnt = cnt; } else cnt = 0; } cout << maxcnt << endl; r...
[ "variable_declaration.type.primitive.change" ]
281,263
281,264
u807503905
cpp
p02582
#include <algorithm> #include <assert.h> #include <bitset> #include <climits> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include ...
#include <algorithm> #include <assert.h> #include <bitset> #include <climits> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include ...
[ "expression.operation.binary.remove" ]
281,271
281,272
u887297287
cpp
p02582
#include <iostream> using namespace std; int main() { string s; int res; cin >> s; for (char x : s) { if (x == 'R') ++res; } if (res == 2 && s[1] == 'S') res--; cout << res << endl; return 0; }
#include <iostream> using namespace std; int main() { string s; int res = 0; cin >> s; for (char x : s) { if (x == 'R') ++res; } if (res == 2 && s[1] == 'S') res--; cout << res << endl; return 0; }
[ "variable_declaration.value.change" ]
281,273
281,274
u294683729
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; int c = 0; int l = 0; for (int i = 0; i < 2; i++) { if (str[i] == 'R') l++; else { if (l > c) c = l; l = 0; } } if (l > c) c = l; cout << c << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; int c = 0; int l = 0; for (int i = 0; i < 3; i++) { if (str[i] == 'R') l++; else { if (l > c) c = l; l = 0; } } if (l > c) c = l; cout << c << endl; return 0; }
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
281,289
281,290
u625350014
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; int c = -1; int l = 0; for (int i = 0; i < 2; i++) { if (str[i] == 'R') l++; else { if (l > c) c = l; l = 0; } } if (l > c) c = l; cout << c << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; int c = 0; int l = 0; for (int i = 0; i < 3; i++) { if (str[i] == 'R') l++; else { if (l > c) c = l; l = 0; } } if (l > c) c = l; cout << c << endl; return 0; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
281,291
281,290
u625350014
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define rep(i, A) for (int i = 0; i < A; i++) int main() { string S; cin >> S; int count = 0; rep(i, 3) { if (S[i] == 'R') { count++; } } if (count != 2) { cout << count << endl; } else { if (S[0] == 'R') { cout << 1 << endl; }...
#include <bits/stdc++.h> using namespace std; #define rep(i, A) for (int i = 0; i < A; i++) int main() { string S; cin >> S; int count = 0; rep(i, 3) { if (S[i] == 'R') { count++; } } if (count != 2) { cout << count << endl; } else { if (S[1] == 'R') { cout << 2 << endl; }...
[ "literal.number.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "io.output.change", "identifier.replace.remove", "literal.replace.add" ]
281,300
281,301
u425231382
cpp
p02582
#include <algorithm> #include <cstdio> #include <cstdlib> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) #define P pair<int, int> typedef vector<int> vec; typedef vector<vec> mat; int mai...
#include <algorithm> #include <cstdio> #include <cstdlib> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) #define P pair<int, int> typedef vector<int> vec; typedef vector<vec> mat; int mai...
[ "literal.number.change", "call.arguments.change" ]
281,308
281,309
u416773418
cpp
p02582
// can i beat Mod Love? #include <bits/stdc++.h> using namespace std; #define close std::ios::sync_with_stdio(false), cin.tie(0), cout.tie(0) #define eps 1e-8 typedef long long ll; const double PI = acos(-1.0); constexpr int INF = 0x3f3f3f3f; constexpr ll linf = 0x3f3f3f3f3f3f3f3f; constexpr int mod = 1e9 + 7; constex...
// can i beat Mod Love? #include <bits/stdc++.h> using namespace std; #define close std::ios::sync_with_stdio(false), cin.tie(0), cout.tie(0) #define eps 1e-8 typedef long long ll; const double PI = acos(-1.0); constexpr int INF = 0x3f3f3f3f; constexpr ll linf = 0x3f3f3f3f3f3f3f3f; constexpr int mod = 1e9 + 7; constex...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,319
281,320
u862413182
cpp
p02582
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() int main() { string S; cin >> S; int res = 0; int a = 0; rep(i, S.size()) { if (S[i] == 'R') a++; else { res = max(res, a); a ...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() int main() { string S; cin >> S; int res = 0; int a = 0; rep(i, S.size()) { if (S[i] == 'R') a++; else { res = max(res, a); a ...
[ "call.add", "call.arguments.add" ]
281,323
281,324
u662615460
cpp
p02582
#include <algorithm> #include <cmath> #include <ctime> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int max = 0; for (int i = 0; i < (int)s.size() - 1; ++i) { int sum = 0; if (s[i] == 'R') { int j = i; while (s[j] == 'R') { sum++; ...
#include <algorithm> #include <cmath> #include <ctime> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int max = 0; for (int i = 0; i <= (int)s.size() - 1; ++i) { int sum = 0; if (s[i] == 'R') { int j = i; while (s[j] == 'R') { sum++; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
281,325
281,326
u746292546
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; int max = 0, flag = 0, temp = 0; for (int i = 0; i < a.size(); i++) { if (a[i] == 'R') { if (flag == 0) { flag = 1; temp = 1; } else temp++; } else { if (max < temp) m...
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; int max = 0, flag = 0, temp = 0; for (int i = 0; i < a.size(); i++) { if (a[i] == 'R') { if (flag == 0) { flag = 1; temp = 1; } else temp++; } else { if (max < temp) m...
[ "assignment.change" ]
281,327
281,328
u950116632
cpp
p02582
//-------wh1ter0se--------------// #include <bits/stdc++.h> #define int long long using namespace std; bool sortbysec(const pair<int, int> &a, const pair<int, int> &b) { return (a.second > b.second); } int32_t main() { string s; cin >> s; int count = 0, maxcount = 0, j; for (int i = 0; i < s.length(); i++) { ...
//-------wh1ter0se--------------// #include <bits/stdc++.h> #define int long long using namespace std; bool sortbysec(const pair<int, int> &a, const pair<int, int> &b) { return (a.second > b.second); } int32_t main() { string s; cin >> s; int count = 0, maxcount = 0, j; for (int i = 0; i < s.length(); i++) { ...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
281,378
281,379
u833061712
cpp
p02582
#include <iostream> using namespace std; int main() { string a; cin >> a; int i, k = 0; for (i = 0; i < 3; i++) { if (a.at(i) == 'R') { k++; if (a.at(i + 1) != 'R') { break; } } } cout << k; return 0; }
#include <iostream> using namespace std; int main() { string a; cin >> a; int i, k = 0; for (i = 0; i < 3; i++) { if (a.at(i) == 'R') { k++; if (i != 2 && a.at(i + 1) != 'R') { break; } } } cout << k; return 0; }
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
281,383
281,384
u818967913
cpp
p02582
/***************************************************** * created by: nayakashutosh9 * "Winners Never Quit and Quitters Never Win". *****************************************************/ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #pragma GCC optimize("Of...
/***************************************************** * created by: nayakashutosh9 * "Winners Never Quit and Quitters Never Win". *****************************************************/ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #pragma GCC optimize("Of...
[]
281,389
281,390
u994313124
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { char s[3]; cin >> s; if (s[0] == 'R' && s[1] == 'R' && s[2] == 'R') { cout << 3; return 0; } else if ((s[0] == 'R' && s[1] == 'R') || (s[1] == 'R' && s[2] == 'R')) cout << 2; else if (s[0] != 'R' && s[1] != 'R' && s[2] != 'R') cout << ...
#include <bits/stdc++.h> using namespace std; int main() { char s[3]; cin >> s; if (s[0] == 'R' && s[1] == 'R' && s[2] == 'R') { cout << 3; return 0; } else if ((s[0] == 'R' && s[1] == 'R') || (s[1] == 'R' && s[2] == 'R')) cout << 2; else if (s[0] != 'R' && s[1] != 'R' && s[2] != 'R') cout << ...
[ "literal.number.change", "io.output.change" ]
281,400
281,401
u303582116
cpp
p02582
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int x = 0, ma = 0; for (int i = 0; i < 3; i++) { if (s.at(i) == 'R') { x++; } else { ma = max(ma, x); } if (i == 2) { ma = max(ma, x); } } cout << ma << endl...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int x = 0, ma = 0; for (int i = 0; i < 3; i++) { if (s.at(i) == 'R') { x++; } else { ma = max(ma, x); x = 0; } if (i == 2) { ma = max(ma, x); } } cout ...
[ "assignment.add" ]
281,408
281,409
u343242669
cpp
p02582
// Problem : A - Rainy Season // Contest : AtCoder - AtCoder Beginner Contest 175 // URL : https://atcoder.jp/contests/abc175/tasks/abc175_a // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> using namespace std; #define ll long lo...
// Problem : A - Rainy Season // Contest : AtCoder - AtCoder Beginner Contest 175 // URL : https://atcoder.jp/contests/abc175/tasks/abc175_a // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> using namespace std; #define ll long lo...
[ "literal.number.change", "io.output.change" ]
281,419
281,420
u720542798
cpp
p02582
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, a, b) for (ll i = (a); i < (b); i++) #define PER(i, a, b) for (ll i = (a); i >= (b); i--) #define rep(i, n) REP(i, 0, n) #define per(i, n) PER(i, n, 0) #define ALL(a) (a).begin(), (a).end() const ll INF = 1e18 + 18; const ll MAX = 200000...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, a, b) for (ll i = (a); i < (b); i++) #define PER(i, a, b) for (ll i = (a); i >= (b); i--) #define rep(i, n) REP(i, 0, n) #define per(i, n) PER(i, n, 0) #define ALL(a) (a).begin(), (a).end() const ll INF = 1e18 + 18; const ll MAX = 200000...
[ "assignment.add" ]
281,431
281,432
u196629968
cpp
p02582
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> using namespace std; string s; int sum, ans; int main() { cin >> s; for (int i = 0; i < s.length(); i++) { if (s[i] == 'R') { sum++; ans = max(sum, ans); } else { ans = max(sum, ans); sum = 0; } } ...
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> using namespace std; string s; int sum, ans; int main() { cin >> s; for (int i = 0; i < s.length(); i++) { if (s[i] == 'R') { sum++; ans = max(sum, ans); } else { ans = max(sum, ans); sum = 0; } } ...
[ "identifier.change", "call.arguments.change", "io.output.change" ]
281,441
281,442
u212947352
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define ll long long #define ar array int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; int c = s[0] == 'R', mx = s[0] == 'R'; for (int i = 1; i < 3; ++i) { if (s[i] == 'R') ++c; else mx = max(mx, c); } mx = max(mx,...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ar array int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; int c = s[0] == 'R', mx = s[0] == 'R'; for (int i = 1; i < 3; ++i) { if (s[i] == 'R') ++c; else mx = max(mx, c), c = 0; } mx = ...
[]
281,444
281,445
u614683555
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int count = 0; for (int i = 0; i < 3; i++) { if (S.at(i) == 'R') { count++; } } if (count == 3) cout << 3 << endl; else if (count == 2 && S.at(2) == 'R') cout << 2 << endl; else if (count == 0) ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int count = 0; for (int i = 0; i < 3; i++) { if (S.at(i) == 'R') { count++; } } if (count == 3) cout << 3 << endl; else if (count == 2 && S.at(1) == 'R') cout << 2 << endl; else if (count == 0) ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
281,479
281,480
u519981092
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int count = 0; for (int i = 0; i < 3; i++) { if (S.at(i) == 'S') { count++; } } if (count == 3) cout << 3 << endl; else if (count == 2 && S.at(2) == 'S') cout << 2 << endl; else if (count == 0) ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int count = 0; for (int i = 0; i < 3; i++) { if (S.at(i) == 'R') { count++; } } if (count == 3) cout << 3 << endl; else if (count == 2 && S.at(1) == 'R') cout << 2 << endl; else if (count == 0) ...
[ "literal.string.change", "control_flow.branch.if.condition.change", "literal.number.change" ]
281,482
281,480
u519981092
cpp
p02582
#include <bits/stdc++.h> using namespace std; template <class TH> void _dbg(const char *sdbg, TH h) { cerr << sdbg << '=' << h << endl; } template <class TH, class... TA> void _dbg(const char *sdbg, TH h, TA... a) { while (*sdbg != ',') cerr << *sdbg++; cerr << '=' << h << ','; _dbg(sdbg + 1, a...); } temp...
#include <bits/stdc++.h> using namespace std; template <class TH> void _dbg(const char *sdbg, TH h) { cerr << sdbg << '=' << h << endl; } template <class TH, class... TA> void _dbg(const char *sdbg, TH h, TA... a) { while (*sdbg != ',') cerr << *sdbg++; cerr << '=' << h << ','; _dbg(sdbg + 1, a...); } temp...
[ "identifier.change", "io.output.change" ]
281,508
281,509
u767888807
cpp
p02582
#include <iostream> #include <string> using namespace std; int main() { int n = 0; string S; cin >> S; for (int i = 0; i < 3; i++) { if (S[i] == 'S') n++; } if (S[1] == 'R' && n > 0) cout << "1" << endl; else cout << n << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main() { int n = 0; string S; cin >> S; for (int i = 0; i < 3; i++) { if (S[i] == 'R') n++; } if (S[1] == 'S' && n > 0) cout << "1" << endl; else cout << n << endl; return 0; }
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,512
281,513
u912678856
cpp
p02582
#include <bits/stdc++.h> using namespace std; using ll = long long; using PII = pair<int, int>; using VI = vector<int>; int main() { #ifdef LOCAL_EXEC // freopen("sample.in", "r", stdin); // freopen("sample.out", "w", stdout); #else ios_base::sync_with_stdio(false); cin.tie(NULL); #endif string s; cin >> s; ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using PII = pair<int, int>; using VI = vector<int>; int main() { #ifdef LOCAL_EXEC // freopen("sample.in", "r", stdin); // freopen("sample.out", "w", stdout); #else ios_base::sync_with_stdio(false); cin.tie(NULL); #endif string s; cin >> s; ...
[ "literal.number.change", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
281,544
281,545
u623094203
cpp
p02582
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { string s; cin >> s; ll m; ll cur = 0; for (auto c : s) { if (c == 'R') { ++cur; if (m < cur) m = cur; } else { cur = 0; } } cout << m << endl; }
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { string s; cin >> s; ll m = 0; ll cur = 0; for (auto c : s) { if (c == 'R') { ++cur; if (m < cur) m = cur; } else { cur = 0; } } cout << m << endl; }
[ "variable_declaration.value.change" ]
281,546
281,547
u729166490
cpp
p02582
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { string s; cin >> s; ll m; ll cur = 0; for (auto c : s) { if (c == 'S') { ++cur; if (m < cur) m = cur; } else { cur = 0; } } cout << m << endl; }
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { string s; cin >> s; ll m = 0; ll cur = 0; for (auto c : s) { if (c == 'R') { ++cur; if (m < cur) m = cur; } else { cur = 0; } } cout << m << endl; }
[ "variable_declaration.value.change", "literal.string.change", "control_flow.branch.if.condition.change" ]
281,549
281,547
u729166490
cpp
p02582
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define ss second #define ff first #define pb push_back int main() { ios_base::sync_with_stdio(0); string x; cin >> x; int o = 0, s = 0, k = 0; for (int i = 0; i < x.size(); i++) { if (o == 0 && x[i] == 'R') { s++; } else { ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define ss second #define ff first #define pb push_back int main() { ios_base::sync_with_stdio(0); string x; cin >> x; int o = 0, s = 0, k = 0; for (int i = 0; i < x.size(); i++) { if (o == 0 && x[i] == 'R') { s++; } else { ...
[ "call.add", "call.arguments.change" ]
281,550
281,551
u687361044
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int count = 0; int max_count = INT_MIN; for (int i = 0; i < s.length(); i++) { if (s[i] == 'R') { count++; max_count = max(max_count, count); } else { count = 1; } } if (max_count == INT_MIN) c...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int count = 0; int max_count = INT_MIN; for (int i = 0; i < s.length(); i++) { if (s[i] == 'R') { count++; max_count = max(max_count, count); } else { count = 0; } } if (max_count == INT_MIN) c...
[ "literal.number.change", "assignment.value.change" ]
281,562
281,561
u708914586
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool p = S[0] == 'R'; bool q = S[1] == 'R'; bool r = S[2] == 'R'; if (p and q and r) cout << 1 << endl; else if ((p and q) or (q and r)) cout << 2 << endl; else if (p or q or r) cout << 1 << endl; else cou...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool p = S[0] == 'R'; bool q = S[1] == 'R'; bool r = S[2] == 'R'; if (p and q and r) cout << 3 << endl; else if ((p and q) or (q and r)) cout << 2 << endl; else if (p or q or r) cout << 1 << endl; else cou...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
281,565
281,566
u461563687
cpp
p02582
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef tree<ii, null_type, less<ii>, rb_tree_tag, tree_order_statistics_node_update> indexed_set; int main() { cin.tie(0); cout.tie(...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef tree<ii, null_type, less<ii>, rb_tree_tag, tree_order_statistics_node_update> indexed_set; int main() { cin.tie(0); cout.tie(...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,567
281,568
u912401725
cpp
p02582
#include "algorithm" #include "cmath" #include "deque" #include "iostream" #include "math.h" #include "string" #include "vector" using namespace std; typedef long long ll; int main() { string str; cin >> str; int cnt = 0, max = 0; for (int i = 0; i < 2; i++) { if (str[i] == 'R') { cnt++; if (cn...
#include "algorithm" #include "cmath" #include "deque" #include "iostream" #include "math.h" #include "string" #include "vector" using namespace std; typedef long long ll; int main() { string str; cin >> str; int cnt = 0, max = 0; for (int i = 0; i < 3; i++) { if (str[i] == 'R') { cnt++; if (cn...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
281,575
281,576
u828994140
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[0] == s[1] && s[1] == s[2] && s[1] == 'R') { cout << 3 << endl; } else if (s[1] == s[2] && s[1] == 'R') { cout << 2 << endl; } else if (s[2] == s[3] && s[2] == 'R') { cout << 2 << endl; } else if (s[1] == 'R' |...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[0] == s[1] && s[1] == s[2] && s[1] == 'R') { cout << 3 << endl; } else if (s[0] == s[1] && s[1] == 'R') { cout << 2 << endl; } else if (s[1] == s[2] && s[1] == 'R') { cout << 2 << endl; } else if (s[1] == 'R' |...
[ "control_flow.branch.if.add" ]
281,583
281,584
u086313715
cpp
p02582
#include <iostream> using namespace std; #define int long long int signed main() { string s; cin >> s; int count = 0; for (char ch : s) if (ch == 'R') count++; if (count == 3) cout << 3 << "\n"; else if (count == 1) cout << 1 << "\n"; else if (count == 2) { if (s[0] == s[1] || s[...
#include <iostream> using namespace std; #define int long long int signed main() { string s; cin >> s; int count = 0; for (char ch : s) if (ch == 'R') count++; if (count == 3) cout << 3 << "\n"; else if (count == 1) cout << 1 << "\n"; else if (count == 2) { if (s[0] == s[1] || s[...
[ "literal.number.change", "io.output.change" ]
281,591
281,592
u036472658
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define INF LONG_LONG_MAX #define int long long #define ar array #define db double #define pi 3.14159265358979323846 #define pow pw int pw(int a, int b) { int ans = 1; while (b) { if (b % 2) ans *= a; a *= a; b /= 2; } return (ans); } signed main()...
#include <bits/stdc++.h> using namespace std; #define INF LONG_LONG_MAX #define int long long #define ar array #define db double #define pi 3.14159265358979323846 #define pow pw int pw(int a, int b) { int ans = 1; while (b) { if (b % 2) ans *= a; a *= a; b /= 2; } return (ans); } signed main()...
[ "call.add", "call.arguments.add" ]
281,599
281,600
u298328318
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c = 0; if (s[1] == 'R') { if (s[1] == 'R') c++; if (s[2] == 'R') c++; c++; } else if (s[0] == 'R' || s[2] == 'R') c++; cout << c << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c = 0; if (s[1] == 'R') { if (s[0] == 'R') c++; if (s[2] == 'R') c++; c++; } else if (s[0] == 'R' || s[2] == 'R') c++; cout << c << endl; return 0; }
[ "literal.number.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
281,603
281,604
u445978065
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int count = 0; for (int i = 0; i < 3; i++) { if (S.at(i) == 'R') { count++; } } if (count == 2 && S.at(1) == 'S') count = 0; // if(count == 1) count = 0; cout << count << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int count = 0; for (int i = 0; i < 3; i++) { if (S.at(i) == 'R') { count++; } } if (count == 2 && S.at(1) == 'S') count = 1; // if(count == 1) count = 0; cout << count << endl; }
[ "literal.number.change", "assignment.value.change" ]
281,605
281,606
u619864358
cpp
p02582
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[0] == 'R' && s[1] == 'R' && s[2] == 'R') cout << 3; else if (s[0] == 'R' && s[2] == 'R') cout << 1 << endl; else if (s[0] == 'R' && s[1] == 'R') cout << 2 << endl; else if (s[1] == 'R' && s[2] == 'R') cout << 2...
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[0] == 'R' && s[1] == 'R' && s[2] == 'R') cout << 3; else if (s[0] == 'R' && s[2] == 'R') cout << 1 << endl; else if (s[0] == 'R' && s[1] == 'R') cout << 2 << endl; else if (s[1] == 'R' && s[2] == 'R') cout <<...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
281,611
281,610
u390580376
cpp
p02582
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; auto res = 0; auto maxRes = 0; for (auto &&value : s) { if (value == 'R') res++; else res = 0; if (maxRes < res) maxRes = res; } cout << res; }
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; auto res = 0; auto maxRes = 0; for (auto &&value : s) { if (value == 'R') res++; else res = 0; if (maxRes < res) maxRes = res; } cout << maxRes; }
[ "identifier.change", "io.output.change" ]
281,612
281,613
u901678655
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; int ans = 0, mx = 0; cin >> s; for (int i = 0; i < 2; i++) { if (s[i] == 'S') { mx = max(mx, ans); ans = 0; } else ans++; } cout << max(mx, ans) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; int ans = 0, mx = 0; cin >> s; for (int i = 0; i < 3; i++) { if (s[i] == 'S') { mx = max(mx, ans); ans = 0; } else ans++; } cout << max(mx, ans) << endl; }
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
281,616
281,617
u288181134
cpp
p02582
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using ll = long long; using uint = unsigned int; using graph = std::vector<std::vector<ll>>; using wGraph = std::vector<std::vector<std::pair<l...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using ll = long long; using uint = unsigned int; using graph = std::vector<std::vector<ll>>; using wGraph = std::vector<std::vector<std::pair<l...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,638
281,639
u204973596
cpp
p02582
#include <bits/stdc++.h> typedef long long ll; #define mod 1000000007 #define INF 1000000000 #define endl "\n" #define all(s) s.begin(), s.end() #define pb push_back #define uno unordered_map #define pi 3.1415926536 #define dig(a) fixed << setprecision(a) #define w(zz) ...
#include <bits/stdc++.h> typedef long long ll; #define mod 1000000007 #define INF 1000000000 #define endl "\n" #define all(s) s.begin(), s.end() #define pb push_back #define uno unordered_map #define pi 3.1415926536 #define dig(a) fixed << setprecision(a) #define w(zz) ...
[ "control_flow.branch.else.add" ]
281,646
281,647
u733519632
cpp
p02582
#include <bits/stdc++.h> #define LOCAL using namespace std; #ifdef LOCAL #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) #else #define trace(...) 42 #endif template <typename Arg1> void __f(const char *name, Arg1 &&arg1) { cerr << name << ": " << arg1 << endl; } template <typename Arg1, typename... Args> void __f...
#include <bits/stdc++.h> #define LOCAL using namespace std; #ifdef LOCAL #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) #else #define trace(...) 42 #endif template <typename Arg1> void __f(const char *name, Arg1 &&arg1) { cerr << name << ": " << arg1 << endl; } template <typename Arg1, typename... Args> void __f...
[ "identifier.change", "io.output.change" ]
281,650
281,649
u908627173
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define ll long long int #define mod 1000000007 int main() { ios_base::sync_with_stdio(false); ll t, n; string s; cin >> s; if (s[0] == 'R' && s[1] == 'R' && s[2] == 'R') cout << 3 << endl; else if ((s[0] == 'R' && s[1] == 'R') || (s[1] == 'R' && s[2] == 'R'...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define mod 1000000007 int main() { ios_base::sync_with_stdio(false); ll t, n; string s; cin >> s; if (s[0] == 'R' && s[1] == 'R' && s[2] == 'R') cout << 3 << endl; else if ((s[0] == 'R' && s[1] == 'R') || (s[1] == 'R' && s[2] == 'R'...
[ "literal.number.change", "io.output.change" ]
281,653
281,654
u656433256
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[0] == 'R') { if (s[1] == 'R') { if (s[2] == 'R') { cout << '3'; return 0; } else { cout << '2'; return 0; } } else { cout << '1'; return 0; } } else { ...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[0] == 'R') { if (s[1] == 'R') { if (s[2] == 'R') { cout << '3'; return 0; } else { cout << '2'; return 0; } } else { cout << '1'; return 0; } } else { ...
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
281,659
281,660
u455086504
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s == "RRR") { cout << 3 << endl; } if (s == "RRS" || s == "SRR") { cout << 2 << endl; } if (s == "SSS") { cout << 0 << endl; } else { cout << 1 << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s == "RRR") { cout << 3 << endl; } else if (s == "RRS" || s == "SRR") { cout << 2 << endl; } else if (s == "SSS") { cout << 0 << endl; } else { cout << 1 << endl; } return 0; }
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
281,663
281,664
u678480555
cpp
p02582
// Author: master19 #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long int #define ff first #define ss second #define pb push_back #define endl "\n" #define PI acos(-1.0) #define mod 1000000007LL /...
// Author: master19 #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long int #define ff first #define ss second #define pb push_back #define endl "\n" #define PI acos(-1.0) #define mod 1000000007LL /...
[ "identifier.change", "io.output.change" ]
281,684
281,685
u436916500
cpp
p02582
// Author: master19 #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long int #define ff first #define ss second #define pb push_back #define endl "\n" #define PI acos(-1.0) #define mod 1000000007LL /...
// Author: master19 #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long int #define ff first #define ss second #define pb push_back #define endl "\n" #define PI acos(-1.0) #define mod 1000000007LL /...
[ "identifier.change", "io.output.change" ]
281,686
281,685
u436916500
cpp
p02582
/* ID: varunra2 LANG: C++ TASK: nondec */ #include <bits/stdc++.h> using namespace std; #ifdef DEBUG #include "lib/debug.h" #define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__) #pragma GCC diagnostic ignored "-Wsign-compare" //#pragma GCC diagnostic ignored "-Wunused-parameter" //#pragma GCC...
/* ID: varunra2 LANG: C++ TASK: nondec */ #include <bits/stdc++.h> using namespace std; #ifdef DEBUG #include "lib/debug.h" #define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__) #pragma GCC diagnostic ignored "-Wsign-compare" //#pragma GCC diagnostic ignored "-Wunused-parameter" //#pragma GCC...
[ "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add", "assignment.add" ]
281,687
281,688
u848302027
cpp
p02582
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { string s; cin >> s; char p = (s.at(0) == 'R'); char q = (s.at(1) == 'R'); char r = (s.at(2) == 'R'); if (p && q && r) { cout << 3 << endl; } else if ((p && q) || (p && r)) { cout << 2 << endl; } else if (p || q |...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { string s; cin >> s; bool p = (s.at(0) == 'R'); bool q = (s.at(1) == 'R'); bool r = (s.at(2) == 'R'); if (p && q && r) { cout << 3 << endl; } else if ((p && q) || (q && r)) { cout << 2 << endl; } else if (p || q |...
[ "variable_declaration.type.primitive.change", "identifier.change", "control_flow.branch.if.condition.change" ]
281,693
281,692
u506422964
cpp
p02582
#include <algorithm> #include <iostream> #include <map> #include <queue> #include <set> #include <vector> using namespace std; #define ll long long #define pb push_back #define pll pair<ll, ll> #define mll map<ll, ll> #define pii pair<int, int> #define rep(i, n) for (int i = 0; i < n; i++) #define All(x, v) for (auto x...
#include <algorithm> #include <iostream> #include <map> #include <queue> #include <set> #include <vector> using namespace std; #define ll long long #define pb push_back #define pll pair<ll, ll> #define mll map<ll, ll> #define pii pair<int, int> #define rep(i, n) for (int i = 0; i < n; i++) #define All(x, v) for (auto x...
[ "control_flow.branch.if.condition.change" ]
281,701
281,702
u578777389
cpp
p02582
//#include<bits/stdc++.h> #include <algorithm> #include <cmath> #include <iostream> #include <queue> #include <set> #include <vector> /* #include <boost/multiprecision/cpp_dec_float.hpp> #include<boost/multiprecision/cpp_int.hpp> #include <boost/rational.hpp> namespace mp = boost::multiprecision; using Real = mp::numb...
//#include<bits/stdc++.h> #include <algorithm> #include <cmath> #include <iostream> #include <queue> #include <set> #include <vector> /* #include <boost/multiprecision/cpp_dec_float.hpp> #include<boost/multiprecision/cpp_int.hpp> #include <boost/rational.hpp> namespace mp = boost::multiprecision; using Real = mp::numb...
[]
281,703
281,704
u853817705
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define int long long #define endl "\n" #define Endl "\n" #define in(n) \ int n; \ cin >> n; #define take(v, n) ...
#include <bits/stdc++.h> using namespace std; #define int long long #define endl "\n" #define Endl "\n" #define in(n) \ int n; \ cin >> n; #define take(v, n) ...
[ "call.add", "call.arguments.add" ]
281,747
281,746
u419699727
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int ans = 0; int tmp = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') ans++; else { tmp = ans; ans = 0; } } cout << max(ans, tmp) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int ans = 0; int tmp = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') ans++; else { tmp = max(tmp, ans); ans = 0; } } cout << max(ans, tmp) << endl; }
[ "call.add", "call.arguments.change" ]
281,762
281,763
u735499035
cpp
p02582
#include "bits/stdc++.h" using namespace std; #define ll long long #define loop(i, x, n) for (ll i = x; i < n; i++) #define loopr(i, x, n) for (ll i = n - 1; i >= x; i--) #define S(v) sort(v.begin(), v.end()); #define ff first #define ss second int main() { // freopen("in.txt", "r", stdin); string s; cin >> s; i...
#include "bits/stdc++.h" using namespace std; #define ll long long #define loop(i, x, n) for (ll i = x; i < n; i++) #define loopr(i, x, n) for (ll i = n - 1; i >= x; i--) #define S(v) sort(v.begin(), v.end()); #define ff first #define ss second int main() { // freopen("in.txt", "r", stdin); string s; cin >> s; i...
[ "control_flow.branch.if.condition.change" ]
281,767
281,768
u837544459
cpp
p02582
#include <bits/stdc++.h> #define ll long long int #define nl '\n' using namespace std; int main(void) { ll t, x, y, n, m, mx = 0; string s; cin >> s; int cnt = 0; if (s == "RRR") cnt = 3; else if (s == "SSS") cnt = 0; else if (s == "RRs") cnt = 2; else if (s == "SRR") cnt = 2; else ...
#include <bits/stdc++.h> #define ll long long int #define nl '\n' using namespace std; int main(void) { ll t, x, y, n, m, mx = 0; string s; cin >> s; int cnt = 0; if (s == "RRR") cnt = 3; else if (s == "SSS") cnt = 0; else if (s == "RRS") cnt = 2; else if (s == "SRR") cnt = 2; else ...
[ "literal.string.change", "literal.string.case.change", "control_flow.branch.if.condition.change" ]
281,774
281,775
u359155363
cpp
p02582
#include <bits/stdc++.h> #define F first #define S second #define ll long long int #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define tests \ int t; \...
#include <bits/stdc++.h> #define F first #define S second #define ll long long int #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define tests \ int t; \...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
281,776
281,777
u286694248
cpp
p02582
#include <bits/stdc++.h> using namespace std; using graph = vector<vector<int>>; typedef long long ll; typedef long double ld; typedef pair<int, int> P; const ll mod = 1000000007; const ll INF = 1e+14; #define rep(i, n) for (int i = 0; i < n; i++) #define per(i, n) for (int i = n - 1; i >= 0; i--) #define Rep(i, sta, n...
#include <bits/stdc++.h> using namespace std; using graph = vector<vector<int>>; typedef long long ll; typedef long double ld; typedef pair<int, int> P; const ll mod = 1000000007; const ll INF = 1e+14; #define rep(i, n) for (int i = 0; i < n; i++) #define per(i, n) for (int i = n - 1; i >= 0; i--) #define Rep(i, sta, n...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,780
281,781
u726501606
cpp
p02582
#include <bits/stdc++.h> #define int long long #define rep(i, a, b) for (int i = a; i < b; i += 1) #define reps(i, a, b) for (int i = a; i >= b; i -= 1) #define vi vector<int> #define vvi vector<vector<int>> #define pb push_back #define pi pair<int, int> #define mp make_pair #define ff first #define ss second #define i...
#include <bits/stdc++.h> #define int long long #define rep(i, a, b) for (int i = a; i < b; i += 1) #define reps(i, a, b) for (int i = a; i >= b; i -= 1) #define vi vector<int> #define vvi vector<vector<int>> #define pb push_back #define pi pair<int, int> #define mp make_pair #define ff first #define ss second #define i...
[ "assignment.variable.change", "identifier.change" ]
281,785
281,786
u547231875
cpp
p02582
#include <bits/stdc++.h> #define endl "\n" #define ll long long int #define ain cin >> #define aout cout << #define avec vector<int> #define aloop(i, k, n) for (int i = k; i < n; i++) using namespace std; int error(string s) { if (count(s.begin(), s.end(), 'R') == 0) return 0; // no R if (count(s.begin(), s.en...
#include <bits/stdc++.h> #define endl "\n" #define ll long long int #define ain cin >> #define aout cout << #define avec vector<int> #define aloop(i, k, n) for (int i = k; i < n; i++) using namespace std; int error(string s) { if (count(s.begin(), s.end(), 'R') == 0) return 0; // no R if (count(s.begin(), s.en...
[ "control_flow.return.add" ]
281,787
281,788
u124623540
cpp
p02582
#include <iostream> #include <stdio.h> using namespace std; int main() { string S; int count = 0; cin >> S; if (S.at(1) == 'R') { if (S.at(0) == 'R' && S.at(2) == 'R') { count = 3; } else if (S.at(0) == 'S' && S.at(2) == 'S') { count = 0; } else { count = 2; } } else { ...
#include <iostream> #include <stdio.h> using namespace std; int main() { string S; int count = 0; cin >> S; if (S.at(1) == 'R') { if (S.at(0) == 'R' && S.at(2) == 'R') { count = 3; } else if (S.at(0) == 'S' && S.at(2) == 'S') { count = 1; } else { count = 2; } } else { ...
[ "literal.number.change", "assignment.value.change" ]
281,799
281,800
u731535745
cpp
p02582
// warm heart, wagging tail,and a smile just for you! // ███████████ // ███╬╬╬╬╬╬╬╬╬╬███ // ███╬╬╬╬╬████╬╬╬╬╬╬███ // ...
// warm heart, wagging tail,and a smile just for you! // ███████████ // ███╬╬╬╬╬╬╬╬╬╬███ // ███╬╬╬╬╬████╬╬╬╬╬╬███ // ...
[ "assignment.add" ]
281,806
281,807
u239493918
cpp
p02582
/// Bismillahir Rahmanir Rahim // Author: Tanvir Hussain // ICE,NSTU #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; const long long MOD = 1000000007; #pragma GCC optimize("Ofast") #pragma GCC target("avx,avx2,fma") ...
/// Bismillahir Rahmanir Rahim // Author: Tanvir Hussain // ICE,NSTU #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; const long long MOD = 1000000007; #pragma GCC optimize("Ofast") #pragma GCC target("avx,avx2,fma") ...
[ "control_flow.branch.if.condition.change" ]
281,816
281,817
u341368129
cpp
p02582
#include <algorithm> #include <array> #include <climits> #include <cmath> #include <cstdint> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <set> #include <sstream> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> using namespace...
#include <algorithm> #include <array> #include <climits> #include <cmath> #include <cstdint> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <set> #include <sstream> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> using namespace...
[]
281,820
281,821
u741183122
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int sum = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') sum++; } if (sum == 1 || sum == 3) cout << sum; else { if (s[1] == 'R') cout << 2; else cout << 1; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int sum = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') sum++; } if (sum == 1 || sum == 3 || sum == 0) cout << sum; else { if (s[1] == 'R') cout << 2; else cout << 1; } }
[ "control_flow.branch.if.condition.change" ]
281,824
281,825
u790877102
cpp
p02582
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[0] == 'R') { if (s[1] == 'R') { if (s[2] == 'R') { cout << 3 << endl; } else { cout << 2 << endl; } } else { cout << 1 << endl; } } else { if (s[1] == 'R') { if (s[2] =...
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[0] == 'R') { if (s[1] == 'R') { if (s[2] == 'R') { cout << 3 << endl; } else { cout << 2 << endl; } } else { cout << 1 << endl; } } else { if (s[1] == 'R') { if (s[2] =...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,826
281,827
u625548433
cpp
p02582
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { string s; cin >> s; int count = 00; if (s[0] == 'R') { count++; if (s[1] == 'R') { count++; if (s[2] == 'R') { count++; } } else { if (s[1] == 'R') { count++; if (s[2] == 'R...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { string s; cin >> s; int count = 00; if (s[0] == 'R') { count++; if (s[1] == 'R') { count++; if (s[2] == 'R') { count++; } } } else { if (s[1] == 'R') { count++; if (s[2] == 'R')...
[]
281,838
281,839
u488693132
cpp
p02582
#include <iostream> #include <string> using namespace std; int main() { string line; cin >> line; int ans = 0; int cur = 0; if (line[0] == 'R') cur = 1; for (int i = 0; i < line.size(); i++) { if (line[i] == 'R' && line[i - 1] == 'R') { cur++; } if (line[i] == 'R' && line[i - 1] !=...
#include <iostream> #include <string> using namespace std; int main() { string line; cin >> line; int ans = 0; int cur = 0; if (line[0] == 'R') cur = 1; for (int i = 1; i < line.size(); i++) { if (line[i] == 'R' && line[i - 1] == 'R') { cur++; } if (line[i] == 'R' && line[i - 1] !=...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
281,850
281,851
u229350147
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int cnt = 0, ans = 0; for (int i = 0; i < 3; i++) { if (s[i] = 'R') { cnt++; ans = max(cnt, ans); } else { cnt = 0; } } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int cnt = 0, ans = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { cnt++; ans = max(cnt, ans); } else { cnt = 0; } } cout << ans << endl; }
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
281,857
281,858
u392803120
cpp
p02582
#include <iostream> using namespace std; int main(void) { // Your code here! string input; int num = 0; cin >> input; if (input == "RRR") { cout << 3 << endl; } else if (input == "RRS" || "SRR") { cout << 2 << endl; } else if (input == "SSS") { cout << 0 << endl; } else { cout << 1 << en...
#include <iostream> using namespace std; int main(void) { // Your code here! string input; int num = 0; cin >> input; if (input == "RRR") { cout << 3 << endl; } else if (input == "RRS" || input == "SRR") { cout << 2 << endl; } else if (input == "SSS") { cout << 0 << endl; } else { cout <...
[ "control_flow.branch.if.condition.change" ]
281,862
281,863
u437633151
cpp
p02582
#include <iostream> using namespace std; int main() { string s; cin >> s; int a; if (s[0] == 'R') a++; if (s[1] == 'R') a++; if (s[2] == 'R') a++; if (a == 2 && s[1] == 'S') a--; cout << a << "\n"; }
#include <iostream> using namespace std; int main() { string s; cin >> s; int a = 0; if (s[0] == 'R') a++; if (s[1] == 'R') a++; if (s[2] == 'R') a++; if (a == 2 && s[1] == 'S') a--; cout << a << "\n"; }
[ "variable_declaration.value.change" ]
281,870
281,871
u369712616
cpp
p02582
#include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <vector> typedef long long ll; using namespace std; const ll MOD = 10000000...
#include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <vector> typedef long long ll; using namespace std; const ll MOD = 10000000...
[ "control_flow.branch.else.add" ]
281,875
281,876
u334624175
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int k = 0; int ma; for (int i = 0; i < 3; i++) { if (s[i] == 'R') k++; else k = 0; ma = max(ma, k); } cout << ma; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int k = 0; int ma = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') k++; else k = 0; ma = max(ma, k); } cout << ma; }
[ "variable_declaration.value.change" ]
281,883
281,884
u610120691
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); string s; cin >> s; int cnt = 0, mx = -1; for (unsigned int i = 0; i < s.size(); i++) { if (s.at(i) == 'R') { cnt++; mx = max(mx, cnt); } else { cnt = 0; } } ...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); string s; cin >> s; int cnt = 0, mx = 0; for (unsigned int i = 0; i < s.size(); i++) { if (s.at(i) == 'R') { cnt++; mx = max(mx, cnt); } else { cnt = 0; } } ...
[ "literal.number.change", "variable_declaration.value.change" ]
281,887
281,888
u750143627
cpp
p02582
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; int main() { string s; int cnt = 0; int renzoku = 0; cin >> s; for (int i = 0; i < 3; ++i) { if (s[i] == 'R') { renzoku++; } else if (s[i] != 'R' && renzoku != 0) { cnt = renzoku; renzoku...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; int main() { string s; int cnt = 0; int renzoku = 0; cin >> s; for (int i = 0; i < 3; ++i) { if (s[i] == 'R') { renzoku++; cnt = renzoku; } else if (s[i] != 'R' && renzoku != 0) { cnt = r...
[ "assignment.add" ]
281,905
281,906
u311003976
cpp