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 <iostream> #include <string> #include <vector> using namespace std; long long n, c; int cnt, flag; int flag1; string str; string txt[4] = {"dream", "dreamer", "erase", "eraser"}; string solve(int ptr); int main(void) { cin >> str; // cout << (int)(txt[0].length()); /* for(int i = 0; i < (int)(txt[0...
#include <iostream> #include <string> #include <vector> using namespace std; long long n, c; int cnt, flag; int flag1; string str; string txt[4] = {"dream", "dreamer", "erase", "eraser"}; string solve(int ptr); int main(void) { cin >> str; // cout << (int)(txt[0].length()); /* for(int i = 0; i < (int)(txt[0...
[ "literal.string.change", "literal.string.case.change", "function.return_value.change" ]
1,468,088
1,468,089
u437879601
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; int t[100005], a[100005]; int main() { string s; cin >> s; int now = 0; while (now < s.size()) { if (s.substr(now, 7) == "dreamer") { if (s[now + 7] == 'a') {...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; int t[100005], a[100005]; int main() { string s; cin >> s; int now = 0; while (now < s.size()) { if (s.substr(now, 7) == "dreamer") { if (s[now + 7] == 'a') {...
[ "literal.number.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "assignment.value.change" ]
1,468,090
1,468,091
u620735210
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; int t[100005], a[100005]; int main() { string s; cin >> s; int now = 0; while (now < s.size()) { if (s.substr(now, 7) == "dreamer") { if (s[now + 7] == 'a') {...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; int t[100005], a[100005]; int main() { string s; cin >> s; int now = 0; while (now < s.size()) { if (s.substr(now, 7) == "dreamer") { if (s[now + 7] == 'a') {...
[ "literal.number.change", "control_flow.branch.if.condition.change", "variable_access.subscript.index.change", "assignment.value.change" ]
1,468,092
1,468,091
u620735210
cpp
p03854
#include <bits/stdc++.h> #define ll long long #define ALL(x) x.begin(), x.end() #define MOD (1000000000 + 7) using namespace std; #define PI 3.14159265359 #define tMOD 998244353 #define mkpr(x, y) make_pair(x, y) int main() { string S; cin >> S; vector<string> as; as.push_back("dream"); as.push_back("dreamer...
#include <bits/stdc++.h> #define ll long long #define ALL(x) x.begin(), x.end() #define MOD (1000000000 + 7) using namespace std; #define PI 3.14159265359 #define tMOD 998244353 #define mkpr(x, y) make_pair(x, y) int main() { string S; cin >> S; vector<string> as; as.push_back("dream"); as.push_back("dreamer...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,095
1,468,096
u546736430
cpp
p03854
#include <iostream> using namespace std; int main(int argc, char *argv[]) { string S; cin >> S; for (int i = S.size() - 1; i >= 0;) { string T = ""; for (int j = i, k = 0; k < 7; k++, j--) { T += S[j]; if (T == "esare" || T == "maerd") { i -= 5; break; } else if (T == ...
#include <iostream> using namespace std; int main(int argc, char *argv[]) { string S; cin >> S; for (int i = S.size() - 1; i >= 0;) { string T = ""; for (int j = i, k = 0; k < 7; k++, j--) { T += S[j]; if (T == "esare" || T == "maerd") { i -= 5; break; } else if (T == ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,097
1,468,098
u973630705
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s, t, a1, a2, a3, a4; cin >> s; a1 = "maerd"; a2 = "remaerd"; a3 = "esare"; a4 = "resare"; int i = 0; reverse(s.begin(), s.end()); if (s[0] == 'm') { t = a1; i += 5; } else if (s[0] == 'e') { t = a3; i += 5; } else ...
#include <bits/stdc++.h> using namespace std; int main() { string s, t, a1, a2, a3, a4; cin >> s; a1 = "maerd"; a2 = "remaerd"; a3 = "esare"; a4 = "resare"; int i = 0; reverse(s.begin(), s.end()); if (s[0] == 'm') { t = a1; i += 5; } else if (s[0] == 'e') { t = a3; i += 5; } else ...
[ "literal.number.change", "assignment.value.change" ]
1,468,101
1,468,102
u144029820
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s, t, a1, a2, a3, a4; cin >> s; a1 = "maerd"; a2 = "remaerd"; a3 = "esare"; a4 = "resare"; int i = 0; reverse(s.begin(), s.end()); if (s[0] == 'm') { t = a1; i += 5; } else if (s[0] == 'e') { t = a3; i += 5; } else ...
#include <bits/stdc++.h> using namespace std; int main() { string s, t, a1, a2, a3, a4; cin >> s; a1 = "maerd"; a2 = "remaerd"; a3 = "esare"; a4 = "resare"; int i = 0; reverse(s.begin(), s.end()); if (s[0] == 'm') { t = a1; i += 5; } else if (s[0] == 'e') { t = a3; i += 5; } else ...
[ "literal.number.change", "assignment.value.change" ]
1,468,103
1,468,102
u144029820
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s, t, a1, a2, a3, a4; cin >> s; a1 = "maerd"; a2 = "remaerd"; a3 = "esare"; a4 = "resare"; int i = 0; reverse(s.begin(), s.end()); if (s[0] == 'm') { t = a1; i += 5; } else if (s[0] == 'e') { t = a3; i += 5; } else ...
#include <bits/stdc++.h> using namespace std; int main() { string s, t, a1, a2, a3, a4; cin >> s; a1 = "maerd"; a2 = "remaerd"; a3 = "esare"; a4 = "resare"; int i = 0; reverse(s.begin(), s.end()); if (s[0] == 'm') { t = a1; i += 5; } else if (s[0] == 'e') { t = a3; i += 5; } else ...
[ "literal.number.change", "assignment.value.change" ]
1,468,105
1,468,102
u144029820
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int p = s.size(); while (true) { // cout << p << endl; // cout << s.substr(p-5,5) << endl; // cout << s.substr(p-6,6) << endl; if (0 <= p - 5 && (s.substr(p - 5, 5) == "dream" || s.substr(p - 5, 5) == "erase"...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int p = s.size(); while (true) { // cout << p << endl; // cout << s.substr(p-5,5) << endl; // cout << s.substr(p-6,6) << endl; if (0 <= p - 5 && (s.substr(p - 5, 5) == "dream" || s.substr(p - 5, 5) == "erase"...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,468,111
1,468,112
u091552241
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int p = s.size(); while (true) { // cout << p << endl; // cout << s.substr(p-5,5) << endl; if (0 <= p - 5 && (s.substr(p - 5, 5) == "dream" || s.substr(p - 5, 5) == "erase")) { p -= 5; } else if (0 <= ...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int p = s.size(); while (true) { // cout << p << endl; // cout << s.substr(p-5,5) << endl; // cout << s.substr(p-6,6) << endl; if (0 <= p - 5 && (s.substr(p - 5, 5) == "dream" || s.substr(p - 5, 5) == "erase"...
[ "control_flow.branch.if.condition.change", "identifier.replace.remove", "literal.replace.add" ]
1,468,113
1,468,112
u091552241
cpp
p03854
#include <algorithm> #include <cmath> #include <cstring> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <list> #include <numeric> #include <string> #include <tuple> #include <type_traits> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; using ...
#include <algorithm> #include <cmath> #include <cstring> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <list> #include <numeric> #include <string> #include <tuple> #include <type_traits> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; using ...
[ "literal.number.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
1,468,116
1,468,117
u275797573
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(); i++...
#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();) { ...
[ "control_flow.loop.for.update.change" ]
1,468,120
1,468,121
u989306199
cpp
p03854
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define rep(i, a, b) for (ll i = a; i < b; i++) #define rrep(i, a, b) for (ll i = a; i >= b; i--) #define fore(i, a) for (auto &i : a) #define all(x) (x).begin(), (x).end() int main(void) { string s; cin >> s; rrep(i, s....
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define rep(i, a, b) for (ll i = a; i < b; i++) #define rrep(i, a, b) for (ll i = a; i >= b; i--) #define fore(i, a) for (auto &i : a) #define all(x) (x).begin(), (x).end() int main(void) { string s; cin >> s; rrep(i, s....
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,158
1,468,159
u326152409
cpp
p03854
#include <bits/stdc++.h> using namespace std; typedef long long ll; int gcd(int a, int b) { return b != 0 ? gcd(b, a % b) : a; } // MAX int lcm(int a, int b) { return a * b / gcd(a, b); } // MIN main() { string divide[4] = {"dream", "dreamer", "erase", "eraser"}; string s; cin >> s; bool ans = true; reverse(...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int gcd(int a, int b) { return b != 0 ? gcd(b, a % b) : a; } // MAX int lcm(int a, int b) { return a * b / gcd(a, b); } // MIN main() { string divide[4] = {"dream", "dreamer", "erase", "eraser"}; string s; cin >> s; bool ans = true; reverse(...
[ "control_flow.loop.for.update.change" ]
1,468,160
1,468,161
u157433024
cpp
p03854
#include <iostream> #include <string> using namespace std; int main(void) { string st; int count = 0, type = -1; bool flag = true; cin >> st; size_t len = st.length(); size_t i = 0; while (i < len) { string sub = st.substr(i, 5); // cout << "*" << sub << i << endl; if (sub == "dream") { ...
#include <iostream> #include <string> using namespace std; int main(void) { string st; int count = 0, type = -1; bool flag = true; cin >> st; size_t len = st.length(); size_t i = 0; while (i < len) { string sub = st.substr(i, 5); // cout << "*" << sub << i << endl; if (sub == "dream") { ...
[ "control_flow.branch.if.condition.change" ]
1,468,361
1,468,362
u603286134
cpp
p03854
#include <algorithm> #include <bits/stdc++.h> #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 ...
#include <algorithm> #include <bits/stdc++.h> #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 ...
[ "control_flow.loop.for.update.change" ]
1,468,365
1,468,366
u342051078
cpp
p03854
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <string.h> #include <vector> using namespace std; #define rep(i, a) for (int i = 0; i < a; i++) #define rrep(i, a) for (int i = a; i >= 0; i--) #define loop3(i, j, k, a) ...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <string.h> #include <vector> using namespace std; #define rep(i, a) for (int i = 0; i < a; i++) #define rrep(i, a) for (int i = a; i >= 0; i--) #define loop3(i, j, k, a) ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,375
1,468,376
u415041731
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 flag = 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 flag = true; for (in...
[ "control_flow.loop.for.update.change" ]
1,468,381
1,468,382
u319234342
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int i = 1; i <= n; i++) string T[] = {"dream", "dreamer", "erase", "eraser"}; bool huga(string S) { // cout<<S<<endl; int size = S.size(); if (size < 5) return false; if (size == 5 || size == 6 || size == 7) { f...
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int i = 1; i <= n; i++) string T[] = {"dream", "dreamer", "erase", "eraser"}; bool huga(string &S) { // cout<<S<<endl; int size = S.size(); if (size <= 4) return false; if (size == 5 || size == 6 || size == 7) { ...
[ "literal.string.change", "control_flow.branch.if.condition.change", "literal.number.change", "call.arguments.change", "expression.operation.binary.change" ]
1,468,390
1,468,389
u233393801
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string divide[4] = {"dream", "dreamer", "erace", "eracer"}; string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; i++) reverse(divide[i].begin(), divide[i].end()); bool flag = 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 flag = true; for (int i = 0; i < s.size();) { boo...
[ "literal.string.change" ]
1,468,391
1,468,392
u484962958
cpp
p03854
#include <algorithm> #include <iostream> #include <string> 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 can = true; for (int i =...
#include <algorithm> #include <iostream> #include <string> 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 can = true; for (int i =...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,402
1,468,403
u387055019
cpp
p03854
#include <iostream> #include <string> using namespace std; int main(void) { string s, t, u = "Yes"; cin >> s; int l = s.length(); while (l > 4) { t = s.substr(l - 5, 5); // cout<<t<<endl; if (t == "dream" || t == "erase") { l -= 5; } else if (l <= 5) { l = -1; } else { t = ...
#include <iostream> #include <string> using namespace std; int main(void) { string s, t, u = "YES"; cin >> s; int l = s.length(); while (l > 4) { t = s.substr(l - 5, 5); if (t == "dream" || t == "erase") { l -= 5; } else if (l <= 5) { l = -1; } else { t = s.substr(l - 6, 6); ...
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change", "assignment.value.change" ]
1,468,404
1,468,405
u024809932
cpp
p03854
#include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; bool dp[100010]; int main() { string S; cin >> S; dp[0] = 1; for (int i = 0; i < S.size(); ++i) { for (string s : divide) { if (S.substr(i, s.size()) == s) { // うまく切れたら先に進む ...
#include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; bool dp[100010]; int main() { string S; cin >> S; dp[0] = 1; for (int i = 0; i < S.size(); ++i) { for (string s : divide) { if (S.substr(i, s.size()) == s) { // うまく切れたら先に進む ...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove" ]
1,468,406
1,468,407
u365475813
cpp
p03854
#include <algorithm> #include <bitset> #include <climits> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <set> #include <string> #include <utility> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define repi(i, n) for (auto i = ...
#include <algorithm> #include <bitset> #include <climits> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <set> #include <string> #include <utility> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define repi(i, n) for (auto i = ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,417
1,468,418
u605917063
cpp
p03854
#include <algorithm> #include <cmath> #include <cstdint> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <stack> #include <string> #include <utility> #include <vector> #define rep(i, rept) for (ll i = 0; i < rept; i++) typedef long long ll; using namespace std; ll nCr...
#include <algorithm> #include <cmath> #include <cstdint> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <stack> #include <string> #include <utility> #include <vector> #define rep(i, rept) for (ll i = 0; i < rept; i++) typedef long long ll; using namespace std; ll nCr...
[ "literal.number.change", "assignment.value.change" ]
1,468,429
1,468,430
u345965293
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraceer"}; 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;...
#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; ...
[ "literal.string.change" ]
1,468,431
1,468,432
u873736356
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraceer"}; 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;...
#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; ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,433
1,468,432
u873736356
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; int main(void) { string S[5] = {"dream", "dreamer", "erase", "eraser"}, str; cin >> str; int flag = 0, i = 0; for (int i = 0; i < 4; ++i) reverse(S[i].begin(), S[i].end()); reverse(str.begin(), str.end()); for (int i = 0; i...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main(void) { string S[5] = {"dream", "dreamer", "erase", "eraser"}, str; cin >> str; int flag = 0, i = 0; for (int i = 0; i < 4; ++i) reverse(S[i].begin(), S[i].end()); reverse(str.begin(), str.end()); for (int i = 0; i...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
1,468,434
1,468,435
u399261731
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; reverse(S.begin(), S.end()); vector<string> judge = {"maerd", "remaerd", "esare", "resare"}; bool can = true; for (int i = 0; i < S.size();) { bool can2 = false; for (int j = 0; j < 4; j++) { string juge = judge[j];...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; reverse(S.begin(), S.end()); vector<string> judge = {"maerd", "remaerd", "esare", "resare"}; bool can = true; for (int i = 0; i < S.size();) { bool can2 = false; for (int j = 0; j < 4; j++) { string juge = judge[j];...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,443
1,468,444
u058186113
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; string rev_array[4] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(rev_array[i].begin(), rev_array[i].end()); } int ptr_s = s.length(); int ptr_s_preview = ptr_s; bool flag[4] = {false...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; string rev_array[4] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(rev_array[i].begin(), rev_array[i].end()); } int ptr_s = s.length(); int ptr_s_preview = ptr_s; bool flag[4] = {false...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,451
1,468,452
u808943968
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.size() == 0) break; else if (s.substr(0, 5) == "maerd") s = s.substr(5, s.size() - 5); else if (s.substr(0, 7) == "remaerd") ...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); while (1) { if (s.size() == 0) break; else if (s.substr(0, 5) == "maerd") s = s.substr(5, s.size() - 5); else if (s.substr(0, 7) == "remaerd") ...
[ "literal.number.change", "assignment.value.change", "call.arguments.change" ]
1,468,455
1,468,456
u006686215
cpp
p03854
#include <bits/stdc++.h> using namespace std; typedef long long LL; int main() { string S; string T[4] = {"dream", "dreamer", "erase", "eraser"}; cin >> S; for (LL i = 0; i < S.size();) { if (S[i] == 'd') { if (S.substr(i, 7) == T[1] && S[i + 7] != 'a') { i += 7; } else if (S.substr(i,...
#include <bits/stdc++.h> using namespace std; typedef long long LL; int main() { string S; string T[4] = {"dream", "dreamer", "erase", "eraser"}; cin >> S; for (LL i = 0; i < S.size();) { if (S[i] == 'd') { if (S.substr(i, 7) == T[1] && S[i + 7] != 'a') { i += 7; } else if (S.substr(i,...
[ "literal.number.change", "control_flow.branch.if.condition.change", "variable_access.subscript.index.change", "assignment.value.change" ]
1,468,459
1,468,460
u544732702
cpp
p03854
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; if (S.length() <= 7) { if (S == "dream" || S == "dreamer" || S == "erase" || S == "eraser") cout << "YES" << endl; else cout << "NO" << endl; } else if (S.length() < 10) { cout << "NO" << endl; ...
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; if (S.length() <= 7) { if (S == "dream" || S == "dreamer" || S == "erase" || S == "eraser") cout << "YES" << endl; else cout << "NO" << endl; } else if (S.length() < 10) { cout << "NO" << endl; ...
[ "expression.operation.unary.logical.remove", "control_flow.loop.condition.change" ]
1,468,465
1,468,466
u134519179
cpp
p03854
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; int len = S.size(); while (len > 0) { if (len >= 5) { if (S.substr(len - 5, 5) == string("erase") || S.substr(len - 5, 5) == string("dream")) { len -= 5; continue; } } i...
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; int len = S.size(); while (len > 0) { if (len >= 5) { if (S.substr(len - 5, 5) == string("erase") || S.substr(len - 5, 5) == string("dream")) { len -= 5; continue; } } i...
[ "literal.number.change", "assignment.value.change" ]
1,468,471
1,468,472
u587172770
cpp
p03854
#include <algorithm> #include <cmath> #include <fstream> #include <functional> #include <iostream> #include <numeric> #include <set> #include <string> using namespace std; #define ll long long; #define INF 2000000000 #define rep(i, n) for (int i = 0; i < (int)n; i++) #define dum(x) cout << #x << '=' << x << endl #def...
#include <algorithm> #include <cmath> #include <fstream> #include <functional> #include <iostream> #include <numeric> #include <set> #include <string> using namespace std; #define ll long long; #define INF 2000000000 #define rep(i, n) for (int i = 0; i < (int)n; i++) #define dum(x) cout << #x << '=' << x << endl #def...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "assignment.value.change" ]
1,468,480
1,468,481
u281384315
cpp
p03854
#include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <string> using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define dum(x) cout << #x << '=' << x << endl #define INF 2000000000 int main() { string S[4] = {"maerd", "remaerd", "esare", "resare"}; string T;...
#include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <string> using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define dum(x) cout << #x << '=' << x << endl #define INF 2000000000 int main() { string S[4] = {"maerd", "remaerd", "esare", "resare"}; string T;...
[ "assignment.add" ]
1,468,482
1,468,483
u281384315
cpp
p03854
#include <algorithm> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string.h> #include <string> #include <string> #include <vector> using namespace std; #define int ...
#include <algorithm> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string.h> #include <string> #include <string> #include <vector> using namespace std; #define int ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,468,488
1,468,489
u318857467
cpp
p03854
#include <algorithm> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string.h> #include <string> #include <string> #include <vector> using namespace std; #define int ...
#include <algorithm> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string.h> #include <string> #include <string> #include <vector> using namespace std; #define int ...
[ "literal.number.change", "control_flow.branch.if.condition.change", "assignment.value.change" ]
1,468,490
1,468,489
u318857467
cpp
p03854
#include <algorithm> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string.h> #include <string> #include <string> #include <vector> using namespace std; #define int ...
#include <algorithm> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string.h> #include <string> #include <string> #include <vector> using namespace std; #define int ...
[ "literal.number.change", "control_flow.branch.if.condition.change", "literal.string.change", "assignment.value.change" ]
1,468,491
1,468,489
u318857467
cpp
p03854
#include <iostream> #include <string> using namespace std; int main() { string n, d = "dream", dr = "dreamer", e = "erase", er = "eraser"; int len, dx, ex; cin >> n; len = n.size(); while (1) { if (n.find("er", len - 2) != EOF) { dx = n.find(dr, len - 7); ex = n.find(er, len - 6); } e...
#include <iostream> #include <string> using namespace std; int main() { string n, d = "dream", dr = "dreamer", e = "erase", er = "eraser"; int len, dx, ex; cin >> n; len = n.size(); while (1) { if (n.find("er", len - 2) != EOF) { dx = n.find(dr, len - 7); ex = n.find(er, len - 6); } e...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,492
1,468,493
u274055316
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string u[4] = {"eraser", "dreamer", "erase", "dream"}; int main() { string s, t; cin >> s; int len = s.length(); for (int i = 0; i < 4; i++) { int l = len; int fd = s.rfind(u[i], len); bool flg = fd >= l; if (s.rfi...
#include <algorithm> #include <iostream> #include <string> using namespace std; string u[4] = {"eraser", "dreamer", "erase", "dream"}; int main() { string s, t; cin >> s; int len = s.length(); for (int i = 0; i < 4; i++) { int l = len; int fd = s.rfind(u[i], len - 1); bool flg = fd >= l; if (s...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
1,468,496
1,468,497
u926242698
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();) { boo...
#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();) { boo...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
1,468,498
1,468,499
u290749017
cpp
p03854
#include <bits/stdc++.h> #define mp make_pair #define pb push_back #define REP(i, a, n) for (int i = a; i < (n); i++) #define rep(i, n) for (int i = 0; i < (n); i++) #define all(s) s.begin(), s.end() #define rall(s) s.rbegin(), s.rend() #define range(x, min, max) ((min) <= (x) && (x) <= (max)) #define xyrange(x, minX,...
#include <bits/stdc++.h> #define mp make_pair #define pb push_back #define REP(i, a, n) for (int i = a; i < (n); i++) #define rep(i, n) for (int i = 0; i < (n); i++) #define all(s) s.begin(), s.end() #define rall(s) s.rbegin(), s.rend() #define range(x, min, max) ((min) <= (x) && (x) <= (max)) #define xyrange(x, minX,...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,468,513
1,468,514
u577555841
cpp
p03854
#include <cstdio> #include <iostream> #include <map> #include <set> #include <string> #include <vector> using namespace std; string s; map<string, int> sarray; bool dfs(string ts, int pos) { if (pos == ts.size() - 1) { return true; } bool flag = false; map<string, int>::iterator it = sarray.begin(); wh...
#include <cstdio> #include <iostream> #include <map> #include <set> #include <string> #include <vector> using namespace std; string s; map<string, int> sarray; bool dfs(string ts, int pos) { if (pos == ts.size()) { return true; } bool flag = false; map<string, int>::iterator it = sarray.begin(); while ...
[ "expression.operation.binary.remove" ]
1,468,534
1,468,535
u080348635
cpp
p03854
#include <iostream> #include <string> using namespace std; bool check(const string &S, string::size_type s) { if (s == S.size()) return true; const string str[] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < sizeof(str) / sizeof(str[0]); ++i) { const auto n = S.find(str[i]); if (n ==...
#include <iostream> #include <string> using namespace std; bool check(const string &S, string::size_type s) { if (s == S.size()) return true; const string str[] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < sizeof(str) / sizeof(str[0]); ++i) { const auto n = S.find(str[i], s); if (n...
[ "call.arguments.add" ]
1,468,545
1,468,546
u033599596
cpp
p03854
#include <iostream> using namespace std; string x, v[] = {"dream", "dreamer", "erase", "erase"}; bool b = 0; void find2(int k) { if (k == x.size()) b = 1; for (int i = 0; i < 4; i++) { if (x.substr(k, v[i].size()) == v[i]) { find2(k + v[i].size()); } } } int main() { cin >> x; find2(0); ...
#include <iostream> using namespace std; string x, v[] = {"dream", "dreamer", "erase", "eraser"}; bool b = 0; void find2(int k) { if (k == x.size()) b = 1; for (int i = 0; i < 4; i++) { if (x.substr(k, v[i].size()) == v[i]) { find2(k + v[i].size()); } } } int main() { cin >> x; find2(0); ...
[ "literal.string.change" ]
1,468,547
1,468,548
u945480407
cpp
p03854
#include <bits/stdc++.h> #define LL long long #define pb push_back #define mp make_pair #define fi first #define sc second using namespace std; int main() { int last = 0; string a = "erase", b = "dream", c = "aser"; string s; cin >> s; for (int i = 0; i < s.size(); i++) { // cout<<i<<endl; bool check...
#include <bits/stdc++.h> #define LL long long #define pb push_back #define mp make_pair #define fi first #define sc second using namespace std; int main() { int last = 0; string a = "erase", b = "dream", c = "aser"; string s; cin >> s; for (int i = 0; i < s.size(); i++) { // cout<<i<<endl; bool check...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,468,549
1,468,550
u327227298
cpp
p03855
#include <iostream> #include <map> using namespace std; #define MAX_N 200000 class Tree { public: void initialize(int n); int findParent(int x); void connectNodes(int x, int y); private: int parent[MAX_N]; int depth[MAX_N]; }; void Tree::initialize(int n) { for (int i = 0; i < n; i++) { //結合前は親は自身 ...
#include <iostream> #include <map> using namespace std; #define MAX_N 200000 class Tree { public: void initialize(int n); int findParent(int x); void connectNodes(int x, int y); private: int parent[MAX_N]; int depth[MAX_N]; }; void Tree::initialize(int n) { for (int i = 0; i < n; i++) { //結合前は親は自身 ...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
1,468,567
1,468,566
u074220993
cpp
p03855
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define REP(i, a, n) for (int i = (a); i < (n); ++i) using namespace std; typedef long long ll; struct UnionFind { vector<int> par; UnionFind(int n) : par(n, -1) {} void init(int n) { par.assign(n, -1); } int root(int x) { return par[x]...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define REP(i, a, n) for (int i = (a); i < (n); ++i) using namespace std; typedef long long ll; struct UnionFind { vector<int> par; UnionFind(int n) : par(n, -1) {} void init(int n) { par.assign(n, -1); } int root(int x) { return par[x]...
[]
1,468,612
1,468,613
u215692812
cpp
p03855
#include <algorithm> #include <bitset> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <string.h> #include <unordered_map> #include <unordered_set> #include <vector> using ll = long long; #defin...
#include <algorithm> #include <bitset> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <string.h> #include <unordered_map> #include <unordered_set> #include <vector> using ll = long long; #defin...
[ "identifier.change", "assignment.change" ]
1,468,632
1,468,633
u926242698
cpp
p03855
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include <prettyprint.hpp> #define debug(...) cerr << "[" << #__VA_ARGS__ << "]: ", d_err(__VA_ARGS__); #else #define debug(...) 83; #endif void d_err() { cerr << endl; } template <typename H, typename... T> void d_err(H h, T......
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include <prettyprint.hpp> #define debug(...) cerr << "[" << #__VA_ARGS__ << "]: ", d_err(__VA_ARGS__); #else #define debug(...) 83; #endif void d_err() { cerr << endl; } template <typename H, typename... T> void d_err(H h, T......
[ "call.arguments.add", "literal.number.change", "control_flow.branch.if.condition.change" ]
1,468,712
1,468,713
u089177147
cpp
p03855
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> P; const ll mod = 1000000007; struct UnionFind { vector<long long> par, height, size; UnionFind(ll N) : par(N), height(N), size(N) { for (ll i = 0; i < N; i++) { par.at(i) = i; height.at(i) = 1; size.at(i)...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> P; const ll mod = 1000000007; struct UnionFind { vector<long long> par, height, size; UnionFind(ll N) : par(N), height(N), size(N) { for (ll i = 0; i < N; i++) { par.at(i) = i; height.at(i) = 1; size.at(i)...
[ "expression.operation.binary.add" ]
1,468,718
1,468,719
u696486967
cpp
p03855
#ifndef ___Rank_Union_Find #define ___Rank_Union_Find #include <vector> // ------ Class ------ // class UnionFind { private: unsigned size_; std::vector<unsigned> par, rank; public: UnionFind() : size_(0), par(std::vector<unsigned>()), rank(std::vector<unsigned>()){}; UnionFind(unsigned size__) : size_...
#ifndef ___Rank_Union_Find #define ___Rank_Union_Find #include <vector> // ------ Class ------ // class UnionFind { private: unsigned size_; std::vector<unsigned> par, rank; public: UnionFind() : size_(0), par(std::vector<unsigned>()), rank(std::vector<unsigned>()){}; UnionFind(unsigned size__) : size_...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,468,749
1,468,750
u837745858
cpp
p03856
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; #define sz(x) (int)((x).size()) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define endl '\n' #define x first #define y second #define int long long #define double long double #define pii pair<int, int> #define p...
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; #define sz(x) (int)((x).size()) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define endl '\n' #define x first #define y second #define int long long #define double long double #define pii pair<int, int> #define p...
[ "call.arguments.change", "expression.operation.binary.change", "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
1,468,755
1,468,756
u157759251
cpp
p03856
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; #define sz(x) (int)((x).size()) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define endl '\n' #define x first #define y second #define int long long #define double long double #define pii pair<int, int> #define p...
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; #define sz(x) (int)((x).size()) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define endl '\n' #define x first #define y second #define int long long #define double long double #define pii pair<int, int> #define p...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.arguments.change", "expression.operation.binary.change", "identifier.change", "variable_access.subscript.index.change" ]
1,468,757
1,468,756
u157759251
cpp
p03856
#include <bits/stdc++.h> std::string c[4] = {"dream", "dreamer", "erase", "eraser"}; #ifdef ONLINE_JUDGE bool dp[100010]; #else bool dp[100]; #endif std::string s; int main() { std::cin >> s; dp[0] = 1; for (int i = 5; i <= s.size(); ++i) { for (int j = 0; j < 3; ++j) { if (i >= (int)c[j].size() && ...
#include <bits/stdc++.h> std::string c[4] = {"dream", "dreamer", "erase", "eraser"}; #ifdef ONLINE_JUDGE bool dp[100010]; #else bool dp[100]; #endif std::string s; int main() { std::cin >> s; dp[0] = 1; for (int i = 5; i <= s.size(); ++i) { for (int j = 0; j < 4; ++j) { if (i >= (int)c[j].size() && ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
1,468,760
1,468,761
u369520939
cpp
p03856
#include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; using vi = vector<ll>; using vvi = vector<vi>; using vb = vector<bool>; using vs = vector<string>; using vp = vector<pii>; #define pb push_back #define mp make_pair #define fi first #define se second #define sz(x) (ll)((x).siz...
#include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; using vi = vector<ll>; using vvi = vector<vi>; using vb = vector<bool>; using vs = vector<string>; using vp = vector<pii>; #define pb push_back #define mp make_pair #define fi first #define se second #define sz(x) (ll)((x).siz...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,468,767
1,468,768
u073139376
cpp
p03856
#include <bits/stdc++.h> using namespace std; string S; int dp[100100]; int ask(int x) { if (x == -1) return 1; if (dp[x] != -1) return dp[x]; int as = 0; if (x >= 4) { if (S[x] == 'm' && S[x - 1] == 'a' && S[x - 2] == 'e' && S[x - 3] == 'r' && S[x - 4] == 'd') as = as | ask(x - 5); ...
#include <bits/stdc++.h> using namespace std; string S; int dp[100100]; int ask(int x) { if (x == -1) return 1; if (dp[x] != -1) return dp[x]; int as = 0; if (x >= 4) { if (S[x] == 'm' && S[x - 1] == 'a' && S[x - 2] == 'e' && S[x - 3] == 'r' && S[x - 4] == 'd') as = as | ask(x - 5); ...
[ "control_flow.return.add" ]
1,468,794
1,468,795
u938024002
cpp
p03856
#include <iostream> using namespace std; const string words[] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s, result = "YES"; cin >> s; for (int i = s.size(); i >= 0;) { bool found = false; for (auto &w : words) { if (i >= w.size() && s.compare(i - w.size(), w.size(), w) == 0) { ...
#include <iostream> using namespace std; const string words[] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s, result = "YES"; cin >> s; for (int i = s.size(); i > 0;) { bool found = false; for (auto &w : words) { if (i >= w.size() && s.compare(i - w.size(), w.size(), w) == 0) { ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
1,468,798
1,468,799
u085367022
cpp
p03856
#include <bits/stdc++.h> using namespace std; #define rep0(i, n) for (ll(i) = 0; (i) < (n); ++(i)) #define rrep0(i, n) for (ll(i) = (n)-1; (i) >= 0; --(i)) #define rep1(i, n) for (ll(i) = 1; (i) < (n); ++(i)) #define rrep1(i, n) for (ll(i) = (n)-1; (i) >= 1; --(i)) #define nfor(i, a, b) for (ll(i) = (a); (i) < (b); ++(...
#include <bits/stdc++.h> using namespace std; #define rep0(i, n) for (ll(i) = 0; (i) < (n); ++(i)) #define rrep0(i, n) for (ll(i) = (n)-1; (i) >= 0; --(i)) #define rep1(i, n) for (ll(i) = 1; (i) < (n); ++(i)) #define rrep1(i, n) for (ll(i) = (n)-1; (i) >= 1; --(i)) #define nfor(i, a, b) for (ll(i) = (a); (i) < (b); ++(...
[ "identifier.change" ]
1,468,800
1,468,801
u801513186
cpp
p03856
//#pragma GCC optimize("Ofast") //#pragma GCC optimize ("unroll-loops") //#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #pragma warning(disable : 4786) #pragma warning(disable : 4996) #include <algorithm> #include <array> #include <assert.h> #include <bitset> #include <cmath> #include <...
//#pragma GCC optimize("Ofast") //#pragma GCC optimize ("unroll-loops") //#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #pragma warning(disable : 4786) #pragma warning(disable : 4996) #include <algorithm> #include <array> #include <assert.h> #include <bitset> #include <cmath> #include <...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
1,468,806
1,468,807
u484505863
cpp
p03856
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using std::cerr; using std::cin; using std::cout; using std::endl; using std::bitset; using std::deque; us...
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using std::cerr; using std::cin; using std::cout; using std::endl; using std::bitset; using std::deque; us...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,468,814
1,468,815
u798339690
cpp
p03856
#include <bits/stdc++.h> using namespace std; char er[] = "erase"; char dr[] = "dream"; int main() { string str; cin >> str; int len = str.size(); int flag = 0; for (int i = 0; i < len; i++) { if (str[i] == 'd') // dream--- { int j = i; for (j = i; j <= i + 4; j++) { if (j >= len |...
#include <bits/stdc++.h> using namespace std; char er[] = "erase"; char dr[] = "dream"; int main() { string str; cin >> str; int len = str.size(); int flag = 0; for (int i = 0; i < len; i++) { if (str[i] == 'd') // dream---,县推理到dreamer { int j = i; for (j = i; j <= i + 4; j++) { if...
[ "assignment.change" ]
1,468,820
1,468,821
u513051984
cpp
p03856
#include <bits/stdc++.h> using namespace std; char er[] = "erase"; char dr[] = "dream"; int main() { string str; cin >> str; int len = str.size(); int flag = 0; for (int i = 0; i < len; i++) { if (str[i] == 'd') // dream--- { int j = i; for (j = i; j <= i + 4; j++) { if (j >= len |...
#include <bits/stdc++.h> using namespace std; char er[] = "erase"; char dr[] = "dream"; int main() { string str; cin >> str; int len = str.size(); int flag = 0; for (int i = 0; i < len; i++) { if (str[i] == 'd') // dream---,县推理到dreamer { int j = i; for (j = i; j <= i + 4; j++) { if...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "assignment.change" ]
1,468,822
1,468,821
u513051984
cpp
p03856
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #incl...
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #incl...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,829
1,468,830
u043443359
cpp
p03856
// vvvvvvvvvvvv TEMPLATE vvvvvvvvvvvv #include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; const ll linf = 1e18; const double eps = 1e-12, pi = acos(-1); #define FOR(i, a, b) for (ll i = (a), __last_##i = (b); i < __last_##i; i++) #define RFOR(i, a, b) for (ll i = (b)-1, __last_##...
// vvvvvvvvvvvv TEMPLATE vvvvvvvvvvvv #include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; const ll linf = 1e18; const double eps = 1e-12, pi = acos(-1); #define FOR(i, a, b) for (ll i = (a), __last_##i = (b); i < __last_##i; i++) #define RFOR(i, a, b) for (ll i = (b)-1, __last_##...
[ "literal.string.change", "literal.string.case.change", "function.return_value.change" ]
1,468,856
1,468,857
u518019145
cpp
p03856
// include //------------------------------------------ #include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #...
// include //------------------------------------------ #include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,858
1,468,859
u259053514
cpp
p03856
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<ll> vl; typedef pair<int, int> P; typedef pair<ll, ll> PL; #define INF 1 << 30 #define LINF 1ll << 60ll #define MOD 1000000007 #define pb(a) push_back(a) ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<ll> vl; typedef pair<int, int> P; typedef pair<ll, ll> PL; #define INF 1 << 30 #define LINF 1ll << 60ll #define MOD 1000000007 #define pb(a) push_back(a) ...
[ "control_flow.break.remove", "control_flow.return.add", "function.return_value.change" ]
1,468,875
1,468,876
u502709453
cpp
p03856
#include <algorithm> #include <cmath> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; const int inf = 1e9, dx[] = {-1, 0, 1, 0}, dy[] = {0, -1, 0, 1}; string s, word[] = {"dream", "erase", ...
#include <algorithm> #include <cmath> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; const int inf = 1e9, dx[] = {-1, 0, 1, 0}, dy[] = {0, -1, 0, 1}; string s, word[] = {"dream", "erase", ...
[ "expression.operation.binary.remove" ]
1,468,886
1,468,887
u965118468
cpp
p03856
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> Pl; int main() { string t[4] = {"dream", "dreamer", "erase", "eraser"}; string s; cin >> s; int pos = s.length() - 1; bool flag; while (true) { flag = false; for (int i = 0; i < 4; i++) { for (int j = 0; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> Pl; int main() { string t[4] = {"dream", "dreamer", "erase", "eraser"}; string s; cin >> s; int pos = s.length() - 1; bool flag; while (true) { flag = false; for (int i = 0; i < 4; i++) { for (int j = 0; ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,890
1,468,891
u085486962
cpp
p03856
#include <bits/stdc++.h> using namespace std; int main() { string str[4] = {"dream", "dreamer", "erase", "eraser"}; string s; bool flg; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; i++) { reverse(str[i].begin(), str[i].end()); } for (int i = 0; i < s.size();) { flg = false; ...
#include <bits/stdc++.h> using namespace std; int main() { string str[4] = {"dream", "dreamer", "erase", "eraser"}; string s; bool flg; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; i++) { reverse(str[i].begin(), str[i].end()); } for (int i = 0; i < s.size();) { flg = false; ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,894
1,468,895
u939641510
cpp
p03856
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <limits.h> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #inclu...
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <limits.h> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #inclu...
[ "identifier.change", "call.function.change", "io.output.change" ]
1,468,900
1,468,901
u745906650
cpp
p03856
#include <algorithm> #include <bitset> #include <iostream> #include <math.h> #include <queue> #include <vector> using namespace std; typedef long long ll; typedef pair<int, int> P; typedef pair<int, P> P2; const int inf = 1000000000; int main() { string s; cin >> s; bool flg = true; int ls = s.length(); whil...
#include <algorithm> #include <bitset> #include <iostream> #include <math.h> #include <queue> #include <vector> using namespace std; typedef long long ll; typedef pair<int, int> P; typedef pair<int, P> P2; const int inf = 1000000000; int main() { string s; cin >> s; bool flg = true; int ls = s.length(); whil...
[ "literal.number.change", "control_flow.branch.if.condition.change", "assignment.value.change" ]
1,468,911
1,468,912
u707053380
cpp
p03856
#include <iostream> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define y0 yy #define y1 Yy #define yn YY #include <algorithm> #include <assert.h> #include <string> #include <vector> using namespace std; string s; int main() { ios::sync_with_stdio(false); cin >> s; int pos = 0; ...
#include <iostream> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define y0 yy #define y1 Yy #define yn YY #include <algorithm> #include <assert.h> #include <string> #include <vector> using namespace std; string s; int main() { ios::sync_with_stdio(false); cin >> s; int pos = 0; ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,468,933
1,468,934
u552871939
cpp
p03856
#include <bits/stdc++.h> using namespace std; #define ll long long #define vvi vector<vector<int>> #define vi vector<int> #define All(X) X.begin(), X.end() #define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define pb push_back #define pii pair<int, int>...
#include <bits/stdc++.h> using namespace std; #define ll long long #define vvi vector<vector<int>> #define vi vector<int> #define All(X) X.begin(), X.end() #define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define pb push_back #define pii pair<int, int>...
[ "literal.number.change", "control_flow.branch.if.condition.change", "call.arguments.change", "expression.operation.binary.change" ]
1,468,943
1,468,944
u086355897
cpp
p03856
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < ((int)(n)); i++) #define reg(i, a, b) for (int i = ((int)(a)); i...
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < ((int)(n)); i++) #define reg(i, a, b) for (int i = ((int)(a)); i...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,951
1,468,952
u844177429
cpp
p03856
#include <algorithm> #include <iostream> #include <string> #include <vector> #define mod 1000000007 #define INF 10000000 using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<double> vd; typedef vector<ll> vl; bool solve(int); string s1, s2, s3, s4; string s; int main() { cin >> s; for ...
#include <algorithm> #include <iostream> #include <string> #include <vector> #define mod 1000000007 #define INF 10000000 using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<double> vd; typedef vector<ll> vl; bool solve(int); string s1, s2, s3, s4; string s; int main() { cin >> s; for ...
[ "control_flow.branch.if.condition.change" ]
1,468,958
1,468,959
u109105878
cpp
p03856
#include <bits/stdc++.h> using namespace std; const long long MOD = 1000000007; using ll = long long; int main() { string S; cin >> S; vector<string> ts = {"dreamera", "dreamer", "dream", "eraser", "erase"}; for (int i = 0; i < S.size();) { bool ok = false; for (string &t : ts) { if (S.substr(i, ...
#include <bits/stdc++.h> using namespace std; const long long MOD = 1000000007; using ll = long long; int main() { string S; cin >> S; vector<string> ts = {"dreameraser", "dreamerase", "dreamer", "dream", "eraser", "erase"}; for (int i = 0; i < S.size();) { bool ok = false;...
[ "literal.string.change" ]
1,468,965
1,468,964
u783174124
cpp
p03856
#include <bits/stdc++.h> using namespace std; #define INF 1000000000 #define REP(i, n) for (int(i) = 0; (i) < (int)(n); (i)++) string S; bool check[100002]; int main() { cin >> S; REP(i, 100001) { check[i] = false; } check[0] = true; string d = "dream"; string d2 = "dreamer"; string e = "erase"; string e...
#include <bits/stdc++.h> using namespace std; #define INF 1000000000 #define REP(i, n) for (int(i) = 0; (i) < (int)(n); (i)++) string S; bool check[100002]; int main() { cin >> S; REP(i, 100001) { check[i] = false; } check[0] = true; string d = "dream"; string d2 = "dreamer"; string e = "erase"; string e...
[ "literal.string.change", "literal.string.case.change", "io.output.change", "control_flow.return.add", "control_flow.return.0.add" ]
1,468,968
1,468,969
u723297297
cpp
p03856
#include <iostream> #include <string> using namespace std; int main() { string str, rev, sub; int flag = 0; cin >> str; string::iterator it = str.end() - 1; while (it != str.begin()) { rev += *it; it--; } rev += *it; while (!rev.empty()) { sub = rev.substr(0, 5); if (sub == "maerd" || ...
#include <iostream> #include <string> using namespace std; int main() { string str, rev, sub; int flag = 0; cin >> str; string::iterator it = str.end() - 1; while (it != str.begin()) { rev += *it; it--; } rev += *it; while (!rev.empty()) { sub = rev.substr(0, 5); if (sub == "maerd" || ...
[ "literal.string.change", "io.output.change" ]
1,468,970
1,468,971
u509674552
cpp
p03856
#include <iostream> #include <string> using namespace std; int main() { string str, rev, sub; int flag = 0; cin >> str; string::iterator it = str.end() - 1; while (it != str.begin()) { rev += *it; it--; } rev += *it; while (!rev.empty()) { sub = rev.substr(0, 5); if (sub == "maerd" || ...
#include <iostream> #include <string> using namespace std; int main() { string str, rev, sub; int flag = 0; cin >> str; string::iterator it = str.end() - 1; while (it != str.begin()) { rev += *it; it--; } rev += *it; while (!rev.empty()) { sub = rev.substr(0, 5); if (sub == "maerd" || ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,972
1,468,971
u509674552
cpp
p03856
#include <iostream> #include <string> using namespace std; string data1, temp; bool flag = true; int main() { cin >> data1; for (int i = 0; i < data1.size();) { if ((data1.substr(i, 6)) == "eraser") i += 6; else if (data1.substr(i, 5) == "erase") i += 5; else if (data1.substr(i, 7) == "dream...
#include <iostream> #include <string> using namespace std; string data1, temp; bool flag = true; int main() { cin >> data1; for (int i = 0; i < data1.size();) { if ((data1.substr(i, 6)) == "eraser") i += 6; else if (data1.substr(i, 5) == "erase") i += 5; else if (data1.substr(i, 7) == "dream...
[ "literal.number.change", "control_flow.branch.if.condition.change", "assignment.value.change" ]
1,468,973
1,468,974
u045142801
cpp
p03856
#include <bits/stdc++.h> #define REP(i, n, s) for (LL i = (s); i < (n); i++) #define SIZE 1 using namespace std; typedef long long int LL; typedef long double LD; string S; int main() { ios::sync_with_stdio(0); cin.tie(0); cin >> S; regex r("(dream|dreamer|erase|eraser)+$"); smatch match; if (regex_match...
#include <bits/stdc++.h> #define REP(i, n, s) for (LL i = (s); i < (n); i++) #define SIZE 1 using namespace std; typedef long long int LL; typedef long double LD; string S; int main() { ios::sync_with_stdio(0); cin.tie(0); cin >> S; regex r("(dream|dreamer|erase|eraser)+$"); smatch match; if (regex_match...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,468,978
1,468,979
u495319009
cpp
p03856
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string.h> #include <string> #include <sys/time.h> #include...
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string.h> #include <string> #include <sys/time.h> #include...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,468,982
1,468,983
u441096482
cpp
p03856
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string.h> #include <string> #include <sys/time.h> #include...
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string.h> #include <string> #include <sys/time.h> #include...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,468,984
1,468,983
u441096482
cpp
p03856
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <time.h> #include <vector> #define sz size() #define pb push_back using namespace std; typedef long long int ll...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <time.h> #include <vector> #define sz size() #define pb push_back using namespace std; typedef long long int ll...
[ "literal.number.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
1,468,989
1,468,990
u841972291
cpp
p03856
#include <stdio.h> #include <string.h> int main() { int i, j, k = 0, cnt = 0, a = 1; char dream[10] = {'d', 'r', 'e', 'a', 'm'}, dreamer[10] = {'d', 'r', 'e', 'a', 'm', 'e', 'r'}, eraser[10] = {'e', 'r', 'a', 's', 'e', 'r'}, erase[10] = {'e', 'r', 'a', 's', 'e'}; char T[100005]; int cek[100...
#include <stdio.h> #include <string.h> int main() { int i, j, k = 0, cnt = 0, a = 1; char dream[10] = {'d', 'r', 'e', 'a', 'm'}, dreamer[10] = {'d', 'r', 'e', 'a', 'm', 'e', 'r'}, eraser[10] = {'e', 'r', 'a', 's', 'e', 'r'}, erase[10] = {'e', 'r', 'a', 's', 'e'}; char T[100005]; int cek[100...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
1,468,995
1,468,996
u522098953
cpp
p03856
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using u32 = uint32_t; using vi = vector<int>; using vvi = vector<vi>; using vb = vector<bool>; using vvb = vector<vb>; using vl = vector<ll>; using vvl = vector<vl>; using vd = vector<double>; using vvd = vector<vd>; #define RE...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using u32 = uint32_t; using vi = vector<int>; using vvi = vector<vi>; using vb = vector<bool>; using vvb = vector<vb>; using vl = vector<ll>; using vvl = vector<vl>; using vd = vector<double>; using vvd = vector<vd>; #define RE...
[ "literal.number.change", "call.arguments.change" ]
1,468,997
1,468,998
u273357559
cpp
p03854
#include <algorithm> #include <cmath> #include <iostream> #include <limits> #include <vector> #define MAX 100000000 using namespace std; string di[4] = {"dream", "dreamer", "erase", "eraser"}; int main(void) { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i <= 3; i++) { reverse(di[i].be...
#include <algorithm> #include <cmath> #include <iostream> #include <limits> #include <vector> #define MAX 100000000 using namespace std; string di[4] = {"dream", "dreamer", "erase", "eraser"}; int main(void) { string S; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i <= 3; i++) { reverse(di[i].be...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,469,005
1,469,006
u789417951
cpp
p03854
/* vim:set foldmethod=marker: */ #include <bits/stdc++.h> using namespace std; //{{{ #define all(x) (x).begin(), (x).end() #define REP(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define RREP(i, a, b) for (int i = (int)(a); i >= b; i--) #define rep(i, n) REP(i, 0, n) #define rrep(i, n) RREP(i, n, 0) #define pb(...
/* vim:set foldmethod=marker: */ #include <bits/stdc++.h> using namespace std; //{{{ #define all(x) (x).begin(), (x).end() #define REP(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define RREP(i, a, b) for (int i = (int)(a); i >= b; i--) #define rep(i, n) REP(i, 0, n) #define rrep(i, n) RREP(i, n, 0) #define pb(...
[ "control_flow.branch.if.condition.change" ]
1,469,008
1,469,009
u018539875
cpp
p03854
/* vim:set foldmethod=marker: */ #include <bits/stdc++.h> using namespace std; //{{{ #define all(x) (x).begin(), (x).end() #define REP(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define RREP(i, a, b) for (int i = (int)(a); i >= b; i--) #define rep(i, n) REP(i, 0, n) #define rrep(i, n) RREP(i, n, 0) #define pb(...
/* vim:set foldmethod=marker: */ #include <bits/stdc++.h> using namespace std; //{{{ #define all(x) (x).begin(), (x).end() #define REP(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define RREP(i, a, b) for (int i = (int)(a); i >= b; i--) #define rep(i, n) REP(i, 0, n) #define rrep(i, n) RREP(i, n, 0) #define pb(...
[ "control_flow.branch.if.condition.change" ]
1,469,010
1,469,009
u018539875
cpp
p03854
#include <bits/stdc++.h> using namespace std; vector<string> S = {"dreamer", "dream", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < S.size(); i++) { reverse(S[i].begin(), S[i].end()); } int n = s.size(); for (int i = 0; i < n;) { bool ok ...
#include <bits/stdc++.h> using namespace std; vector<string> S = {"dreamer", "dream", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < S.size(); i++) { reverse(S[i].begin(), S[i].end()); } int n = s.size(); for (int i = 0; i < n;) { bool ok ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,469,013
1,469,014
u219873012
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; string res = "YES"; int t = (int)s.size(); while (t > 0) { if (s.substr(max(t - 5, 0), t) == "dream") { t -= 5; continue; } if (s.substr(max(t - 5, 0), t) == "er...
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; string res = "YES"; int t = (int)s.size(); while (t > 0) { if (s.substr(max(t - 5, 0), 5) == "dream") { t -= 5; continue; } if (s.substr(max(t - 5, 0), 5) == "er...
[ "identifier.replace.remove", "literal.replace.add", "control_flow.branch.if.condition.change" ]
1,469,019
1,469,020
u536580583
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; string res = "YES"; int t = (int)s.size(); while (t > 0) { if (t >= 5 && s.substr(max(t - 5, 0), t) == "dream") { t -= 5; continue; } if (t >= 5 && s.substr(max(...
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; string res = "YES"; int t = (int)s.size(); while (t > 0) { if (t >= 5 && s.substr(max(t - 5, 0), 5) == "dream") { t -= 5; continue; } if (t >= 5 && s.substr(max(...
[ "identifier.replace.remove", "literal.replace.add", "control_flow.branch.if.condition.change" ]
1,469,021
1,469,022
u536580583
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 is_possible = true, i...
#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 is_possible = true, i...
[ "literal.string.change", "literal.string.case.change" ]
1,469,031
1,469,032
u132419537
cpp
p03854
#include <bits/stdc++.h> using namespace std; //#define int long long struct Fast { Fast() { std::cin.tie(0); ios::sync_with_stdio(false); } } fast; /* cpp template {{{ */ /* short */ #define pb push_back #define eb emplace_back #define mp make_pair #define Fi first #define Se second #define ALL(v) (v).b...
#include <bits/stdc++.h> using namespace std; //#define int long long struct Fast { Fast() { std::cin.tie(0); ios::sync_with_stdio(false); } } fast; /* cpp template {{{ */ /* short */ #define pb push_back #define eb emplace_back #define mp make_pair #define Fi first #define Se second #define ALL(v) (v).b...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,469,055
1,469,056
u054652697
cpp
p03854
#include <bits/stdc++.h> using namespace std; //#define int long long struct Fast { Fast() { std::cin.tie(0); ios::sync_with_stdio(false); } } fast; /* cpp template {{{ */ /* short */ #define pb push_back #define eb emplace_back #define mp make_pair #define Fi first #define Se second #define ALL(v) (v).b...
#include <bits/stdc++.h> using namespace std; //#define int long long struct Fast { Fast() { std::cin.tie(0); ios::sync_with_stdio(false); } } fast; /* cpp template {{{ */ /* short */ #define pb push_back #define eb emplace_back #define mp make_pair #define Fi first #define Se second #define ALL(v) (v).b...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,469,057
1,469,058
u054652697
cpp
p03854
#include <bits/stdc++.h> using namespace std; //#define int long long struct Fast { Fast() { std::cin.tie(0); ios::sync_with_stdio(false); } } fast; /* cpp template {{{ */ /* short */ #define pb push_back #define eb emplace_back #define mp make_pair #define Fi first #define Se second #define ALL(v) (v).b...
#include <bits/stdc++.h> using namespace std; //#define int long long struct Fast { Fast() { std::cin.tie(0); ios::sync_with_stdio(false); } } fast; /* cpp template {{{ */ /* short */ #define pb push_back #define eb emplace_back #define mp make_pair #define Fi first #define Se second #define ALL(v) (v).b...
[ "variable_declaration.type.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
1,469,059
1,469,058
u054652697
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string divs[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; i++) reverse(divs[i].begin(), divs[i].end()); int i = 0; while (i < s.size()) {...
#include <algorithm> #include <iostream> #include <string> using namespace std; string divs[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; i++) reverse(divs[i].begin(), divs[i].end()); int i = 0; while (i < s.size()) {...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,469,060
1,469,061
u142014975
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define int long long #define all(v) (v).begin(), (v).end() #define resz(v, ...) (v).clear(), (v).resize(__VA_ARGS__) #define reps(i, m, n) for (int i = (int)(m); i < (int)(n); i++) #define rep(i, n) reps(i, 0, n) template <class T1, class T2> void chmin(T1 &a, T2 b) { ...
#include <bits/stdc++.h> using namespace std; #define int long long #define all(v) (v).begin(), (v).end() #define resz(v, ...) (v).clear(), (v).resize(__VA_ARGS__) #define reps(i, m, n) for (int i = (int)(m); i < (int)(n); i++) #define rep(i, n) reps(i, 0, n) template <class T1, class T2> void chmin(T1 &a, T2 b) { ...
[ "literal.string.change" ]
1,469,062
1,469,063
u795689468
cpp