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
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; int count = 0, result = 0; cin >> s; for (char c : s) { if (c == 'R') count++; else count = 0; result = max(result, count); } cout << count; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; int count = 0, result = 0; cin >> s; for (char c : s) { if (c == 'R') count++; else count = 0; result = max(result, count); } cout << result; return 0; }
[ "identifier.change", "io.output.change" ]
281,918
281,919
u073854619
cpp
p02582
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; n > i; ++i) #define MOD 1000000007 using namespace std; using ll = int64_t; using pii = pair<int, int>; using vi = vector<int>; using VI = vector<ll>; using vis = vector<string>; using vvi = vector<vi>; int gcd(int a, int b) { if (a % b == 0) return b; ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; n > i; ++i) #define MOD 1000000007 using namespace std; using ll = int64_t; using pii = pair<int, int>; using vi = vector<int>; using VI = vector<ll>; using vis = vector<string>; using vvi = vector<vi>; int gcd(int a, int b) { if (a % b == 0) return b; ...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
281,932
281,933
u270535768
cpp
p02582
#include <iostream> using namespace std; int main() { int a = 0; string S; cin >> S; if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') a = 1; if (S[0] == 'R' && S[1] == 'R' || S[1] == 'R' && S[2] == 'R') a = 2; if (S[0] == 'R' && S[1] == 'R' && S[3] == 'R') a = 3; cout << a << endl; }
#include <iostream> using namespace std; int main() { int a = 0; string S; cin >> S; if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') a = 1; if ((S[0] == 'R' && S[1] == 'R') || (S[1] == 'R' && S[2] == 'R')) a = 2; if (S[0] == 'R' && S[1] == 'R' && S[2] == 'R') a = 3; cout << a << endl; }
[ "control_flow.branch.if.condition.change", "literal.number.change", "variable_access.subscript.index.change" ]
281,936
281,937
u474377871
cpp
p02582
#include <bits/stdc++.h> #define lli long long int using namespace std; int main() { string s; cin >> s; int count = 0; int counts = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { count++; } else { count = 0; } counts = max(counts, count); } // cout<<counts<<endl; cout ...
#include <bits/stdc++.h> #define lli long long int using namespace std; int main() { string s; cin >> s; int count = 0; int counts = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { count++; } else { count = 0; } counts = max(counts, count); } // cout<<counts<<endl; cout ...
[ "identifier.change", "io.output.change" ]
281,944
281,945
u009025108
cpp
p02582
#include <algorithm> #include <bitset> #include <cfenv> #include <cmath> #include <cstdlib> #include <fstream> #include <iomanip> #include <ios> #include <iosfwd> #include <iostream> #include <istream> #include <iterator> #include <map> #include <numeric> #include <ostream> #include <queue> #include <random> #include <...
#include <algorithm> #include <bitset> #include <cfenv> #include <cmath> #include <cstdlib> #include <fstream> #include <iomanip> #include <ios> #include <iosfwd> #include <iostream> #include <istream> #include <iterator> #include <map> #include <numeric> #include <ostream> #include <queue> #include <random> #include <...
[ "literal.string.change", "io.output.change" ]
281,946
281,947
u557656621
cpp
p02582
#include <bits/stdc++.h> using namespace std; void solve(std::string S) { if (S == "RRR") { cout << 3 << endl; return; } if (S == "RRS" || S == "RRS") { cout << 2 << endl; return; } if (S == "SSS") { cout << 0 << endl; return; } cout << 1 << endl; } // Generated by 1.1.7.1 https:...
#include <bits/stdc++.h> using namespace std; void solve(std::string S) { if (S == "RRR") { cout << 3 << endl; return; } if (S == "RRS" || S == "SRR") { cout << 2 << endl; return; } if (S == "SSS") { cout << 0 << endl; return; } cout << 1 << endl; } // Generated by 1.1.7.1 https:...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,950
281,951
u205561862
cpp
p02582
#include <iostream> #include <stdio.h> #include <string.h> using namespace std; int main() { char s[3]; cin >> s; int counter = 0, max_counter = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'S') { counter++; } else { counter = 0; } if (max_counter <= counter) { max_counter =...
#include <iostream> #include <stdio.h> #include <string.h> using namespace std; int main() { char s[3]; cin >> s; int counter = 0, max_counter = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { counter++; } else { counter = 0; } if (max_counter <= counter) { max_counter =...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,965
281,966
u273283768
cpp
p02582
// This is free and unencumbered software released into the public domain. // Anyone is free to copy, modify, publish, use, compile, sell, or // distribute this software, either in source code form or as a compiled // binary, for any purpose, commercial or non-commercial, and by any // means. // In jurisdictions that...
// This is free and unencumbered software released into the public domain. // Anyone is free to copy, modify, publish, use, compile, sell, or // distribute this software, either in source code form or as a compiled // binary, for any purpose, commercial or non-commercial, and by any // means. // In jurisdictions that...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
281,967
281,968
u828706986
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { #ifdef LOCAL freopen("in", "r", stdin); #endif // LOCAL ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s == "SSS") cout << 3 << endl; else if (s == "SSR" || s == "RSS") cout << 2 << endl; else if (s == "SSS") cout << ...
#include <bits/stdc++.h> using namespace std; int main() { #ifdef LOCAL freopen("in", "r", stdin); #endif // LOCAL ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s == "RRR") cout << 3 << endl; else if (s == "RRS" || s == "SRR") cout << 2 << endl; else if (s == "SSS") cout << ...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,969
281,970
u209067041
cpp
p02582
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using namespace std; int main() { string s; cin >> s; int cnt = 0; int ans = 0; rep(i, (int)s.size()) { if (s[i] == 'S') { cnt++; ans = cnt; } else cnt = 0; } cout << ans; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using namespace std; int main() { string s; cin >> s; int cnt = 0; int ans = 0; rep(i, (int)s.size()) { if (s[i] == 'R') { cnt++; ans = cnt; } else cnt = 0; } cout << ans; }
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,975
281,976
u020933954
cpp
p02582
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using namespace std; int main() { string s; cin >> s; int cnt = 0; int ans = 0; rep(i, (int)s.size() - 1) { if (s[i] == 'S') { cnt++; ans = cnt; } else cnt = 0; } cout << ans; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using namespace std; int main() { string s; cin >> s; int cnt = 0; int ans = 0; rep(i, (int)s.size()) { if (s[i] == 'R') { cnt++; ans = cnt; } else cnt = 0; } cout << ans; }
[ "expression.operation.binary.remove", "literal.string.change", "control_flow.branch.if.condition.change" ]
281,977
281,976
u020933954
cpp
p02582
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using namespace std; int main() { string s; cin >> s; int cnt = 0; int ans = 0; rep(i, s.size() - 1) { if (s[i] == 'S') { cnt++; ans = cnt; } else cnt = 0; } cout << ans; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using namespace std; int main() { string s; cin >> s; int cnt = 0; int ans = 0; rep(i, (int)s.size()) { if (s[i] == 'R') { cnt++; ans = cnt; } else cnt = 0; } cout << ans; }
[ "expression.operation.binary.remove", "literal.string.change", "control_flow.branch.if.condition.change" ]
281,978
281,976
u020933954
cpp
p02582
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using namespace std; int main() { string s; cin >> s; int cnt = 0; int ans = 0; rep(i, s.size()) { if (s[i] == 'S') { cnt++; ans = cnt; } else cnt = 0; } cout << ans; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using namespace std; int main() { string s; cin >> s; int cnt = 0; int ans = 0; rep(i, (int)s.size()) { if (s[i] == 'R') { cnt++; ans = cnt; } else cnt = 0; } cout << ans; }
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
281,979
281,976
u020933954
cpp
p02582
#include <bits/stdc++.h> #include <bitset> #define MOD 1000000007 #define md 998244353 #define INF LLONG_MAX #define F first #define S second #define yes cout << "YES\n"; #define no cout << "NO\n"; #define sz(x) (long long)x.size() #define vi vector<int> #define vll vector<long long> #define vpl vector<pair<long long, ...
#include <bits/stdc++.h> #include <bitset> #define MOD 1000000007 #define md 998244353 #define INF LLONG_MAX #define F first #define S second #define yes cout << "YES\n"; #define no cout << "NO\n"; #define sz(x) (long long)x.size() #define vi vector<int> #define vll vector<long long> #define vpl vector<pair<long long, ...
[ "call.add", "call.arguments.add" ]
281,980
281,981
u798197860
cpp
p02582
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int cnt = 1; int rcnt = 0; for (int i = 0; i <= 2; i++) { if (s[i] == 'R') rcnt++; if (s[i] == 'R' && s[i + 1] == 'R' && s[i] < 2) cnt++; } if (rcnt == 0) cnt = 0; cout << cnt << endl; r...
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int cnt = 1; int rcnt = 0; for (int i = 0; i <= 2; i++) { if (s[i] == 'R') rcnt++; if (s[i] == 'R' && s[i + 1] == 'R' && i < 2) cnt++; } if (rcnt == 0) cnt = 0; cout << cnt << endl; retu...
[ "control_flow.loop.for.condition.change", "control_flow.branch.if.condition.change" ]
281,984
281,985
u469480802
cpp
p02582
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int cnt = 1; int rcnt = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') rcnt++; if (s[i] == 'R' && s[i + 1] == 'R' && s[i] < 3) cnt++; } if (rcnt == 0) cnt = 0; cout << cnt << endl; re...
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int cnt = 1; int rcnt = 0; for (int i = 0; i <= 2; i++) { if (s[i] == 'R') rcnt++; if (s[i] == 'R' && s[i + 1] == 'R' && i < 2) cnt++; } if (rcnt == 0) cnt = 0; cout << cnt << endl; retu...
[ "control_flow.loop.for.condition.change", "control_flow.branch.if.condition.change", "literal.number.change" ]
281,987
281,985
u469480802
cpp
p02582
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int cnt = 1; int rcnt = 0; for (int i = 0; i < 2; i++) { if (s[i] == 'R') rcnt++; if (s[i] == 'R' && s[i + 1] == 'R') cnt++; } if (rcnt == 0) cnt = 0; cout << cnt << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int cnt = 1; int rcnt = 0; for (int i = 0; i <= 2; i++) { if (s[i] == 'R') rcnt++; if (s[i] == 'R' && s[i + 1] == 'R' && i < 2) cnt++; } if (rcnt == 0) cnt = 0; cout << cnt << endl; retu...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
281,988
281,985
u469480802
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { char s[4]; cin >> s; int c = 1; int m = 1; if (s[0] == s[1] && s[1] == s[2] && s[0] == 'R') cout << 3 << endl; else if (s[0] == s[1] && s[0] == 'R') cout << 2 << endl; // else if(s[0]==s[2] && s[0]=='R') cout<<2<<endl; else if (s[1] == ...
#include <bits/stdc++.h> using namespace std; int main() { char s[4]; cin >> s; int c = 1; int m = 1; if (s[0] == s[1] && s[1] == s[2] && s[0] == 'R') cout << 3 << endl; else if (s[0] == s[1] && s[0] == 'R') cout << 2 << endl; // else if(s[0]==s[2] && s[0]=='R') cout<<2<<endl; else if (s[1] == ...
[ "literal.number.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
281,989
281,990
u371607894
cpp
p02582
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<bool> vb; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define INT(str) stoi((str), 0) #define INTB(str) stoi((str), 0, 2) // 2進数の文字列を int に // cout << fixed << setprecision(1...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<bool> vb; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define INT(str) stoi((str), 0) #define INTB(str) stoi((str), 0, 2) // 2進数の文字列を int に // cout << fixed << setprecision(1...
[ "call.add", "call.arguments.change" ]
281,991
281,992
u361433095
cpp
p02582
#include "bits/stdc++.h" #pragma warning(disable : 4996) typedef long long ll; #define all(x) (x).begin(), (x).end() // sortなどの引数を省略 #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define max3(x, y, z) max(x, max(y, z)) #define min3(x, y, z) min(x, min(y, z)) #ifdef _MSC_FULL_VER //デバッグ出力 #define dout cout #defi...
#include "bits/stdc++.h" #pragma warning(disable : 4996) typedef long long ll; #define all(x) (x).begin(), (x).end() // sortなどの引数を省略 #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define max3(x, y, z) max(x, max(y, z)) #define min3(x, y, z) min(x, min(y, z)) #ifdef _MSC_FULL_VER //デバッグ出力 #define dout cout #defi...
[ "literal.number.change", "io.output.change" ]
281,997
281,998
u043964516
cpp
p02582
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <string.h> #include <vector> using namespace std; #define set_precision cout << fixed << setprecision(10) #define rep(i, a, b) for (int i = a; i < b; i++) #define repb(i, a, ...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <string.h> #include <vector> using namespace std; #define set_precision cout << fixed << setprecision(10) #define rep(i, a, b) for (int i = a; i < b; i++) #define repb(i, a, ...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
282,011
282,012
u547433112
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 < s.size(); i++) { if (s[i] == 'R') tmp++; else { ans = max(ans, tmp); tmp = 0; } } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int ans = 0; int tmp = 0; for (int i = 0; i < s.size(); i++) { if (s[i] == 'R') tmp++; else { ans = max(ans, tmp); tmp = 0; } } cout << max(ans, tmp) << endl; return 0; }
[ "call.add", "call.arguments.add" ]
282,014
282,015
u891178744
cpp
p02582
/* -------------- | / | | / | | / | * |/ | | ------ * | | | | / \ | | |\ | | | |\ | \ ...
/* -------------- | / | | / | | / | * |/ | | ------ * | | | | / \ | | |\ | | | |\ | \ ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
282,033
282,034
u132365288
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S.at(1) == 'S') { if (S.at(0) == 'R' || S.at(2) == 'R') { cout << '1' << endl; } else { cout << '0' << endl; } } else if (S.at(0) == 'R') { if (S.at(2) == 'R') { cout << '3' << endl; } els...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S.at(1) == 'S') { if (S.at(0) == 'R' || S.at(2) == 'R') { cout << '1' << endl; } else { cout << '0' << endl; } } else if (S.at(0) == 'R') { if (S.at(2) == 'R') { cout << '3' << endl; } els...
[ "literal.string.change", "io.output.change" ]
282,037
282,038
u063158468
cpp
p02582
#include <iostream> #include <string> using namespace std; int main() { int res; string s; cin >> s; if (s == "SSS") res = 0; else if (s == "RRR") res = 3; else if (s[1] == 'S') res = 1; else res = 2; cout << res << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main() { int res; string s; cin >> s; if (s == "SSS") res = 0; else if (s == "RRR") res = 3; else if (s == "SRS" || s[1] == 'S') res = 1; else res = 2; cout << res << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
282,047
282,048
u784283302
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.at(1) == 'R') { if (s.at(0) == 'R' && s.at(2) == 'R') { cout << 3 << endl; return 0; } else if (s.at(0) == 'R' || s.at(2) == 'R') { cout << 2 << endl; return 0; } else { cout << 1 << endl...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.at(1) == 'R') { if (s.at(0) == 'R' && s.at(2) == 'R') { cout << 3 << endl; return 0; } else if (s.at(0) == 'R' || s.at(2) == 'R') { cout << 2 << endl; return 0; } else { cout << 1 << endl...
[ "io.output.change" ]
282,053
282,054
u856957535
cpp
p02582
//#define _GLIBCXX_DEBUG #include <algorithm> #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(a) (a).begin(), (a).end() using namespace std; using Graph = vector<vector<int>>; typedef long long ll; const int mod = 1e+9 + 7; int main() { string s; cin >> s; if (s == "RRS" || s...
//#define _GLIBCXX_DEBUG #include <algorithm> #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(a) (a).begin(), (a).end() using namespace std; using Graph = vector<vector<int>>; typedef long long ll; const int mod = 1e+9 + 7; int main() { string s; cin >> s; if (s == "RRS" || s...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
282,063
282,064
u138273120
cpp
p02582
#include <stdio.h> #define reg register #define ri reg int #define rep(i, x, y) for (ri i = x; i <= y; ++i) #define nrep(i, x, y) for (ri i = x; i >= y; --i) #define DEBUG 1 #define ll long long #define max(i, j) (i) > (j) ? (i) : (j) #define min(i, j) (i) < (j) ? (i) : (j) struct IO { #define MAXSIZE (1 << 20) #define...
#include <stdio.h> #define reg register #define ri reg int #define rep(i, x, y) for (ri i = x; i <= y; ++i) #define nrep(i, x, y) for (ri i = x; i >= y; --i) #define DEBUG 1 #define ll long long #define max(i, j) (i) > (j) ? (i) : (j) #define min(i, j) (i) < (j) ? (i) : (j) struct IO { #define MAXSIZE (1 << 20) #define...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
282,078
282,079
u831003634
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { char f, s, t; int ans = 0; cin >> f >> s >> t; if (f == s && f == t && f == 'R') ans = 3; else if ((f == s && f == 'R') || (s == t && s == 'R')) { ans = 2; } else if (f == 'R' || s == 'R' || t == 'R') { ans == 1; } else ans = 0; ...
#include <bits/stdc++.h> using namespace std; int main() { char f, s, t; int ans = 0; cin >> f >> s >> t; if (f == s && f == t && f == 'R') ans = 3; else if ((f == s && f == 'R') || (s == t && s == 'R')) { ans = 2; } else if (f == 'R' || s == 'R' || t == 'R') { ans = 1; } else ans = 0; ...
[ "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo" ]
282,084
282,085
u223019891
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { char f, s, t; int ans = 0; cin >> f >> s >> t; if (f == s && f == t && f == 'R') ans = 3; else if ((f == s && f == 'R') || (s == t && s == 'R')) { ans = 2; } else if (f == 'R' || s == 'R' || t == 'R') ans == 1; else ans = 0; cou...
#include <bits/stdc++.h> using namespace std; int main() { char f, s, t; int ans = 0; cin >> f >> s >> t; if (f == s && f == t && f == 'R') ans = 3; else if ((f == s && f == 'R') || (s == t && s == 'R')) { ans = 2; } else if (f == 'R' || s == 'R' || t == 'R') { ans = 1; } else ans = 0; ...
[ "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo" ]
282,086
282,085
u223019891
cpp
p02582
// Coded by Abhijay Mitra #include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <iterator> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <vector> // ...
// Coded by Abhijay Mitra #include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <iterator> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <vector> // ...
[ "literal.number.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
282,087
282,088
u340042599
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; int ans = 0, cnt = 0; for (int i = 0; i < s.size(); i++) { if (s[i] == 'R') ans++; else { cnt = max(ans, cnt); ans = 0; } } cnt = max(cnt, ans); cout << cnt << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int ans = 0, cnt = 0; for (int i = 0; i < s.size(); i++) { if (s[i] == 'R') ans++; else { cnt = max(ans, cnt); ans = 0; } } cnt = max(cnt, ans); cout << cnt << endl; return 0; }
[]
282,099
282,100
u164104616
cpp
p02582
#include "algorithm" #include "bitset" #include "cassert" #include "climits" #include "cmath" #include "cstdio" #include "ctime" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "str...
#include "algorithm" #include "bitset" #include "cassert" #include "climits" #include "cmath" #include "cstdio" #include "ctime" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "str...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
282,101
282,102
u468700753
cpp
p02582
#include <iostream> using namespace std; int main() { char s[3]; cin >> s; int Count = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { Count++; } else if (s[i] != s[i + 1]) { break; } } cout << Count << endl; return 0; }
#include <iostream> using namespace std; int main() { char s[3]; cin >> s; int Count = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { Count++; if (s[i] != s[i + 1]) { break; } } } cout << Count << endl; return 0; }
[]
282,107
282,108
u664865015
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; if (a == "SSS") { cout << 0 << endl; } else if (a == "RRR") { cout << 3 << endl; } else if (a == "RRS" && a == "SRR") { cout << 2 << endl; } else cout << 1 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; if (a == "SSS") { cout << 0 << endl; } else if (a == "RRR") { cout << 3 << endl; } else if (a == "RRS" || a == "SRR") { cout << 2 << endl; } else cout << 1 << endl; }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
282,111
282,112
u651194988
cpp
p02582
#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 ans = 0; if (S.find("SSS") < string::npos) { ans = 3; } else if (S.find("SS") < string::npos) { ans = 2; } else if (S.find("S") < string::npos) { ans = 1; ...
#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 ans = 0; if (S.find("RRR") < string::npos) { ans = 3; } else if (S.find("RR") < string::npos) { ans = 2; } else if (S.find("R") < string::npos) { ans = 1; ...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
282,113
282,114
u231961655
cpp
p02582
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; int cnt; int ans; cnt = 0; for (int i = 0; i < S.length(); ++i) { if (S[i] == 'R') { cnt += 1; if (ans <= cnt) { ans = cnt; } } else cnt = 0; } printf("%d\n", ans); }
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; int cnt; int ans; cnt = 0; ans = 0; for (int i = 0; i < S.length(); ++i) { if (S[i] == 'R') { cnt += 1; if (ans <= cnt) { ans = cnt; } } else cnt = 0; } printf("%d\n", a...
[ "assignment.add" ]
282,123
282,124
u434500430
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define f first #define s second #define pii pair<int, int> #define pb push_back #define mk make_pair #define vi vector<int> int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); string s; cin >...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define f first #define pii pair<int, int> #define pb push_back #define mk make_pair #define vi vector<int> int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); string s; cin >> s; if (s[0] =...
[ "literal.number.change", "io.output.change" ]
282,131
282,132
u040920891
cpp
p02582
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { string s; cin >> s; int c1 = 0, c2 = 0, c3 = 0; for (int i = 0; i < 2; i++) { if (s[i] == 'R' && s[i + 1] == 'R') { c1++; } } for (int i = 0; i < 3; i++) { if (s[i] == 'R') { c2++; } else { c3+...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { string s; cin >> s; int c1 = 0, c2 = 0, c3 = 0; for (int i = 0; i < 2; i++) { if (s[i] == 'R' && s[i + 1] == 'R') { c1++; } } for (int i = 0; i < 3; i++) { if (s[i] == 'R') { c2++; break; } els...
[ "control_flow.break.add" ]
282,133
282,134
u573271270
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int max1 = 0, num = 0; for (int i = 0; i < s.length(); i++) { if (s[i] == 'R') num++; if (s[i] == 'S') { max1 = max(max1, num); num = 0; } } cout << max1; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int max1 = 0, num = 0; for (int i = 0; i < s.length(); i++) { if (s[i] == 'R') num++; if (s[i] == 'S') { max1 = max(max1, num); num = 0; } } cout << max(max1, num); }
[ "call.add", "call.arguments.add" ]
282,135
282,136
u293485489
cpp
p02582
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; using ll = long long; int main() { string s; cin >> s; if (s == "SSS") { cout << 0 << endl; } else if (s == ...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; using ll = long long; int main() { string s; cin >> s; if (s == "SSS") { cout << 0 << endl; } else if (s == ...
[ "expression.operation.binary.remove" ]
282,140
282,141
u237327356
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); string sh; cin >> sh; int S = 0, R = 0; int ocuur = 0; for (int i = 0; i < 3; ++i) { if (sh[i] == 'S') { S++; ocuur = i; } else { R++; } } if (S == 3) cou...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); string sh; cin >> sh; int S = 0, R = 0; int ocuur = 0; for (int i = 0; i < 3; ++i) { if (sh[i] == 'S') { S++; ocuur = i; } else { R++; } } if (S == 3) cou...
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
282,152
282,153
u194181226
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string weather; cin >> weather; vector<char> w(3); for (int i = 0; i < 3; i++) { w[i] = weather[i]; } int days = 0; for (int i = 0; i < 3; i++) { if (w[i] == 'S') { days++; break; } } for (int i = 1; i < 3; i++) { ...
#include <bits/stdc++.h> using namespace std; int main() { string weather; cin >> weather; vector<char> w(3); for (int i = 0; i < 3; i++) { w[i] = weather[i]; } int days = 0; for (int i = 0; i < 3; i++) { if (w[i] == 'R') { days++; break; } } for (int i = 1; i < 3; i++) { ...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
282,169
282,170
u257484853
cpp
p02582
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int n; n = s.size(); int cnt = 0; int ans = 0; for (int i = 0; i < n; i++) { if (s[i] == 'R') cnt++; else cnt = 0; ans = max(ans, cnt); } cout << cnt << endl; retu...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int n; n = s.size(); int cnt = 0; int ans = 0; for (int i = 0; i < n; i++) { if (s[i] == 'R') cnt++; else cnt = 0; ans = max(ans, cnt); } cout << ans << endl; retu...
[ "identifier.change", "io.output.change" ]
282,173
282,174
u225094817
cpp
p02582
#include <iostream> using namespace std; int main() { string s; cin >> s; int ans = 0; int mans; for (int i = 0; i < s.size(); i++) { if (s[i] == 'R') ans++; else ans = 0; mans = max(ans, mans); } cout << mans << endl; return 0; }
#include <iostream> using namespace std; int main() { string s; cin >> s; int ans = 0; int mans = 0; for (int i = 0; i < s.size(); i++) { if (s[i] == 'R') ans++; else ans = 0; mans = max(ans, mans); } cout << mans << endl; return 0; }
[ "variable_declaration.value.change" ]
282,177
282,178
u157363264
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int answer = 0; if (S.at(0) == 'R' && S.at(1) == 'R' && S.at(2) == 'R') { answer = 3; } else if (S.at(1) == 'S') { if (S.at(0) == 'R' || S.at(2) == 'R') { answer = 1; } else answer = 0; } else if (S.at(0...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int answer = 0; if (S.at(0) == 'R' && S.at(1) == 'R' && S.at(2) == 'R') { answer = 3; } else if (S.at(1) == 'S') { if (S.at(0) == 'R' || S.at(2) == 'R') { answer = 1; } else answer = 0; } else if (S.at(0...
[ "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add", "assignment.add" ]
282,183
282,184
u032308915
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int answer = 0; if (S.at(0) == 'R' && S.at(1) == 'R' && S.at(2) == 'R') { answer = 3; } else if (S.at(1) == 'S') { if (S.at(0) == 'R' || S.at(2) == 'R') { answer == 1; } else answer = 0; } else if (S.at(...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int answer = 0; if (S.at(0) == 'R' && S.at(1) == 'R' && S.at(2) == 'R') { answer = 3; } else if (S.at(1) == 'S') { if (S.at(0) == 'R' || S.at(2) == 'R') { answer = 1; } else answer = 0; } else if (S.at(0...
[ "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add", "assignment.add" ]
282,185
282,184
u032308915
cpp
p02582
#include <iostream> #include <string> using namespace std; int main() { string s; int c = 0, max = 0, b = 0; cin >> s; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { b = 0; c++; } else { max = c; c = 0; b = 1; } } if (b == 0) { if (max < c) max = c; ...
#include <iostream> #include <string> using namespace std; int main() { string s; int c = 0, max = 0, b = 0; cin >> s; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { b = 0; c++; } else { if (max < c) max = c; c = 0; b = 1; } } if (b == 0) { if (max <...
[ "control_flow.branch.if.add" ]
282,190
282,191
u546932802
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < N; i++) int main() { string N; int ans = 0; cin >> N; for (int i = 0; i < 2; i++) { if (N[i] == 'R') { ans++; } } if (N == "RSR") { ans = 1; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < N; i++) int main() { string N; int ans = 0; cin >> N; for (int i = 0; i < 3; i++) { if (N[i] == 'R') { ans++; } } if (N == "RSR") { ans = 1; } cout << ans << endl; }
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
282,192
282,193
u266286798
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; int cnt = 0; cin >> s; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { cnt++; } } if (cnt <= 1) { cout << "0" << endl; return 0; } if (s[1] == 'S') { cout << "1" << endl; return 0; } cout << cnt << ...
#include <bits/stdc++.h> using namespace std; int main() { string s; int cnt = 0; cin >> s; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { cnt++; } } if (cnt < 1) { cout << "0" << endl; return 0; } if (s[1] == 'S') { cout << "1" << endl; return 0; } cout << cnt << e...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
282,194
282,195
u788200998
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; int cnt = 0; cin >> s; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { cnt++; } } if (cnt <= 1) { cout << "0" << endl; return 0; } if (s[1] == 'S') { cout << "0" << endl; return 0; } cout << cnt << ...
#include <bits/stdc++.h> using namespace std; int main() { string s; int cnt = 0; cin >> s; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { cnt++; } } if (cnt < 1) { cout << "0" << endl; return 0; } if (s[1] == 'S') { cout << "1" << endl; return 0; } cout << cnt << e...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "io.output.change" ]
282,196
282,195
u788200998
cpp
p02582
// Hey u r too far away to know this // CHIRAGA196 #include <bits/stdc++.h> using namespace std; #define ff first #define pb push_back #define ss second #define IOS \ ios_base::sync_with_stdio(false); \ cin...
// Hey u r too far away to know this // CHIRAGA196 #include <bits/stdc++.h> using namespace std; #define ff first #define pb push_back #define ss second #define IOS \ ios_base::sync_with_stdio(false); \ cin...
[ "assignment.add" ]
282,199
282,200
u003423149
cpp
p02582
// Biscuit_Generator // https://atcoder.jp/contests/abc125/tasks/abc125_a // date: 2020-08-15T19:20:35.753917 #include <bits/stdc++.h> using namespace std; typedef long long ll; #define _overload3(_1, _2, _3, name, ...) name #define _rep(i, n) repi(i, 0, n) #define repi(i, a, b) for (ll i = (ll)a; i < (ll)b; i++) #de...
// Biscuit_Generator // https://atcoder.jp/contests/abc125/tasks/abc125_a // date: 2020-08-15T19:20:35.753917 #include <bits/stdc++.h> using namespace std; typedef long long ll; #define _overload3(_1, _2, _3, name, ...) name #define _rep(i, n) repi(i, 0, n) #define repi(i, a, b) for (ll i = (ll)a; i < (ll)b; i++) #de...
[ "identifier.change", "call.arguments.change" ]
282,205
282,206
u961223096
cpp
p02582
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { string s; cin >> s; ll ans = 0; if (s[0] == 'R' && s[1] == 'R' && s[2] == 'R') { ans = 3; } else if (s[0] == 'R' && s[1] == 'R' || s[1] == 'R' && s[2] == 'R') { ans = 2; } else if (s[0] == 0 || s[1] == 'R' || s[2...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { string s; cin >> s; ll ans = 0; if (s[0] == 'R' && s[1] == 'R' && s[2] == 'R') { ans = 3; } else if (s[0] == 'R' && s[1] == 'R' || s[1] == 'R' && s[2] == 'R') { ans = 2; } else if (s[0] == 'R' || s[1] == 'R' || s...
[ "control_flow.branch.if.condition.change" ]
282,211
282,212
u125051909
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { int c = 0, ans = 0; string s; cin >> s; for (int i = 0; i < s.size(); ++i) { if (s[i] == 'R') { c++; ans = max(ans, c); } else c = 0; } cout << c; }
#include <bits/stdc++.h> using namespace std; int main() { int c = 0, ans = 0; string s; cin >> s; for (int i = 0; i < s.size(); ++i) { if (s[i] == 'R') c++, ans = max(ans, c); else c = 0; } cout << ans; }
[ "identifier.change", "io.output.change" ]
282,213
282,214
u295479997
cpp
p02582
#include <bits/stdc++.h> #define Int long long #define all(x) begin(x), end(x) #define endl "\n" #define cy cout << "YES" << endl #define cn cout << "NO" << endl #define elif else if using namespace std; int main() { string s; cin >> s; int count{}; int real{}; for (size_t i{}; i < 3; i++) { if (s[i] ==...
#include <bits/stdc++.h> #define Int long long #define all(x) begin(x), end(x) #define endl "\n" #define cy cout << "YES" << endl #define cn cout << "NO" << endl #define elif else if using namespace std; int main() { string s; cin >> s; int count{}; int real{1}; for (size_t i{}; i < 3; i++) { if (s[i] =...
[]
282,215
282,216
u553866355
cpp
p02582
#include <bits/stdc++.h> #define Int long long #define all(x) begin(x), end(x) #define endl "\n" #define cy cout << "YES" << endl #define cn cout << "NO" << endl #define elif else if using namespace std; int main() { string s; cin >> s; int count{}; int real{}; for (size_t i{}; i < 3; i++) { if (s[i] ==...
#include <bits/stdc++.h> #define Int long long #define all(x) begin(x), end(x) #define endl "\n" #define cy cout << "YES" << endl #define cn cout << "NO" << endl #define elif else if using namespace std; int main() { string s; cin >> s; int count{}; int real{1}; for (size_t i{}; i < 3; i++) { if (s[i] =...
[ "control_flow.branch.if.replace.add", "control_flow.branch.else_if.replace.remove" ]
282,217
282,216
u553866355
cpp
p02582
#include <cstdio> #include <iostream> using namespace std; int w[10]; int main(void) { string s; int mx = 0; cin >> s; if (s[0] == 'R') w[0] = 1; mx = 1; for (int i = 1; i < 3; i++) { if (s[i] == 'R') { w[i] = w[i - 1] + 1; mx = max(mx, w[i]); } else w[i] = 0; } prin...
#include <cstdio> #include <iostream> using namespace std; int w[10]; int main(void) { string s; int mx = 0; cin >> s; if (s[0] == 'R') { w[0] = 1; mx = 1; } for (int i = 1; i < 3; i++) { if (s[i] == 'R') { w[i] = w[i - 1] + 1; mx = max(mx, w[i]); } else w[i] = 0; }...
[]
282,224
282,225
u959634984
cpp
p02582
#include <cstdio> #include <iostream> using namespace std; int w[10]; int main(void) { string s; int mx = 0; cin >> s; if (s[0] == 'R') w[0] = 1; for (int i = 1; i < 3; i++) { if (s[i] == 'R') { w[i] = w[i - 1] + 1; mx = max(mx, w[i]); } else w[i] = 0; } printf("%d", m...
#include <cstdio> #include <iostream> using namespace std; int w[10]; int main(void) { string s; int mx = 0; cin >> s; if (s[0] == 'R') { w[0] = 1; mx = 1; } for (int i = 1; i < 3; i++) { if (s[i] == 'R') { w[i] = w[i - 1] + 1; mx = max(mx, w[i]); } else w[i] = 0; }...
[ "assignment.add" ]
282,226
282,225
u959634984
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int ans = 0, i, c = 1, sum = 0; for (i = 0; i < 3; i++) { if (s[i] == 'R' && c == 1) { sum++; ans++; } if (s[i] == 'S') { c = 0; ans = 0; } if (s[i] == 'R' && c == 0) { c = 1; s...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int ans = 0, i, c = 1, sum = 0; for (i = 0; i < 3; i++) { if (s[i] == 'R' && c == 1) { sum++; ans++; } if (s[i] == 'S' && i != 2) { c = 0; ans = 0; } if (s[i] == 'R' && c == 0) { c = ...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
282,229
282,230
u960779345
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int count = 0; for (char i : s) { if (i == 'R') { count++; } if (i == 'S' && count > 0) { count--; } } cout << count << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int count = 0; for (char i : s) { if (i == 'R') { count++; } else if (i == 'S' && count > 0) { break; } } cout << count << "\n"; }
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
282,233
282,234
u387034247
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int count = 0; for (char i : s) { if (i == 'R') { count++; } else if (i == 'S' && count > 0) { count--; } } cout << count << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int count = 0; for (char i : s) { if (i == 'R') { count++; } else if (i == 'S' && count > 0) { break; } } cout << count << "\n"; }
[]
282,235
282,234
u387034247
cpp
p02582
#include <iostream> #include <string> using namespace std; int main() { string S; int count = 0; cin >> S; if (S[0] == 'R' && S[1] == 'R' && S[2] == 'R') { count = 3; } else if (S[0] == 'R' && S[1] == 'R' || S[1] == 'R' && S[2] == 'R') { count = 2; } else if (S[0] == 'R' || S[1] == 'R' && S[2] == ...
#include <iostream> #include <string> using namespace std; int main() { string S; int count = 0; cin >> S; if (S[0] == 'R' && S[1] == 'R' && S[2] == 'R') { count = 3; } else if (S[0] == 'R' && S[1] == 'R' || S[1] == 'R' && S[2] == 'R') { count = 2; } else if (S[0] == 'R' || S[1] == 'R' || S[2] == ...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
282,236
282,237
u032315435
cpp
p02582
///******* In the name of Allah *******/// #include <bits/stdc++.h> using namespace std; long int ar[10013]; // long int gcd(long int a, long int b) //{ // if(b==0) // return a; // return gcd(b,a%b); //} // void sieve() //{ // long long int i,j,k = 0; // memset(ar,0,sizeof(ar));+ // ar[1] = 1; /...
///******* In the name of Allah *******/// #include <bits/stdc++.h> using namespace std; long int ar[10013]; // long int gcd(long int a, long int b) //{ // if(b==0) // return a; // return gcd(b,a%b); //} // void sieve() //{ // long long int i,j,k = 0; // memset(ar,0,sizeof(ar));+ // ar[1] = 1; /...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
282,244
282,245
u370844911
cpp
p02582
///******* In the name of Allah *******/// #include <bits/stdc++.h> using namespace std; long int ar[10013]; // long int gcd(long int a, long int b) //{ // if(b==0) // return a; // return gcd(b,a%b); //} // void sieve() //{ // long long int i,j,k = 0; // memset(ar,0,sizeof(ar));+ // ar[1] = 1; /...
///******* In the name of Allah *******/// #include <bits/stdc++.h> using namespace std; long int ar[10013]; // long int gcd(long int a, long int b) //{ // if(b==0) // return a; // return gcd(b,a%b); //} // void sieve() //{ // long long int i,j,k = 0; // memset(ar,0,sizeof(ar));+ // ar[1] = 1; /...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "identifier.change", "io.output.change" ]
282,246
282,245
u370844911
cpp
p02582
#include <iostream> #include <string> using namespace std; int main() { char s[3]; for (int i = 0; i < 3; i++) cin >> s[i]; int num = 0; if (s[0] == 'R') num++; if (s[1] == 'R') num++; if (s[2] == 'R') { if (s[1] == 'R') num++; } cout << num << "\n"; return 0; }
#include <iostream> #include <string> using namespace std; int main() { char s[3]; for (int i = 0; i < 3; i++) cin >> s[i]; int num = 0; if (s[0] == 'R') num++; if (s[1] == 'R') num++; if (s[2] == 'R') { if (s[1] == 'R') num++; else num = 1; } cout << num << "\n"; retu...
[ "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add", "assignment.add" ]
282,247
282,248
u387713983
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); int main() { fast; int h = 0, m = 0; string s; cin >> s; for (int i = 0; i < 2; i++) ...
#include <bits/stdc++.h> using namespace std; #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); int main() { fast; int h = 0, m = 0; string s; cin >> s; for (int i = 0; i < 3; i++) ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
282,255
282,256
u199201328
cpp
p02582
#include <cstdio> const int S = 3; char W[S]; void solve(); int main() { scanf("%s", W); solve(); return 0; } void solve() { int ans = 0; if (W[0] == 'R') { if (W[1] == 'R') { if (W[2] == 'R') { ans = 3; } else { ans = 2; } } else { ans = 1; } } e...
#include <cstdio> const int S = 3; char W[S]; void solve(); int main() { scanf("%s", W); solve(); return 0; } void solve() { int ans = 0; if (W[0] == 'R') { if (W[1] == 'R') { if (W[2] == 'R') { ans = 3; } else { ans = 2; } } else { ans = 1; } } e...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
282,259
282,260
u947115160
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int res, counter = 0; if (s[0] == 'R' && s[1] == 'R' && s[2] == 'R') res = 3; else if (s[0] == 'S' && s[1] == 'S' && s[2] == 'S') res = 0; else if (s[0] == 'R' && s[1] == 'R' && s[2] == 'S') res = 2; else if (s[0]...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int res, counter = 0; if (s[0] == 'R' && s[1] == 'R' && s[2] == 'R') res = 3; else if (s[0] == 'S' && s[1] == 'S' && s[2] == 'S') res = 0; else if (s[0] == 'R' && s[1] == 'R' && s[2] == 'S') res = 2; else if (s[0]...
[ "literal.number.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
282,271
282,272
u779101467
cpp
p02582
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { string s; cin >> s; int ans = 0; rep(i, 2) { if (s[i] != 'S') { if (i == 0) { ans = 1; } else { if (s[i - 1] == 'R') ans++; else ans = 1; ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { string s; cin >> s; int ans = 0; rep(i, s.size()) { if (s[i] != 'S') { if (i == 0) { ans = 1; } else { if (s[i - 1] == 'R') ans++; else ans...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "call.add" ]
282,277
282,278
u815628714
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define fast_io \ ios_base::sync_with_stdio(false); \ cin.tie(nullptr) #define rep(i, x, y) \ for (decl...
#include <bits/stdc++.h> using namespace std; #define fast_io \ ios_base::sync_with_stdio(false); \ cin.tie(nullptr) #define rep(i, x, y) \ for (decl...
[ "literal.number.change", "call.arguments.change", "control_flow.branch.if.condition.change" ]
282,281
282,282
u153767929
cpp
p02582
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pb push_back #define mod 1e9 + 7; #define rep(i, n) for (int i = 0; i < n; i++) #define repa(i, start, end) for (int i = start; i <= end; i++) #define repd(i, start, end) for (int i = start; i >= end; i--) void solve() { string s; cin >> s;...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pb push_back #define mod 1e9 + 7; #define rep(i, n) for (int i = 0; i < n; i++) #define repa(i, start, end) for (int i = start; i <= end; i++) #define repd(i, start, end) for (int i = start; i >= end; i--) void solve() { string s; cin >> s;...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
282,287
282,288
u229019222
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define ll long long int #define newl '\n' bool isprime(ll a) { if (a <= 1) return false; if (a == 2 || a == 3) return true; if (a % 2 == 0 || a % 3 == 0) return false; for (ll i = 5; i * i <= a; i = i + 6) { if (a % i == 0 || a % (i + 2) == 0) ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define newl '\n' bool isprime(ll a) { if (a <= 1) return false; if (a == 2 || a == 3) return true; if (a % 2 == 0 || a % 3 == 0) return false; for (ll i = 5; i * i <= a; i = i + 6) { if (a % i == 0 || a % (i + 2) == 0) ...
[]
282,289
282,290
u501565043
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define ll long long int #define newl '\n' bool isprime(ll a) { if (a <= 1) return false; if (a == 2 || a == 3) return true; if (a % 2 == 0 || a % 3 == 0) return false; for (ll i = 5; i * i <= a; i = i + 6) { if (a % i == 0 || a % (i + 2) == 0) ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define newl '\n' bool isprime(ll a) { if (a <= 1) return false; if (a == 2 || a == 3) return true; if (a % 2 == 0 || a % 3 == 0) return false; for (ll i = 5; i * i <= a; i = i + 6) { if (a % i == 0 || a % (i + 2) == 0) ...
[ "literal.number.change", "variable_declaration.value.change" ]
282,291
282,290
u501565043
cpp
p02582
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) const int INF = 1 << 29; using namespace std; using ll = long long; int main() { 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[2] == 'R') { c...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) const int INF = 1 << 29; using namespace std; using ll = long long; int main() { 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[2] == 'R') { c...
[ "literal.number.change", "io.output.change" ]
282,304
282,305
u629548179
cpp
p02582
#include <bits/stdc++.h> #define FAST \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL) #define PI acos(-1.0) #define sq(n...
#include <bits/stdc++.h> #define FAST \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL) #define PI acos(-1.0) #define sq(n...
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
282,312
282,313
u655298598
cpp
p02582
#include <bits/stdc++.h> #define MAX 100005 #define ll long long #define upperlimit 1000100 #define INF 1e18 #define eps 1e-8 #define endl '\n' #define pcc pair<char, char> #define pii pair<int, int> #define pll pair<ll, ll> #define tr(container, it) \ for (typeof(...
#include <bits/stdc++.h> #define MAX 100005 #define ll long long #define upperlimit 1000100 #define INF 1e18 #define eps 1e-8 #define endl '\n' #define pcc pair<char, char> #define pii pair<int, int> #define pll pair<ll, ll> #define tr(container, it) \ for (typeof(...
[ "call.add", "call.arguments.add" ]
282,314
282,315
u570992262
cpp
p02582
#include <iostream> using namespace std; int main() { string s; int max = 0, now = 0; cin >> s; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { now++; } else { if (max < now) { max = now; } now = 0; } } if (now == 3) { cout << 3 << endl; } else { co...
#include <iostream> using namespace std; int main() { string s; int max = 0, now = 0; cin >> s; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { now++; } else { if (max < now) { max = now; } now = 0; } } if (now > max) { cout << now << endl; } else { ...
[ "identifier.replace.add", "literal.replace.remove", "io.output.change" ]
282,318
282,319
u159602935
cpp
p02582
#include <bits/stdc++.h> #define AndIamIronMan \ ios::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define M 1000000007 #define int128 ...
#include <bits/stdc++.h> #define AndIamIronMan \ ios::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define M 1000000007 #define int128 ...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.change", "call.add" ]
282,322
282,323
u349734031
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define ll long long #define fo(i, n) for (int i = 0; i < n; i++) #define Fo(i, k, n) for (int i = k; i < n; i++) #define MOD 1000000007 #define deb(n) cout << "[ " #n << " = " << n << " ]" << endl; #define FIO ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define fo(i, n) for (int i = 0; i < n; i++) #define Fo(i, k, n) for (int i = k; i < n; i++) #define MOD 1000000007 #define deb(n) cout << "[ " #n << " = " << n << " ]" << endl; #define FIO ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
282,324
282,325
u734831748
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define ll long long #define fo(i, n) for (int i = 0; i < n; i++) #define Fo(i, k, n) for (int i = k; i < n; i++) #define MOD 1000000007 #define deb(n) cout << "[ " #n << " = " << n << " ]" << endl; #define FIO ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define fo(i, n) for (int i = 0; i < n; i++) #define Fo(i, k, n) for (int i = k; i < n; i++) #define MOD 1000000007 #define deb(n) cout << "[ " #n << " = " << n << " ]" << endl; #define FIO ...
[ "identifier.change", "control_flow.branch.if.condition.change", "literal.string.change", "io.output.change" ]
282,326
282,325
u734831748
cpp
p02582
#include <bits/stdc++.h> #include <iostream> using namespace std; typedef long long ll; int main() { string S; cin >> S; if (S[1] == 'R') { if (S[0] == 'R' && S[2] == 'R') { cout << '3'; } else if (S[0] == 'R' || S[2] == 'R') { cout << '2'; } else { cout << '0'; } } else { ...
#include <bits/stdc++.h> #include <iostream> using namespace std; typedef long long ll; int main() { string S; cin >> S; if (S[1] == 'R') { if (S[0] == 'R' && S[2] == 'R') { cout << '3'; } else if (S[0] == 'R' || S[2] == 'R') { cout << '2'; } else { cout << '1'; } } else { ...
[ "literal.string.change", "io.output.change" ]
282,341
282,342
u837259155
cpp
p02582
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <set> #include ...
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <set> #include ...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
282,343
282,344
u718886666
cpp
p02582
#include <iostream> using namespace std; int main() { string s; int i, cnt; cin >> s; if (s[0] == 'R') { if (s[1] == 'R') { if (s[2] == 'R') cout << 3; else cout << 2; } else if (s[2] == 'R') { cout << 2; } else { cout << 1; } } else if (s[1] == 'R') {...
#include <iostream> using namespace std; int main() { string s; int i, cnt; cin >> s; if (s[0] == 'R') { if (s[1] == 'R') { if (s[2] == 'R') cout << 3; else cout << 2; } else if (s[2] == 'R') { cout << 1; } else { cout << 1; } } else if (s[1] == 'R') {...
[ "literal.number.change", "io.output.change" ]
282,345
282,346
u745474917
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); string str; cin >> str; int cnt = 0; for (int i = 0; i < str.length(); i++) { if (str[i] == 'R') { cnt++; if (str[i] == 'S') break; } } cout << cnt << endl...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); string str; cin >> str; int cnt = 0; for (int i = 0; i < str.length(); i++) { if (str[i] == 'R') { cnt++; if (str[i + 1] == 'S') { break; } } } cout...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
282,347
282,348
u746417710
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); string str; cin >> str; int cnt = 0; for (int i = 0; i < str.length(); i++) { if (str[i] == 'R') cnt++; if (str[i] == 'S') break; } cout << cnt << endl; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); string str; cin >> str; int cnt = 0; for (int i = 0; i < str.length(); i++) { if (str[i] == 'R') { cnt++; if (str[i + 1] == 'S') { break; } } } cout...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
282,349
282,348
u746417710
cpp
p02582
#include <algorithm> #include <iostream> #include <string> #include <vector> #define ll long long #define mp make_pair using namespace std; int main() { string s; cin >> s; int r = 0; int tmp = 0; for (auto &x : s) { if (x == 'R') tmp++; else { r = max(tmp, r); tmp = 0; } }...
#include <algorithm> #include <iostream> #include <string> #include <vector> #define ll long long #define mp make_pair using namespace std; int main() { string s; cin >> s; int r = 0; int tmp = 0; for (auto &x : s) { if (x == 'R') { tmp++; r = max(tmp, r); } else { tmp = 0; }...
[ "control_flow.branch.else.add" ]
282,352
282,353
u588821890
cpp
p02582
#include <bits/stdc++.h> using namespace std; typedef long long int ll; ll n, i, j, t; int main() { string s; cin >> s; ll c = 0, max = 0; for (i = 0; i < 3; i++) { if (s[i] == 'R') { c++; } else if (i < 2) { if (c > max) max = c; c = 0; } else if (i == 2) { if ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; ll n, i, j, t; int main() { string s; cin >> s; ll c = 0, max = 0; for (i = 0; i < 3; i++) { if (s[i] == 'R') { c++; } else if (i < 2) { if (c > max) max = c; c = 0; } if (i == 2) { if ...
[ "control_flow.branch.if.replace.add", "control_flow.branch.else_if.replace.remove" ]
282,366
282,367
u534018974
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int l = 3; 0 <= l; l--) { for (int i = 0; i < s.size(); i++) { string t = s.substr(i, l); bool f = true; for (auto &&c : t) { f &= (c == 'R'); } if (f) { cout << l << endl; ...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int l = 3; 0 <= l; l--) { for (int i = 0; i + l <= s.size(); i++) { string t = s.substr(i, l); bool f = true; for (auto &&c : t) { f &= (c == 'R'); } if (f) { cout << l << endl...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
282,372
282,373
u017167684
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); int main() { ...
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); int main() { ...
[ "literal.number.change", "io.output.change" ]
282,376
282,377
u367480514
cpp
p02582
#include <bits/stdc++.h> using ll = long long int; using namespace std; typedef pair<int, int> pi; int main() { string s; cin >> s; int c = 0; for (char c : s) if (c == 'S') c++; if (c == 3) puts("0"); else if (c == 1 && s[0] == 'R' && s[1] == 'R') puts("2"); else if (c == 1 && s[1] == ...
#include <bits/stdc++.h> using ll = long long int; using namespace std; typedef pair<int, int> pi; int main() { string s; cin >> s; int c = 0; for (char K : s) if (K == 'S') c++; if (c == 3) puts("0"); else if (c == 1 && s[0] == 'R' && s[1] == 'R') puts("2"); else if (c == 1 && s[1] == ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
282,390
282,391
u808671879
cpp
p02582
#include <algorithm> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i < n; i++) #define ll long long #define INF 21474836...
#include <algorithm> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i < n; i++) #define ll long long #define INF 21474836...
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
282,394
282,395
u170301438
cpp
p02582
#include <iostream> // #include<vector> // #include<algorithm> // #include<cmath> // #include<iomanip> // #include<unordered_set> // #include<unordered_map> // #define pb push_back using namespace std; // typedef long long long long ll; // typedef unsigned long long long long ull; // typedef pair<int,int> pii; int ...
#include <iostream> // #include<vector> // #include<algorithm> // #include<cmath> // #include<iomanip> // #include<unordered_set> // #include<unordered_map> // #define pb push_back using namespace std; // typedef long long long long ll; // typedef unsigned long long long long ull; // typedef pair<int,int> pii; int ...
[ "control_flow.loop.for.update.change" ]
282,398
282,399
u532333165
cpp
p02582
#include <bits/stdc++.h> using namespace std; using ll = long long; signed main() { string S; cin >> S; int count = 0; if (S == "SSS") { count = 0; } else if (S[1] == 'S') { count = 1; } else if (S == "RRR") { count = 3; } else { count = 2; } cout << count << endl; return 0; }
#include <bits/stdc++.h> using namespace std; using ll = long long; signed main() { string S; cin >> S; int count = 0; if (S == "SSS") { count = 0; } else if (S[1] == 'S' || S == "SRS") { count = 1; } else if (S == "RRR") { count = 3; } else { count = 2; } cout << count << endl; ...
[ "control_flow.branch.if.condition.change" ]
282,402
282,403
u607746177
cpp
p02582
#include <bits/stdc++.h> using namespace std; #define ll long long #define MoD 1e9 + 7 #define clear(a) memset(a, 0, sizeof(a)) #define fo(i, a, b) for (int i = a; i < b; i++) #define re(i, a, b) for (int i = b; i > a; i--) #define pb(a) push_back(a) template <typename T1, typename T2> inline void chmin(T1 &a, T2 b)...
#include <bits/stdc++.h> using namespace std; #define ll long long #define MoD 1e9 + 7 #define clear(a) memset(a, 0, sizeof(a)) #define fo(i, a, b) for (int i = a; i < b; i++) #define re(i, a, b) for (int i = b; i > a; i--) #define pb(a) push_back(a) template <typename T1, typename T2> inline void chmin(T1 &a, T2 b)...
[ "literal.number.change", "call.arguments.change" ]
282,408
282,409
u197337048
cpp
p02582
#include <bits/stdc++.h> using namespace std; using p = pair<int, int>; #define int long long #define rep(i, N) for (int i = 0; i < N; i++) signed main() { string S; cin >> S; int ans = 0; if (S == "RSR") { ans = 2; cout << ans << endl; return 0; } rep(i, 3) { if (S[i] == 'R') ans += ...
#include <bits/stdc++.h> using namespace std; using p = pair<int, int>; #define int long long #define rep(i, N) for (int i = 0; i < N; i++) signed main() { string S; cin >> S; int ans = 0; if (S == "RSR") { ans = 1; cout << ans << endl; return 0; } rep(i, 3) { if (S[i] == 'R') ans += ...
[ "literal.number.change", "assignment.value.change" ]
282,410
282,411
u326080192
cpp
p02582
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { string s; cin >> s; int ans = 0; if (s[0] == 'R' & s[2] == 'S' & s[2] == 'R') { cout << 1 << endl; return 0; } else { rep(i, 3) { if (s[...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { string s; cin >> s; int ans = 0; if (s[0] == 'R' & s[1] == 'S' & s[2] == 'R') { cout << 1 << endl; return 0; } else { rep(i, 3) { if (s[...
[ "literal.number.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
282,415
282,416
u713178565
cpp
p02582
#include <bits/stdc++.h> #include <math.h> using namespace std; typedef long long ll; typedef vector<int> vint; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define rrep(i, j, n) for (int i = (int)(j); i < (int)(n); i++) #define mrep(i, n) for (int i = (int)(n); i > 0; i--) #define be(v) (v).begin(), (v).end() ...
#include <bits/stdc++.h> #include <math.h> using namespace std; typedef long long ll; typedef vector<int> vint; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define rrep(i, j, n) for (int i = (int)(j); i < (int)(n); i++) #define mrep(i, n) for (int i = (int)(n); i > 0; i--) #define be(v) (v).begin(), (v).end() ...
[ "literal.number.change", "io.output.change" ]
282,417
282,418
u769530239
cpp
p02582
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <iterator> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; int main(int argc, const char *argv[]) { string S; cin >> S; if (S[0] == 'R' && S[1] == 'R' &&...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <iterator> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; int main(int argc, const char *argv[]) { string S; cin >> S; if (S[0] == 'R' && S[1] == 'R' &&...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
282,419
282,420
u174031584
cpp
p02582
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int count = 0; int answer = 0; bool a = true; for (int i = 0; i < 3; i++) { if (S.at(i) == 'R') { count++; } else { answer = count; count = 0; } } cout << max(answer, count) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int count = 0; int answer = 0; bool a = true; for (int i = 0; i < 3; i++) { if (S.at(i) == 'R') { count++; } else { answer = max(answer, count); count = 0; } } cout << max(answer, count) << endl;...
[ "call.add", "call.arguments.change" ]
282,423
282,424
u983563612
cpp