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
p03854
#include <algorithm> #include <iostream> #include <map> #include <string> #include <vector> #define _GLIBCXX_DEBAC using namespace std; int findx(int n) { int sum = 0; while (n > 0) { sum += n % 10; n /= 10; } return sum; } string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { ...
#include <algorithm> #include <iostream> #include <map> #include <string> #include <vector> #define _GLIBCXX_DEBAC using namespace std; int findx(int n) { int sum = 0; while (n > 0) { sum += n % 10; n /= 10; } return sum; } string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { ...
[ "control_flow.loop.for.update.change" ]
1,467,716
1,467,717
u545938555
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define ll long long int main(void) { string s; cin >> s; int i = 0; while (i < s.size()) { if (s.substr(i, 6) == "eraser") i += 6; else if (s.substr(i, 5) == "erase") i += 5; else if (s.substr(i, 7) == "dreamer" && s.substr(i + 5, 5) != "er...
#include <bits/stdc++.h> using namespace std; #define ll long long int main(void) { string s; cin >> s; int i = 0; while (i < s.size()) { if (s.substr(i, 6) == "eraser") i += 6; else if (s.substr(i, 5) == "erase") i += 5; else if (s.substr(i, 7) == "dreamer" && s.substr(i + 5, 5) != "er...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,722
1,467,723
u030848580
cpp
p03854
#include <bits/stdc++.h> using namespace std; using ll = long long; #define int ll #define FOR(i, n, k) for (int i = n; i < k; i++) #define IOS \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define int ll #define FOR(i, n, k) for (int i = n; i < k; i++) #define IOS \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
[ "expression.operation.unary.logical.remove", "control_flow.branch.if.condition.change" ]
1,467,731
1,467,732
u731506888
cpp
p03854
#include <algorithm> #include <cmath> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <vector> #define rep(i, N) for (int i = 0; i < (int)N; i++) using namespace std; typedef long long ll; const ll LLINF = 9223372036854775807; const int MOD = 1000000007; int main() { string s; ci...
#include <algorithm> #include <cmath> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <vector> #define rep(i, N) for (int i = 0; i < (int)N; i++) using namespace std; typedef long long ll; const ll LLINF = 9223372036854775807; const int MOD = 1000000007; int main() { string s; ci...
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change", "assignment.value.change" ]
1,467,733
1,467,734
u680707192
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(divide[i].begin(), divide[i].end()); } bool can = true; for (int i = 0; i < S.size(); i...
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(divide[i].begin(), divide[i].end()); } bool can = true; /* for (int i = 0; i < S.size...
[ "control_flow.loop.for.update.change" ]
1,467,735
1,467,736
u783911129
cpp
p03854
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define INF 1e9 #define ALL(v) v.begin(), v.end() using namespace std; typedef long long ll; #define downque(que) priority_queue<ll> que; #define upque(...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define INF 1e9 #define ALL(v) v.begin(), v.end() using namespace std; typedef long long ll; #define downque(que) priority_queue<ll> que; #define upque(...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,746
1,467,747
u703052130
cpp
p03854
#include <algorithm> #include <cassert> #include <cmath> #include <deque> #include <functional> #include <iostream> #include <queue> #include <set> #include <stack> #include <vector> using ll = long long; int MOD = 1e9 + 7; using namespace std; ll GCD(ll x, ll y) { if (y == 0) { return x; } else { return GC...
#include <algorithm> #include <cassert> #include <cmath> #include <deque> #include <functional> #include <iostream> #include <queue> #include <set> #include <stack> #include <vector> using ll = long long; int MOD = 1e9 + 7; using namespace std; ll GCD(ll x, ll y) { if (y == 0) { return x; } else { return GC...
[ "literal.number.change", "control_flow.branch.if.condition.change", "literal.string.change", "assignment.value.change" ]
1,467,753
1,467,754
u759162415
cpp
p03854
#include <algorithm> #include <bitset> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> using namespace std; using vi = vector<int>; using vii = vector<vi>; using vs = vector<string>; using pii = pair<int, int>; #define rep(i, n) for (int i = 0;...
#include <algorithm> #include <bitset> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> using namespace std; using vi = vector<int>; using vii = vector<vi>; using vs = vector<string>; using pii = pair<int, int>; #define rep(i, n) for (int i = 0;...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,766
1,467,767
u654115433
cpp
p03854
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { string S; cin >> S; reverse(S.begin(), S.end()); vector<string> divisors{"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) reverse(divisors[i].begin(), divisors[i].end()); for (int i = 0; i <...
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { string S; cin >> S; reverse(S.begin(), S.end()); vector<string> divisors{"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) reverse(divisors[i].begin(), divisors[i].end()); for (int i = 0; i <...
[]
1,467,772
1,467,773
u188117876
cpp
p03854
#include <bits/stdc++.h> //C++の標準ライブラリを一行で一括でインクルードする #include <math.h> //数学関数と数学定数を利用する #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; template <class T> void chmax(T &a, T b) { if (a < b) a = b; } template <class T> void chmin(T &a, T b) { if (a > b) a = b; } s...
#include <bits/stdc++.h> //C++の標準ライブラリを一行で一括でインクルードする #include <math.h> //数学関数と数学定数を利用する #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; template <class T> void chmax(T &a, T b) { if (a < b) a = b; } template <class T> void chmin(T &a, T b) { if (a > b) a = b; } s...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,467,774
1,467,775
u014967455
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { bool flag; string S; string T[4] = {"maerd", "remaerd", "esare", "resare"}; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < S.size(); i++) { flag = false; for (int j = 0; j < 4; j++) { if (S.substr(i, T[j].size()) == T[j]...
#include <bits/stdc++.h> using namespace std; int main() { bool flag; string S; string T[4] = {"maerd", "remaerd", "esare", "resare"}; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < S.size();) { flag = false; for (int j = 0; j < 4; j++) { if (S.substr(i, T[j].size()) == T[j]) { ...
[ "control_flow.loop.for.update.change" ]
1,467,776
1,467,777
u327950489
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { bool flag; string S; string T[4] = {"maerd", "remaerd", "esare", "resare"}; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < S.size(); i++) { flag = false; for (int j = 0; j < 4; j++) { if (S.substr(i, T[j].size()) == T[j]...
#include <bits/stdc++.h> using namespace std; int main() { bool flag; string S; string T[4] = {"maerd", "remaerd", "esare", "resare"}; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < S.size();) { flag = false; for (int j = 0; j < 4; j++) { if (S.substr(i, T[j].size()) == T[j]) { ...
[ "control_flow.loop.for.update.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,778
1,467,777
u327950489
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { bool flag; string S; string T[4] = {"maerd", "remaerd", "esare", "resare"}; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < S.size(); i++) { flag = false; for (int j = 0; j < 4; j++) { if (S.substr(0, T[j].size()) == T[j]...
#include <bits/stdc++.h> using namespace std; int main() { bool flag; string S; string T[4] = {"maerd", "remaerd", "esare", "resare"}; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < S.size();) { flag = false; for (int j = 0; j < 4; j++) { if (S.substr(i, T[j].size()) == T[j]) { ...
[ "control_flow.loop.for.update.change", "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,779
1,467,777
u327950489
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); vector<string> t = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(t[i].begin(), t[i].end()); } bool can = true; for (int i = 0; i < s.size();) { bool can2...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); vector<string> t = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(t[i].begin(), t[i].end()); } bool can = true; for (int i = 0; i < s.size();) { bool can2...
[ "control_flow.return.remove", "control_flow.break.add" ]
1,467,780
1,467,781
u564060397
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); vector<string> t = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(t[i].begin(), t[i].end()); } bool can = true; for (int i = 0; i < s.size();) { bool can2...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); vector<string> t = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(t[i].begin(), t[i].end()); } bool can = true; for (int i = 0; i < s.size();) { bool can2...
[ "control_flow.return.remove", "control_flow.break.add" ]
1,467,782
1,467,781
u564060397
cpp
p03854
#include <bits/stdc++.h> #include <iostream> using namespace std; int main(void) { // Your code here! string s; cin >> s; reverse(s.begin(), s.end()); int i = 0; while (i <= s.size() - 1) { if (s.substr(i, 5) == "maerd") i += 5; else if (s.substr(i, 6) == "remaerd") i += 6; else if (...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main(void) { // Your code here! string s; cin >> s; reverse(s.begin(), s.end()); int i = 0; while (i <= s.size() - 1) { if (s.substr(i, 5) == "maerd") i += 5; else if (s.substr(i, 7) == "remaerd") i += 7; else if (...
[ "literal.number.change", "control_flow.branch.if.condition.change", "assignment.value.change" ]
1,467,786
1,467,787
u050428930
cpp
p03854
#include <bits/stdc++.h> #include <iostream> using namespace std; int main(void) { // Your code here! string s; cin >> s; reverse(s.begin(), s.end()); int i = 0; while (i <= s.size() - 1) { if (s.substr(i, 5) == "maerd") i += 5; else if (s.substr(i, 6) == "remaerd") i += 6; else if (...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main(void) { // Your code here! string s; cin >> s; reverse(s.begin(), s.end()); int i = 0; while (i <= s.size() - 1) { if (s.substr(i, 5) == "maerd") i += 5; else if (s.substr(i, 7) == "remaerd") i += 7; else if (...
[ "literal.number.change", "control_flow.branch.if.condition.change", "assignment.value.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,788
1,467,787
u050428930
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; // 後ろから解くかわりにすべての文字列を「左右反転」する reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end())...
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; // 後ろから解くかわりにすべての文字列を「左右反転」する reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end())...
[]
1,467,789
1,467,790
u690628746
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string divide[4] = {"dream", "dreamer", "erase", "eraser"}; string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(divide[i].begin(), divide[i].end()); for (int i = 0; i < S.leng...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string divide[4] = {"dream", "dreamer", "erase", "eraser"}; string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(divide[i].begin(), divide[i].end()); for (int i = 0; i < S.leng...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
1,467,793
1,467,794
u534015096
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end()); bool can = true; for (in...
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end()); bool can = true; for (int...
[ "control_flow.loop.for.update.change" ]
1,467,800
1,467,801
u419501474
cpp
p03854
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <iostream> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef unsigned long ...
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <iostream> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef unsigned long ...
[ "expression.operation.binary.remove" ]
1,467,807
1,467,808
u641145334
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "deramer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) { reverse(divide[i].begin(), divide[i].end()); } bool can = true; for ...
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) { reverse(divide[i].begin(), divide[i].end()); } bool can = true; for ...
[ "literal.string.change" ]
1,467,809
1,467,810
u506858457
cpp
p03854
#include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <deque> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define repr(i, a, b) for (int i = (int)(a); i < (i...
#include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <deque> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define repr(i, a, b) for (int i = (int)(a); i < (i...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,467,811
1,467,812
u314008046
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; //入力文字を格納 vector<string> phrase = {"dream", "dreamer", "erase", "eraser"}; //左から5,7,5,6文字 reverse(S.begin(), S.end()); for (int i = 0; i < phrase.size(); i++) reverse(phrase.at(i).begin(), phrase.at...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; //入力文字を格納 vector<string> phrase = {"dream", "dreamer", "erase", "eraser"}; //左から5,7,5,6文字 reverse(S.begin(), S.end()); for (int i = 0; i < phrase.size(); i++) reverse(phrase.at(i).begin(), phrase.at...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,813
1,467,814
u581489014
cpp
p03854
// C - 白昼夢 / Daydream #include <bits/stdc++.h> using namespace std; int solve(); string S; vector<string> st = {"dream", "dreamer", "erase", "eraser"}; int main() { cin >> S; solve(); } int solve() { reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(st.at(i).begin(), st.at(i).end()); }...
// C - 白昼夢 / Daydream #include <bits/stdc++.h> using namespace std; int solve(); string S; vector<string> st = {"dream", "dreamer", "erase", "eraser"}; int main() { cin >> S; solve(); } int solve() { reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(st.at(i).begin(), st.at(i).end()); }...
[ "literal.string.change", "io.output.change" ]
1,467,839
1,467,840
u526476325
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string divide[4] = {"dream", "dreamer", "erase", "eraser"}; string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end()); bool can = true; for (int i = 0; i < S.size();) { boo...
#include <bits/stdc++.h> using namespace std; int main() { string divide[4] = {"dream", "dreamer", "erase", "eraser"}; string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end()); bool can = true; for (int i = 0; i < S.size();) { boo...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,848
1,467,849
u332153950
cpp
p03854
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); // vector<string>t={ "dream","dreamer","erase","eraser" }; for (long long i = 0; i < s.size();) { if (s.substr(i, 7) == "remarerd") { i += 7...
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); // vector<string>t={ "dream","dreamer","erase","eraser" }; for (long long i = 0; i < s.size();) { if (s.substr(i, 7) == "remaerd") { i += 7;...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
1,467,855
1,467,856
u553461888
cpp
p03854
#include <bits/stdc++.h> using namespace std; int hantei(string s) { int last = s.size() - 1; if (s[last - 5] == 'e' && s[last - 4] == 'r' && s[last - 3] == 'a' && s[last - 2] == 's' && s[last - 1] == 'e' && s[last] == 'r') return 5; else if (s[last - 4] == 'e' && s[last - 3] == 'r' && s[last - 2] == '...
#include <bits/stdc++.h> using namespace std; int hantei(string s) { int last = s.size() - 1; if (s[last - 5] == 'e' && s[last - 4] == 'r' && s[last - 3] == 'a' && s[last - 2] == 's' && s[last - 1] == 'e' && s[last] == 'r') return 5; else if (s[last - 4] == 'e' && s[last - 3] == 'r' && s[last - 2] == '...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,873
1,467,874
u341388158
cpp
p03854
#include <bits/stdc++.h> #define ll long long #define rep(X, N) for (ll X = 0; X < (N); X++) #define PI (acos(-1.0)) #define sorta(V) sort(V.begin(), V.end()) #define pback push_back #define mpair make_pair #define MODN 1000000007 #define ALL(V) (V).begin(), (V).end() using namespace std; int main() { string s; ...
#include <bits/stdc++.h> #define ll long long #define rep(X, N) for (ll X = 0; X < (N); X++) #define PI (acos(-1.0)) #define sorta(V) sort(V.begin(), V.end()) #define pback push_back #define mpair make_pair #define MODN 1000000007 #define ALL(V) (V).begin(), (V).end() using namespace std; int main() { string s; ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,900
1,467,901
u145078501
cpp
p03854
#include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <set> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < (n); ++i) using namespace std; int main() { string s; cin >> s; string check[4] = {"dream", "dreamer", "erase", "...
#include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <set> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < (n); ++i) using namespace std; int main() { string s; cin >> s; string check[4] = {"dream", "dreamer", "erase", "...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change", "assignment.value.change" ]
1,467,904
1,467,905
u582817680
cpp
p03854
#include <bits/stdc++.h> #include <stdio.h> using namespace std; const double PI = acos(-1.0); const double EPS = (1e-9); typedef long long ll; typedef unsigned long long ull; #define flush fflush(stdout), cout.flush() #define all(v) ((v).begin()), ((v).end()) #define rall(v) ((v).rbegin()), ((v).rend()) #define clr(v,...
#include <bits/stdc++.h> #include <stdio.h> using namespace std; const double PI = acos(-1.0); const double EPS = (1e-9); typedef long long ll; typedef unsigned long long ull; #define flush fflush(stdout), cout.flush() #define all(v) ((v).begin()), ((v).end()) #define rall(v) ((v).rbegin()), ((v).rend()) #define clr(v,...
[ "expression.unary.arithmetic.add" ]
1,467,906
1,467,907
u555865264
cpp
p03854
#include <bits/stdc++.h> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) { reverse(divide[i].begin(), divide[i].end()); } bool can = true; for (int i = 0; i < S.size();) { ...
#include <bits/stdc++.h> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) { reverse(divide[i].begin(), divide[i].end()); } bool can = true; for (int i = 0; i < S.size();) { ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,912
1,467,913
u653388379
cpp
p03854
#include <bits/stdc++.h> using namespace std; // types typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef pair<ld, ld> pdd; // macros #define ALL(a) a.begin(), a.end() #define SZ(a) ((int)a.size()) #define FI first #define SE second #define REP(i, n) for (int i...
#include <bits/stdc++.h> using namespace std; // types typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef pair<ld, ld> pdd; // macros #define ALL(a) a.begin(), a.end() #define SZ(a) ((int)a.size()) #define FI first #define SE second #define REP(i, n) for (int i...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,916
1,467,917
u194908943
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; //文字列を後ろから見ていくGreedy法 string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; //後ろから見る操作を簡単にするために左右反転 reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(),...
#include <algorithm> #include <iostream> #include <string> using namespace std; //文字列を後ろから見ていくGreedy法 string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; //後ろから見る操作を簡単にするために左右反転 reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(),...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,932
1,467,933
u719950507
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string t[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); for (int j = 0; j < 4; j++) reverse(t[j].begin(), t[j].end()); int res = true; for (int i = 0; i < s.le...
#include <algorithm> #include <iostream> #include <string> using namespace std; string t[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); for (int j = 0; j < 4; j++) reverse(t[j].begin(), t[j].end()); int res = true; for (int i = 0; i < s...
[ "control_flow.loop.for.update.change" ]
1,467,936
1,467,937
u093744128
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define REP(i, a, b) for (int i = a; i < b; i++) #define rep(i, n) REP(i, 0, n) #define all(x) (x).begin(), (x).end() typedef long long ll; typedef unsigned long long ull; const string YES = "YES", NO = "NO"; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; ...
#include <bits/stdc++.h> using namespace std; #define REP(i, a, b) for (int i = a; i < b; i++) #define rep(i, n) REP(i, 0, n) #define all(x) (x).begin(), (x).end() typedef long long ll; typedef unsigned long long ull; const string YES = "YES", NO = "NO"; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; ...
[ "assignment.change" ]
1,467,940
1,467,941
u475972508
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; string S; int main() { cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(divide[i].begin(), divide[i].end()); bool can = true; for (int ...
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; string S; int main() { cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(divide[i].begin(), divide[i].end()); bool can = true; for (int ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,945
1,467,946
u841421760
cpp
p03854
#define _GLIBCXX_DEBUG #include <algorithm> #include <cstdio> #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; #define ALL(v) (v).begin(), (v).end() const int mod = 1e9 + 7; string S; bool flg = false; void dfs(unsigned int itr) { if (itr == S.siz...
#define _GLIBCXX_DEBUG #include <algorithm> #include <cstdio> #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; #define ALL(v) (v).begin(), (v).end() const int mod = 1e9 + 7; string S; bool flg = false; void dfs(unsigned int itr) { if (itr == S.siz...
[ "expression.operation.binary.remove" ]
1,467,947
1,467,948
u547844563
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; reverse(S.begin(), S.end()); string str[] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(str[i].begin(), str[i].end()); } string ans = "Yes"; for (int i = 0; i < S.size();) { bo...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; reverse(S.begin(), S.end()); string str[] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(str[i].begin(), str[i].end()); } string ans = "YES"; for (int i = 0; i < S.size();) { bo...
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change", "assignment.value.change" ]
1,467,949
1,467,950
u372299304
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; int main(void) { string list[4] = {"dream", "dreamer", "erase", "eraser"}; string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; i++) reverse(list[i].begin(), list[i].end()); bool split1 = true; for (in...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main(void) { string list[4] = {"dream", "dreamer", "erase", "eraser"}; string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; i++) { reverse(list[i].begin(), list[i].end()); } bool split1 = true; f...
[ "control_flow.loop.for.update.change" ]
1,467,951
1,467,952
u058295774
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; int main(void) { string list[4] = {"dream", "dreamer", "erase", "eraser"}; string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; i++) reverse(list[i].begin(), list[i].end()); bool split1 = true; for (in...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main(void) { string list[4] = {"dream", "dreamer", "erase", "eraser"}; string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; i++) { reverse(list[i].begin(), list[i].end()); } bool split1 = true; f...
[ "control_flow.loop.for.update.change", "misc.opposites", "variable_declaration.value.change" ]
1,467,953
1,467,952
u058295774
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string divide[4] = {"dream", "dreamers", "erase", "eraser"}; string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; i++) { reverse(divide[i].begin(), divide[i].end()); } bool c = true; for (int i = 0; i < s.size();) { bo...
#include <bits/stdc++.h> using namespace std; int main() { string divide[4] = {"dream", "dreamer", "erase", "eraser"}; string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; i++) { reverse(divide[i].begin(), divide[i].end()); } bool c = true; for (int i = 0; i < s.size();) { boo...
[ "literal.string.change" ]
1,467,954
1,467,955
u244626757
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define INF 1 << 30 #define endl '\n' #define maxn 100005 #define FASTIO ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); typedef long long ll; const double PI = acos(-1.0); #define dbg(x) cerr << #x << " = " << x << endl; #define dbg2(x, y) cerr << #x << " = " <<...
#include <bits/stdc++.h> using namespace std; #define INF 1 << 30 #define endl '\n' #define maxn 100005 #define FASTIO ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); typedef long long ll; const double PI = acos(-1.0); #define dbg(x) cerr << #x << " = " << x << endl; #define dbg2(x, y) cerr << #x << " = " <<...
[ "control_flow.loop.for.update.change" ]
1,467,959
1,467,960
u802237789
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define INF 1 << 30 #define endl '\n' #define maxn 100005 #define FASTIO ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); typedef long long ll; const double PI = acos(-1.0); #define dbg(x) cerr << #x << " = " << x << endl; #define dbg2(x, y) cerr << #x << " = " <<...
#include <bits/stdc++.h> using namespace std; #define INF 1 << 30 #define endl '\n' #define maxn 100005 #define FASTIO ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); typedef long long ll; const double PI = acos(-1.0); #define dbg(x) cerr << #x << " = " << x << endl; #define dbg2(x, y) cerr << #x << " = " <<...
[ "literal.string.change", "control_flow.loop.for.update.change" ]
1,467,961
1,467,960
u802237789
cpp
p03854
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <s...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <s...
[ "call.arguments.change" ]
1,468,179
1,468,180
u074445770
cpp
p03854
#include <bits/stdc++.h> #define all(a) (a).begin(), (a).end() #define REP(i, n) for (int(i) = 0; (i) < (n); (i)++) #define RREP(i, n) for (int(i) = (n)-1; (i) >= 0; (i)--) #define ios() cin.tie(0), ios::sync_with_stdio(false) typedef long long ll; typedef unsigned long long ull; ll const MOD = 1e9 + 7; ll const INF = ...
#include <bits/stdc++.h> #define all(a) (a).begin(), (a).end() #define REP(i, n) for (int(i) = 0; (i) < (n); (i)++) #define RREP(i, n) for (int(i) = (n)-1; (i) >= 0; (i)--) #define ios() cin.tie(0), ios::sync_with_stdio(false) typedef long long ll; typedef unsigned long long ull; ll const MOD = 1e9 + 7; ll const INF = ...
[]
1,468,185
1,468,186
u994831328
cpp
p03854
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { string s; cin >> s; string div[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(s.begin(), s.end()); REP(i, 4) reverse(div[i].begin(), div[i].end()); bool can, ans = true; for (int i = 0; i ...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { string s; cin >> s; string div[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(s.begin(), s.end()); REP(i, 4) reverse(div[i].begin(), div[i].end()); bool can, ans = true; for (int i = 0; i ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,192
1,468,193
u342042786
cpp
p03854
#include <algorithm> #include <cmath> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> typedef long long ll; using namespace std; int main() { string s; cin >> s; int N = s.size(); int p = N - 1; whi...
#include <algorithm> #include <cmath> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> typedef long long ll; using namespace std; int main() { string s; cin >> s; int N = s.size(); int p = N - 1; whi...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,194
1,468,195
u492131209
cpp
p03854
#include <algorithm> #include <bits/stdc++.h> #include <cstdio> #include <functional> #include <iostream> #include <limits> #include <math.h> #include <numeric> #include <queue> #include <type_traits> #include <vector> #define INF (1ll << 60) #define MOD 1000000007 #define BOUND 27182818284 typedef long long ll; type...
#include <algorithm> #include <bits/stdc++.h> #include <cstdio> #include <functional> #include <iostream> #include <limits> #include <math.h> #include <numeric> #include <queue> #include <type_traits> #include <vector> #define INF (1ll << 60) #define MOD 1000000007 #define BOUND 27182818284 typedef long long ll; type...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,468,196
1,468,197
u991664217
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = s.size() - 1; 3 < i;) { if (i - 4 >= 0 && s.substr(i - 4, 5) == "dream") { s.erase(i - 4, 5); i -= 5; } if (i - 4 >= 0 && s.substr(i - 4, 5) == "erase") { s.erase(i - 4, 5); i -= 5; ...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = s.size() - 1; 3 < i;) { if (i - 4 >= 0 && s.substr(i - 4, 5) == "dream") { s.erase(i - 4, 5); i -= 5; } else if (i - 4 >= 0 && s.substr(i - 4, 5) == "erase") { s.erase(i - 4, 5); i -= 5; ...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove", "control_flow.return.add", "control_flow.return.0.add" ]
1,468,200
1,468,201
u317711717
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = s.size() - 1; 3 < i;) { if (i - 4 >= 0 && s.substr(i - 4, 5) == "dream") { s.erase(i - 4, 5); i -= 5; } if (i - 4 >= 0 && s.substr(i - 4, 5) == "erase") { s.erase(i - 4, 5); i -= 5; ...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = s.size() - 1; 3 < i;) { if (i - 4 >= 0 && s.substr(i - 4, 5) == "dream") { s.erase(i - 4, 5); i -= 5; } else if (i - 4 >= 0 && s.substr(i - 4, 5) == "erase") { s.erase(i - 4, 5); i -= 5; ...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove", "control_flow.return.add", "control_flow.return.0.add" ]
1,468,202
1,468,201
u317711717
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = s.size() - 1; 3 < i;) { if (i - 4 >= 0 && s.substr(i - 4, 5) == "dream") { s.erase(i - 4, 5); i -= 5; } if (i - 4 >= 0 && s.substr(i - 4, 5) == "erase") { s.erase(i - 4, 5); i -= 5; ...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = s.size() - 1; 3 < i;) { if (i - 4 >= 0 && s.substr(i - 4, 5) == "dream") { s.erase(i - 4, 5); i -= 5; } else if (i - 4 >= 0 && s.substr(i - 4, 5) == "erase") { s.erase(i - 4, 5); i -= 5; ...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove", "control_flow.branch.if.condition.change", "control_flow.return.add", "control_flow.return.0.add" ]
1,468,203
1,468,201
u317711717
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = s.size() - 1; 3 < i;) { if (i - 4 >= 0 && s.substr(i - 4, 5) == "dream") { s.erase(i - 4, 5); i -= 5; } if (i - 4 >= 0 && s.substr(i - 4, 5) == "erase") { s.erase(i - 4, 5); i -= 5; ...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = s.size() - 1; 3 < i;) { if (i - 4 >= 0 && s.substr(i - 4, 5) == "dream") { s.erase(i - 4, 5); i -= 5; } else if (i - 4 >= 0 && s.substr(i - 4, 5) == "erase") { s.erase(i - 4, 5); i -= 5; ...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove", "control_flow.branch.if.condition.change", "control_flow.return.add", "control_flow.return.0.add" ]
1,468,204
1,468,201
u317711717
cpp
p03854
#include <algorithm> #include <bitset> #include <climits> #include <cstdlib> #include <iostream> #include <map> #include <numeric> #include <queue> #include <string> #include <utility> #include <vector> #define ll long long #define INF INT_MAX using namespace std; int main() { string s; cin >> s; string divide[4]...
#include <algorithm> #include <bitset> #include <climits> #include <cstdlib> #include <iostream> #include <map> #include <numeric> #include <queue> #include <string> #include <utility> #include <vector> #define ll long long #define INF INT_MAX using namespace std; int main() { string s; cin >> s; string divide[4]...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,468,205
1,468,206
u840810569
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S, d[4] = {"dream", "dreamer", "erase", "eraser"}; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(d[i].begin(), d[i].end()); } bool can = true; for (int i = 0; i < S.size...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S, d[4] = {"dream", "dreamer", "erase", "eraser"}; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(d[i].begin(), d[i].end()); } bool can = true; for (int i = 0; i < S.size...
[ "control_flow.loop.for.update.change" ]
1,468,209
1,468,210
u205324159
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S, T; cin >> S; string much_ptrn[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(much_ptrn[i].begin(), much_ptrn[i].end()); } bool ca...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S, T; cin >> S; string much_ptrn[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(much_ptrn[i].begin(), much_ptrn[i].end()); } bool ca...
[ "identifier.change", "variable_access.subscript.index.change" ]
1,468,211
1,468,212
u483747145
cpp
p03854
// file_name:ABC49_C.cpp #include <bits/stdc++.h> #define fi first #define se second #define rep(i, n) for (int i = 0; i < (n); ++i) #define rrep(i, n) for (int i = 1; i <= (n); ++i) #define drep(i, n) for (int i = (n)-1; i >= 0; --i) #define srep(i, s, t) for (int i = s; i < t; ++i) #define rng(a) a.begin(), a.end() #...
// file_name:ABC49_C.cpp #include <bits/stdc++.h> #define fi first #define se second #define rep(i, n) for (int i = 0; i < (n); ++i) #define rrep(i, n) for (int i = 1; i <= (n); ++i) #define drep(i, n) for (int i = (n)-1; i >= 0; --i) #define srep(i, s, t) for (int i = s; i < t; ++i) #define rng(a) a.begin(), a.end() #...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,468,232
1,468,233
u791593901
cpp
p03854
#include <bits/stdc++.h> using namespace std; string str; vector<string> s(4); bool exist(string s, int i) { if (str.substr(i, s.size()) == s) { return true; } else { return false; } } bool check() { int i = 0; for (i = 0; i < str.size();) { if (exist(s[0], i)) { i += s[0].size(); } ...
#include <bits/stdc++.h> using namespace std; string str; vector<string> s(4); bool exist(string s, int i) { if (str.substr(i, s.size()) == s) { return true; } else { return false; } } bool check() { int i = 0; for (i = 0; i < str.size();) { if (exist(s[0], i)) { i += s[0].size(); } e...
[]
1,468,234
1,468,235
u319242216
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end()); bool can = true; for (int...
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end()); bool can = true; for (int...
[ "control_flow.loop.for.update.change" ]
1,468,244
1,468,245
u644070128
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int ans = 1; string A = "remerd", B = "resare", C = "maerd", D = "esare"; reverse(S.begin(), S.end()); while (S.size() > 0) { int L = S.size(); if (S.substr(0, 7) == A) S.erase(0, 7); else if (S.substr(0, 6) == ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int ans = 1; string A = "remaerd", B = "resare", C = "maerd", D = "esare"; reverse(S.begin(), S.end()); while (S.size() > 0) { int L = S.size(); if (S.substr(0, 7) == A) S.erase(0, 7); else if (S.substr(0, 6) ==...
[ "literal.string.change", "variable_declaration.value.change" ]
1,468,246
1,468,247
u154756110
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int ans = 1; string A = "dreamer", B = "eraser", C = "dream", D = "erase"; S.insert(0, "dreamer"); while (S.size() > 0) { int L = S.size(), X = 1, Y = 1, Z = 1, W = 1; for (int i = 0; i < 7; i++) X *= int(S[L - 7 + ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int ans = 1; string A = "dreamer", B = "eraser", C = "dream", D = "erase"; S.insert(0, "dreamer"); while (S.size() > 0) { int L = S.size(), X = 1, Y = 1, Z = 1, W = 1; for (int i = 0; i < 7; i++) X *= int(S[L - 7 + ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,248
1,468,249
u154756110
cpp
p03854
#include <algorithm> #include <cstdio> #include <iostream> #include <string> using namespace std; int main(void) { int read = 0; string s; string d = "dream"; string dr = "dreamer"; string e = "erase"; string er = "eraser"; cin >> s; // cout << s.size()<<"\n"; while (1) { if (equal(s.begin(...
#include <algorithm> #include <cstdio> #include <iostream> #include <string> using namespace std; int main(void) { int read = 0; string s; string d = "dream"; string dr = "dreamer"; string e = "erase"; string er = "eraser"; cin >> s; // cout << s.size()<<"\n"; while (1) { if (equal(s.begin(...
[]
1,468,250
1,468,251
u217596176
cpp
p03854
// https://atcoder.jp/contests/abc049/tasks/arc065_a #include <algorithm> #include <iostream> #include <string> using namespace std; #define max(a, b) (((a) > (b)) ? (a) : (b)) #define min(a, b) (((a) < (b)) ? (a) : (b)) // 見つかったら文字の長さ、見つからなければ-1 int vsearch(string s, int i) { int ret = -1, len = s.size(); if (le...
// https://atcoder.jp/contests/abc049/tasks/arc065_a #include <algorithm> #include <iostream> #include <string> using namespace std; #define max(a, b) (((a) > (b)) ? (a) : (b)) #define min(a, b) (((a) < (b)) ? (a) : (b)) // 見つかったら次の桁数、見つからなければ-1 int vsearch(string s, int i) { int ret = -1, len = s.size(); if (len...
[ "identifier.replace.add", "literal.replace.remove", "function.return_value.change" ]
1,468,252
1,468,253
u858107870
cpp
p03854
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < (n); i++) #define ALL(c) c.begin(), c.end() #define PB push_back #define INF 1100000000 #define LLINF 1100000000000000000 #define MOD 1000000007 #define FI first #define SE...
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < (n); i++) #define ALL(c) c.begin(), c.end() #define PB push_back #define INF 1100000000 #define LLINF 1100000000000000000 #define MOD 1000000007 #define FI first #define SE...
[ "literal.string.change" ]
1,468,259
1,468,260
u973997867
cpp
p03854
#include <algorithm> #include <array> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; typedef pair<int, int> P; typedef long long LL; const LL INF = 1 << 31; int main() { string a[4] = {"dream", "erase", ...
#include <algorithm> #include <array> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; typedef pair<int, int> P; typedef long long LL; const LL INF = 1 << 31; int main() { string a[4] = {"dream", "erase", ...
[ "identifier.change", "call.arguments.change" ]
1,468,261
1,468,262
u794707792
cpp
p03854
#include <algorithm> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <regex> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef pair<int, int> p; #define modulo 1000000007 // 10^9 + 7 #define INF 1000000...
#include <algorithm> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <regex> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef pair<int, int> p; #define modulo 1000000007 // 10^9 + 7 #define INF 1000000...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,265
1,468,266
u774652316
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) { reverse(divide[i].begin(), divide[i].begin()); } bool can = true; ...
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) { reverse(divide[i].begin(), divide[i].end()); } bool can = true; fo...
[ "call.function.change", "call.arguments.change" ]
1,468,267
1,468,268
u128142352
cpp
p03854
#include <bits/stdc++.h> using namespace std; bool DP[100005]; char S[100005]; int main() { string str; cin >> str; int n = str.size(); for (int i = 1; i <= n; ++i) { S[i] = str[i - 1]; DP[i] = false; } DP[0] = true; for (int i = 5; i <= n; ++i) { if (DP[i - 5] && S[i - 4] == 'd' && S[i - 3...
#include <bits/stdc++.h> using namespace std; bool DP[100005]; char S[100005]; int main() { string str; cin >> str; int n = str.size(); for (int i = 1; i <= n; ++i) { S[i] = str[i - 1]; DP[i] = false; } DP[0] = true; for (int i = 5; i <= n; ++i) { if (DP[i - 5] && S[i - 4] == 'd' && S[i - 3...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,468,269
1,468,270
u104689289
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); while (1) { if (s.find("ecare") == 0 || s.find("maerd") == 0) { s.erase(0, 5); } else if (s.find("resare") == 0) { s.erase(0, 6); } else if (s.fi...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); while (1) { if (s.find("esare") == 0 || s.find("maerd") == 0) { s.erase(0, 5); } else if (s.find("resare") == 0) { s.erase(0, 6); } else if (s.fi...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
1,468,273
1,468,274
u678503521
cpp
p03854
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <map> #include <string> #include <vector> typedef long long ll; using namespace std; //#define int long long //素数判定 inline bool IsPrime(int p) { if (p == 1) return false; for (int i = 2; i <= sqrt(p); i++) { if (p % i ...
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <map> #include <string> #include <vector> typedef long long ll; using namespace std; //#define int long long //素数判定 inline bool IsPrime(int p) { if (p == 1) return false; for (int i = 2; i <= sqrt(p); i++) { if (p % i ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,293
1,468,294
u461044076
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string T[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(T[i].begin(), T[i].end()); } bool can = true; for (int i = 0; ...
#include <algorithm> #include <iostream> #include <string> using namespace std; string T[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(T[i].begin(), T[i].end()); } bool can = true; for (int i = 0; ...
[ "control_flow.loop.for.update.change" ]
1,468,295
1,468,296
u461044076
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string T[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(T[i].begin(), T[i].end()); } bool can = true; for (int i = 0; ...
#include <algorithm> #include <iostream> #include <string> using namespace std; string T[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(T[i].begin(), T[i].end()); } bool can = true; for (int i = 0; ...
[ "control_flow.loop.for.update.change" ]
1,468,297
1,468,296
u461044076
cpp
p03854
#include <bits/stdc++.h> using namespace std; string cutter(const string t) { long long l = t.size(); if (l >= 5 && t.substr(l - 5) == "dream" || t.substr(l - 5) == "erase") return t.substr(0, l - 5); else if (l >= 6 && t.substr(l - 6) == "eraser") return t.substr(0, l - 6); else if (l >= 7 && t.substr...
#include <bits/stdc++.h> using namespace std; string cutter(const string t) { long long l = t.size(); if (l >= 5 && t.substr(l - 5) == "dream" || t.substr(l - 5) == "erase") return t.substr(0, l - 5); else if (l >= 6 && t.substr(l - 6) == "eraser") return t.substr(0, l - 6); else if (l >= 7 && t.substr...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,298
1,468,299
u906651641
cpp
p03854
#include <bits/stdc++.h> using namespace std; string words[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(words[i].begin(), words[i].end()); bool cut = true; for (int i = 0; i < S.size();) { // 文字列Sを...
#include <bits/stdc++.h> using namespace std; string words[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(words[i].begin(), words[i].end()); bool cut = true; for (int i = 0; i < S.size();) { // 文字列Sを...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,305
1,468,306
u954659213
cpp
p03854
#include <bits/stdc++.h> using namespace std; string words[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (auto i = 0; i < 4; i++) reverse(words[i].begin(), words[i].end()); bool cut = true; for (int i = 0; i < S.size();) { // 文字列S...
#include <bits/stdc++.h> using namespace std; string words[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(words[i].begin(), words[i].end()); bool cut = true; for (int i = 0; i < S.size();) { // 文字列Sを...
[ "control_flow.loop.for.initializer.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,307
1,468,306
u954659213
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(divide[i].begin(), divide[i].end()); } /*for (int i = 0; i ...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(divide[i].begin(), divide[i].end()); } /*for (int i = 0; i ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,322
1,468,323
u865014539
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (i = 0; i < n; ++i) #define debg(s) cout << s << endl; #define INF 1e9 #define rev(s) reverse(s.begin(), s.end()) int i, j, n, m; string s, t; int main() { cin >> s; int sl = s.length(); reverse(s.begin(), s.end()); string a = "dream"; rev...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (i = 0; i < n; ++i) #define debg(s) cout << s << endl; #define INF 1e9 #define rev(s) reverse(s.begin(), s.end()) int i, j, n, m; string s, t; int main() { cin >> s; int sl = s.length(); reverse(s.begin(), s.end()); string a = "dream"; rev...
[ "call.remove" ]
1,468,331
1,468,332
u423624748
cpp
p03854
#include <iostream> #include <string> using namespace std; int main(void) { string s; cin >> s; bool flag = 0; for (int i = 0; i < s.size(); i++) { // cout<<s[i]<<endl; // cout<<i<<endl; if (s[i] == 'd') { if (s[i + 7] == 'a' || s.size() < i + 7 || s[i + 5] == 'd') { // cout<<"dream"<...
#include <iostream> #include <string> using namespace std; int main(void) { string s; cin >> s; bool flag = 0; for (int i = 0; i < s.size(); i++) { if (s[i] == 'd') { if (s[i + 7] == 'a' || s.size() < i + 7 || s[i + 5] == 'd') { if (s.substr(i, 5) != "dream") flag = 1; i += ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,468,339
1,468,340
u001566280
cpp
p03854
#include <iostream> #include <string> using namespace std; int main(void) { string s; cin >> s; bool flag = 0; for (int i = 0; i < s.size(); i++) { // cout<<s[i]<<endl; // cout<<i<<endl; if (s[i] == 'd') { if (s[i + 7] == 'a' || s.size() < i + 7 || s[i + 5] == 'd') { // cout<<"dream"<...
#include <iostream> #include <string> using namespace std; int main(void) { string s; cin >> s; bool flag = 0; for (int i = 0; i < s.size(); i++) { // cout<<s[i]<<endl; // cout<<i<<endl; if (s[i] == 'd') { if (s[i + 7] == 'a' || s.size() < i + 7 || s[i + 5] == 'd') { // cout<<"dream"<...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,468,339
1,468,341
u001566280
cpp
p03854
#include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define rep(i, a, b) for (int i = (a); i < (b); i++) #define per(i, a, b) for (int i = (b)-1; i >= (a); i--) #define pb push_back #define mp make_pair #define ...
#include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define rep(i, a, b) for (int i = (a); i < (b); i++) #define per(i, a, b) for (int i = (b)-1; i >= (a); i--) #define pb push_back #define mp make_pair #define ...
[ "literal.number.change", "assignment.value.change" ]
1,467,994
1,467,995
u877847737
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; reverse(S.begin(), S.end()); string T; vector<string> div = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(div.at(i).begin(), div.at(i).end()); } bool can = true; for (int i = 0; i < ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; reverse(S.begin(), S.end()); string T; vector<string> div = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(div.at(i).begin(), div.at(i).end()); } bool can = true; for (int i = 0; i < ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,996
1,467,997
u412837450
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { // ifstream in("input.txt"); // cin.rdbuf(in.rdbuf()); vector<string> devide = {"dream", "dreamer", "erase", "eraser"}; string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(devide.at(i).begin(), devide.at(i)...
#include <bits/stdc++.h> using namespace std; int main() { // ifstream in("input.txt"); // cin.rdbuf(in.rdbuf()); vector<string> devide = {"dream", "dreamer", "erase", "eraser"}; string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(devide.at(i).begin(), devide.at(i)...
[ "assignment.change" ]
1,467,998
1,467,999
u845937249
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { // ifstream in("input.txt"); // cin.rdbuf(in.rdbuf()); vector<string> devide = {"dream", "dreamer", "erase", "eraser"}; string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(devide.at(i).begin(), devide.at(i)...
#include <bits/stdc++.h> using namespace std; int main() { // ifstream in("input.txt"); // cin.rdbuf(in.rdbuf()); vector<string> devide = {"dream", "dreamer", "erase", "eraser"}; string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(devide.at(i).begin(), devide.at(i)...
[ "assignment.change", "identifier.change", "control_flow.branch.if.condition.change" ]
1,468,000
1,467,999
u845937249
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end()); bool can = true; for (int...
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end()); bool can = true; for (int...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,003
1,468,004
u433258479
cpp
p03854
#include <algorithm> #include <iostream> #include <set> #include <string> using namespace std; // dream dreamer erase eraser string DREAM = "dream"; string DREAMER = "dreamer"; string ERASE = "erase"; string ERASER = "eraser"; int main() { string S; cin >> S; reverse(S.begin(), S.end()); reverse(DREAM.begin...
#include <algorithm> #include <iostream> #include <set> #include <string> using namespace std; // dream dreamer erase eraser string DREAM = "dream"; string DREAMER = "dreamer"; string ERASE = "erase"; string ERASER = "eraser"; int main() { string S; cin >> S; reverse(S.begin(), S.end()); reverse(DREAM.begin...
[ "control_flow.branch.else.add" ]
1,468,005
1,468,006
u135879480
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(divide[i].begin(), divide[i].end()); } bool check = true; for (int i = 0; i < S.size();) { ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(divide[i].begin(), divide[i].end()); } bool check = true; for (int i = 0; i < S.size();) { ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,021
1,468,022
u985598176
cpp
p03854
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (int)n; i++) #define REPvec(itr, mp) for (auto itr = mp.begin(); itr != mp.end(); itr++) #define all(x) x.begin(), x.end() #define MOD 1000000007 // 1e9+7 using namespace std; typedef long long ll; typedef vector<int> vecint; typedef vector<string> vecstr; ...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (int)n; i++) #define REPvec(itr, mp) for (auto itr = mp.begin(); itr != mp.end(); itr++) #define all(x) x.begin(), x.end() #define MOD 1000000007 // 1e9+7 using namespace std; typedef long long ll; typedef vector<int> vecint; typedef vector<string> vecstr; ...
[ "control_flow.branch.if.condition.change" ]
1,468,023
1,468,024
u138062788
cpp
p03854
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { string s; cin >> s; stack<string> st; int i = s.length(...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { string s; cin >> s; stack<string> st; int i = s.length(...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,025
1,468,026
u156778176
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); string s; cin >> s; reverse(s.begin(), s.end()); int n = s.length(), idx = 0; while (idx < n) { if (idx + 5 <= n && s.substr(idx, 5) == "maerd") idx += 5; else if (idx + 7 <= n && s.substr(idx, 5) == "...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); string s; cin >> s; reverse(s.begin(), s.end()); int n = s.length(), idx = 0; while (idx < n) { if (idx + 5 <= n && s.substr(idx, 5) == "maerd") idx += 5; else if (idx + 7 <= n && s.substr(idx, 7) == "...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,468,031
1,468,032
u416877420
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); string s; cin >> s; reverse(s.begin(), s.end()); int n = s.length(), idx = 0; while (idx < n) { if (idx + 5 <= n && s.substr(idx, 5) == "maerd") idx += 5; else if (idx + 7 <= n && s.substr(idx, 5) == "...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); string s; cin >> s; reverse(s.begin(), s.end()); int n = s.length(), idx = 0; while (idx < n) { if (idx + 5 <= n && s.substr(idx, 5) == "maerd") idx += 5; else if (idx + 7 <= n && s.substr(idx, 7) == "...
[ "literal.number.change", "control_flow.branch.if.condition.change", "assignment.value.change" ]
1,468,033
1,468,032
u416877420
cpp
p03854
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 1LL << 60; ll gcd(ll a, ll b) { if (b == 0) return a; return gcd(b, a % b); } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inline bool c...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 1LL << 60; ll gcd(ll a, ll b) { if (b == 0) return a; return gcd(b, a % b); } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inline bool c...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,040
1,468,041
u187878098
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; vector<string> devide = {"dream", "eraser", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(devide[i].begin(), devide[i].end()); } bool can = true; for (int i = 0; i < S.size();) ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; vector<string> devide = {"dream", "dreamer", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(devide[i].begin(), devide[i].end()); } bool can = true; for (int i = 0; i < S.size();)...
[ "literal.string.change" ]
1,468,042
1,468,043
u037276799
cpp
p03854
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) #define MAXN 1000010 #define rep(i, n) for (int i = 0; i < (n); ++i) const ll mod = 1e9 + 7; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } re...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) #define MAXN 1000010 #define rep(i, n) for (int i = 0; i < (n); ++i) const ll mod = 1e9 + 7; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } re...
[ "identifier.change", "variable_declaration.array_dimensions.change", "call.arguments.change" ]
1,468,057
1,468,058
u558720836
cpp
p03854
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; #define pb push_back #define mp make_pair #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; string dream = "maerd", dreamer = "remaerd", eras...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; #define pb push_back #define mp make_pair #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; string dream = "maerd", dreamer = "remaerd", eras...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,062
1,468,063
u480831358
cpp
p03854
#include <algorithm> #include <functional> #include <iostream> #define ll long long using namespace std; int main(int argc, char *argv[]) { string S; cin >> S; reverse(S.begin(), S.end()); while (S.length()) { if (S.rfind("remaerd", 0) == 0) { S = S.substr(7); } else if (S.rfind("resare", 0)...
#include <algorithm> #include <functional> #include <iostream> #define ll long long using namespace std; int main(int argc, char *argv[]) { string S; cin >> S; reverse(S.begin(), S.end()); while (S.length()) { if (S.rfind("remaerd", 0) == 0) { S = S.substr(7); } else if (S.rfind("resare", 0)...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,064
1,468,065
u244118868
cpp
p03854
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i) #define REPR(i, n) for (ll i = n; i >= 0; --i) #define FOR(i, m, n) for (ll i = m, i##_len = (n); i < i##_len; ++i) #define all(x) (x).begin(), (x).end() template <class T> inline bool c...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i) #define REPR(i, n) for (ll i = n; i >= 0; --i) #define FOR(i, m, n) for (ll i = m, i##_len = (n); i < i##_len; ++i) #define all(x) (x).begin(), (x).end() template <class T> inline bool c...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "control_flow.branch.if.replace.add", "control_flow.branch.else_if.replace.remove" ]
1,468,066
1,468,067
u272997285
cpp
p03854
#include <algorithm> #include <array> #include <cmath> #include <cstdio> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <limits.h> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <tup...
#include <algorithm> #include <array> #include <cmath> #include <cstdio> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <limits.h> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <tup...
[ "variable_declaration.value.change", "control_flow.branch.if.condition.change" ]
1,468,077
1,468,078
u221285045
cpp
p03854
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define RFOR(i, a, b) for (int i = (b)-1; i >= (a); --i) #define rep(i, n) FOR(i, 0, (n)) #define REPS(i, n) FOR(i, 1, (n) + 1) #define RREP(i, n) RFOR(i, 0, (n)) #define ALL(x) (x).begin(), (x).end() #define RALL(x) (x).rbegin(), (x).rend() ...
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define RFOR(i, a, b) for (int i = (b)-1; i >= (a); --i) #define rep(i, n) FOR(i, 0, (n)) #define REPS(i, n) FOR(i, 1, (n) + 1) #define RREP(i, n) RFOR(i, 0, (n)) #define ALL(x) (x).begin(), (x).end() #define RALL(x) (x).rbegin(), (x).rend() ...
[ "assignment.change" ]
1,468,079
1,468,080
u850516963
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string a[4] = {"dream", "dreamer", "erase", "eraser"}; string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(a[i].begin(), a[i].end()); bool flg2 = 1; for (int i = 0; i < S.size(); i++) { bool flg = 0; ...
#include <bits/stdc++.h> using namespace std; int main() { string a[4] = {"dream", "dreamer", "erase", "eraser"}; string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(a[i].begin(), a[i].end()); bool flg2 = 1; for (int i = 0; i < S.size();) { bool flg = 0; for...
[ "control_flow.loop.for.update.change" ]
1,468,081
1,468,082
u294721290
cpp
p03854
#include <bits/stdc++.h> using namespace std; string S; int main() { cin >> S; string words[4] = {"maerd", "remaerd", "esare", "resare"}; int cur = S.size(); while (cur > 0) { bool isValid = false; for (int i = 0; i < 4; ++i) { if (cur < (int)words[i].size()) continue; string tmp =...
#include <bits/stdc++.h> using namespace std; string S; int main() { cin >> S; string words[4] = {"maerd", "remaerd", "esare", "resare"}; int cur = S.size(); while (cur > 0) { bool isValid = false; for (int i = 0; i < 4; ++i) { if (cur < (int)words[i].size()) continue; string tmp =...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,083
1,468,084
u559765551
cpp