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 <bits/stdc++.h> using namespace std; #define ll long long int main() { string S; cin >> S; string d[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(d[i].begin(), d[i].end()); } bool can = false; for (int i = 0; i <= S.size...
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { string S; cin >> S; string d[4] = {"dream", "dreamer", "erase", "eraser"}; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) { reverse(d[i].begin(), d[i].end()); } bool can = false; for (int i = 0; i < S.size(...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "control_flow.loop.for.update.change", "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
1,466,457
1,466,455
u513072290
cpp
p03854
#include <bits/stdc++.h> using namespace std; int keta(int num) { int ans = 0; int rem; for (int i = 4; i >= 0; i--) { rem = pow(10, i); ans += (num / rem); num = num % rem; } return ans; } int main() { string S, T, tmp; cin >> S; T = {}; string divide[4] = {"dream", "dreamer", "erase"...
#include <bits/stdc++.h> using namespace std; int keta(int num) { int ans = 0; int rem; for (int i = 4; i >= 0; i--) { rem = pow(10, i); ans += (num / rem); num = num % rem; } return ans; } int main() { string S, T, tmp; cin >> S; T = {}; string divide[4] = {"dream", "dreamer", "erase"...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,458
1,466,459
u848474926
cpp
p03854
#include <bits/stdc++.h> using namespace std; int keta(int num) { int ans = 0; int rem; for (int i = 4; i >= 0; i--) { rem = pow(10, i); ans += (num / rem); num = num % rem; } return ans; } int main() { string S, T, tmp; cin >> S; T = {}; string divide[4] = {"dream", "dreamer", "erase"...
#include <bits/stdc++.h> using namespace std; int keta(int num) { int ans = 0; int rem; for (int i = 4; i >= 0; i--) { rem = pow(10, i); ans += (num / rem); num = num % rem; } return ans; } int main() { string S, T, tmp; cin >> S; T = {}; string divide[4] = {"dream", "dreamer", "erase"...
[ "control_flow.loop.for.update.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,460
1,466,459
u848474926
cpp
p03854
#include <algorithm> #include <iostream> #include <string> #include <vector> #define _USE_MATH_DEFINES #include <assert.h> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric...
#include <algorithm> #include <iostream> #include <string> #include <vector> #define _USE_MATH_DEFINES #include <assert.h> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,465
1,466,466
u317177661
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rrep(i, n) for (int i = 1; i <= (int)(n); i++) #define pb push_back #define fi first #define se second #define all(v) v.begin(), v.end() #define mp make_pair using namespace std; typedef pair<int, int> pii; typedef vector<int> vi; typ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rrep(i, n) for (int i = 1; i <= (int)(n); i++) #define pb push_back #define fi first #define se second #define all(v) v.begin(), v.end() #define mp make_pair using namespace std; typedef pair<int, int> pii; typedef vector<int> vi; typ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,466,467
1,466,468
u746428948
cpp
p03854
#pragma region template #include "bits/stdc++.h" using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const long long MOD = 1e9 + 7, MAX = 1e18, larg = 1e5, INF = -1e9; long long A, B, C, D, E, F, G, H, I, J, K, L, N, M, O, P, Q, R, S, T, U, V, W; typedef long long ll; typedef pair<ll, ll> Pa; int...
#pragma region template #include "bits/stdc++.h" using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const long long MOD = 1e9 + 7, MAX = 1e18, larg = 1e5, INF = -1e9; long long A, B, C, D, E, F, G, H, I, J, K, L, N, M, O, P, Q, R, S, T, U, V, W; typedef long long ll; typedef pair<ll, ll> Pa; int...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,469
1,466,470
u554988565
cpp
p03854
#include "bits/stdc++.h" using namespace std; int main() { string s; cin >> s; string d[4] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(d[i].begin(), d[i].end()); } reverse(s.begin(), s.end()); bool flag = true; bool ans = true; while (flag) { bool f2 = fal...
#include "bits/stdc++.h" using namespace std; int main() { string s; cin >> s; string d[4] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(d[i].begin(), d[i].end()); } reverse(s.begin(), s.end()); bool flag = true; bool ans = true; while (flag) { bool f2 = fal...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,485
1,466,486
u562132933
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); ++i) #define sayyes cout << "Yes" << endl; #define sayno cout << "No" << endl; #define vv(a, b) vector<vector<int>> v(a, vector<int>(b, 0)); using namespace std; typedef long long ll; typedef pair<int, int> P; const int mod = 1e9 + 7; string s; bool re...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); ++i) #define sayyes cout << "YES" << endl; #define sayno cout << "NO" << endl; #define vv(a, b) vector<vector<int>> v(a, vector<int>(b, 0)); using namespace std; typedef long long ll; typedef pair<int, int> P; const int mod = 1e9 + 7; string s; bool re...
[ "preprocessor.define.value.change" ]
1,466,490
1,466,491
u721082205
cpp
p03854
#include <bits/stdc++.h> #define PI 3.141592653589 #define ll long long using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s, t; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end()); bool can = ...
#include <bits/stdc++.h> #define PI 3.141592653589 #define ll long long using namespace std; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s, t; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; ++i) reverse(divide[i].begin(), divide[i].end()); bool can = ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,494
1,466,495
u145562832
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()); bool strCreatable = 1; ...
#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()); bool strCreatable = 1; ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,517
1,466,518
u752006685
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string stlip[4] = {"dream", "dreamer", "eraser", "erase"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); bool can = true; for (int i = 0; i < s.size();) { can = false; for (int j = 0; j < 4; j++) { ...
#include <algorithm> #include <iostream> #include <string> using namespace std; string stlip[4] = {"dream", "dreamer", "eraser", "erase"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); bool can = true; for (int i = 0; i < s.size();) { can = false; for (int j = 0; j < 4; j++) { ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,521
1,466,522
u982152304
cpp
p03854
#include <bits/stdc++.h> #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 c = true; for (int ...
#include <bits/stdc++.h> #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 c = true; for (int ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,537
1,466,538
u424542120
cpp
p03854
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (n); i++) #define rep1(i, n) for (int i = 1; i <= (n); i++) using namespace std; typedef long long ll; typedef pair<int, int> P; const static ll MOD = (1e+9) + 7; int main() { string S; cin >> S; int i = S.size() - 1; bool f...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (n); i++) #define rep1(i, n) for (int i = 1; i <= (n); i++) using namespace std; typedef long long ll; typedef pair<int, int> P; const static ll MOD = (1e+9) + 7; int main() { string S; cin >> S; int i = S.size() - 1; bool f...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,541
1,466,542
u480887263
cpp
p03854
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vector<int>> vvi; typedef vector<string> vs; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep1(i, n) for (int i = 1; i <= (n); i++) #define all(x) (x).begin(), (x).end() constexpr auto INF = 500000000...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vector<int>> vvi; typedef vector<string> vs; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep1(i, n) for (int i = 1; i <= (n); i++) #define all(x) (x).begin(), (x).end() constexpr auto INF = 500000000...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,554
1,466,555
u595084562
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); string key[] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(key[i].begin(), key[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()); string key[] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { reverse(key[i].begin(), key[i].end()); } bool can = true; for (int i = 0; i < s.size();) { bool can2 =...
[ "literal.string.change", "literal.string.case.change", "expression.operation.binary.change" ]
1,466,578
1,466,579
u369712616
cpp
p03854
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <vector> #define _USE_MATH_DEFINES #include <cassert> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #in...
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <vector> #define _USE_MATH_DEFINES #include <cassert> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #in...
[ "literal.string.change", "literal.string.case.change", "function.return_value.change" ]
1,466,580
1,466,581
u655723240
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; vector<string> t = {"eraser", "erase", "dreamer", "dream"}; for (string &x : t) { while (true) { size_t i = s.find(x, 0); if (i == -1) break; s.replace(i, i...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; vector<string> t = {"eraser", "erase", "dreamer", "dream"}; for (string &x : t) { while (true) { size_t i = s.find(x); if (i == -1) break; s.replace(i, x.si...
[ "call.arguments.change", "expression.operation.binary.remove" ]
1,466,584
1,466,585
u254871849
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; vector<string> t = {"eraser", "erase", "dreamer", "dream"}; for (string &x : t) { while (true) { size_t i = s.find(x); if (i == -1) break; s.replace(i, i + ...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; vector<string> t = {"eraser", "erase", "dreamer", "dream"}; for (string &x : t) { while (true) { size_t i = s.find(x); if (i == -1) break; s.replace(i, x.si...
[ "expression.operation.binary.remove" ]
1,466,586
1,466,585
u254871849
cpp
p03854
#include <algorithm> #include <deque> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <vector> int main() { std::string S; std::cin >> S; std::string s1 = "dream"; std::string s2 = "dreamer...
#include <algorithm> #include <deque> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <vector> int main() { std::string S; std::cin >> S; std::string s1 = "dream"; std::string s2 = "dreamer...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
1,466,595
1,466,596
u339419997
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string checklist[] = {"dream", "dreamer", "erase", "eraser"}; string S = ""; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(checklist[i].begin(), checklist[i].end()); int check_pos = 0; string res = "Yes"; whil...
#include <bits/stdc++.h> using namespace std; int main() { string checklist[] = {"dream", "dreamer", "erase", "eraser"}; string S = ""; cin >> S; reverse(S.begin(), S.end()); for (int i = 0; i < 4; i++) reverse(checklist[i].begin(), checklist[i].end()); int check_pos = 0; string res = "YES"; whil...
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change", "assignment.value.change" ]
1,466,597
1,466,598
u295311906
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; string S2 = S; int len = S.length(); for (int i = 0; i < len; ++i) { S2[i] = S[len - 1 - i]; } int p = 0; while (1) { if (len == 0) { cout << "Yes" << endl; break; } string sub = S2.substr(p, ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; string S2 = S; int len = S.length(); for (int i = 0; i < len; ++i) { S2[i] = S[len - 1 - i]; } int p = 0; while (1) { if (len == 0) { cout << "YES" << endl; break; } string sub = S2.substr(p, ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,599
1,466,600
u701527888
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 = 1; for (int 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 can = 1; for (int i ...
[ "control_flow.return.remove", "control_flow.break.add" ]
1,466,606
1,466,607
u223504018
cpp
p03854
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long const int mod = 1000000007; const ll INF = 1000000000000000000; string T[] = {"dream", "dreamer", "erase", "eras...
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long const int mod = 1000000007; const ll INF = 1000000000000000000; string T[] = {"dream", "dreamer", "erase", "eras...
[ "expression.operation.binary.remove" ]
1,466,615
1,466,616
u475843109
cpp
p03854
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long const int mod = 1000000007; const ll INF = 1000000000000000000; string T[] = {"dream", "dreamer", "erase", "eras...
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long const int mod = 1000000007; const ll INF = 1000000000000000000; string T[] = {"dream", "dreamer", "erase", "eras...
[ "control_flow.break.remove", "control_flow.continue.add", "expression.operation.binary.remove" ]
1,466,617
1,466,616
u475843109
cpp
p03854
#include <bits/stdc++.h> using namespace std; // repetition #define FOR(i, a, b) for (ll i = (a); i < (b); ++i) #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) // container util #define all(x) (x).begin(), (x).end() // typedef typedef long long ll; typedef vector<int> VI; typedef vector<VI> VVI; typedef vector<ll...
#include <bits/stdc++.h> using namespace std; // repetition #define FOR(i, a, b) for (ll i = (a); i < (b); ++i) #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) // container util #define all(x) (x).begin(), (x).end() // typedef typedef long long ll; typedef vector<int> VI; typedef vector<VI> VVI; typedef vector<ll...
[ "literal.string.change" ]
1,466,624
1,466,625
u336011173
cpp
p03854
#include <bits/stdc++.h> using namespace std; using ll = long long; using VI = vector<ll>; using VV = vector<VI>; using VS = vector<string>; // tourist set template <typename A, typename B> string to_string(pair<A, B> p); template <typename A, typename B, typename C> string to_string(tuple<A, B, C> p); template <typ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using VI = vector<ll>; using VV = vector<VI>; using VS = vector<string>; // tourist set template <typename A, typename B> string to_string(pair<A, B> p); template <typename A, typename B, typename C> string to_string(tuple<A, B, C> p); template <typ...
[ "control_flow.branch.if.condition.change", "assignment.value.change", "identifier.change" ]
1,466,630
1,466,631
u432688695
cpp
p03854
#include <bits/stdc++.h> #define F first #define S second #define MP make_pair #define pb push_back #define all(a) a.begin(), a.end() #define rall(a) a.rbegin(), a.rend() #define LCM(a, b) (a) / __gcd((a), (b)) * (b) #define CEIL(a, b) (a) / (b) + (((a) % (b)) ? 1 : 0) #define ln '\n' using namespace std; typedef lo...
#include <bits/stdc++.h> #define F first #define S second #define MP make_pair #define pb push_back #define all(a) a.begin(), a.end() #define rall(a) a.rbegin(), a.rend() #define LCM(a, b) (a) / __gcd((a), (b)) * (b) #define CEIL(a, b) (a) / (b) + (((a) % (b)) ? 1 : 0) #define ln '\n' using namespace std; typedef lo...
[ "literal.number.change", "assignment.value.change" ]
1,466,632
1,466,633
u254187258
cpp
p03854
#include <algorithm> #include <iostream> #include <queue> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { string s; cin >> s; string tmp_s; for (int i = s.length() - 1; i >= 0; --i) { tmp_s = s[i] + tmp_s; if (tmp_s.length() < 5) ...
#include <algorithm> #include <iostream> #include <queue> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { string s; cin >> s; string tmp_s; for (int i = s.length() - 1; i >= 0; --i) { tmp_s = s[i] + tmp_s; if (tmp_s.length() < 5) ...
[ "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change" ]
1,466,634
1,466,635
u596311864
cpp
p03854
#include <algorithm> #include <iostream> #include <queue> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { string s; cin >> s; string tmp_s; for (int i = s.length() - 1; i >= 0; --i) { tmp_s = s[i] + tmp_s; if (tmp_s.length() < 5) ...
#include <algorithm> #include <iostream> #include <queue> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { string s; cin >> s; string tmp_s; for (int i = s.length() - 1; i >= 0; --i) { tmp_s = s[i] + tmp_s; if (tmp_s.length() < 5) ...
[ "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,636
1,466,635
u596311864
cpp
p03854
#include <bits/stdc++.h> using namespace std; vector<string> divide = {"dream", "dreamer", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; ++i) reverse(divide.at(i).begin(), divide.at(i).end()); bool ok = true; for (int i = 0; i < s.size();) {...
#include <bits/stdc++.h> using namespace std; vector<string> divide = {"dream", "dreamer", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; ++i) reverse(divide.at(i).begin(), divide.at(i).end()); bool ok = true; for (int i = 0; i < s.size();) {...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,639
1,466,640
u180257813
cpp
p03854
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { string S; cin >> S; int size = S.size(); int i = 0; vector<string> vec{"remaerd", "maerd", "resare", "esare"}; bool is_ok = true; reverse(S.begin(), S.end()); while (i < size) { bool _continue = false; for (int j = 0...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { string S; cin >> S; int size = S.size(); int i = 0; vector<string> vec{"remaerd", "maerd", "resare", "esare"}; bool is_ok = true; reverse(S.begin(), S.end()); while (i < size) { bool _continue = false; for (int j = 0...
[ "expression.operation.binary.remove" ]
1,466,641
1,466,642
u651314218
cpp
p03854
#include <bits/stdc++.h> using namespace std; int test1(string s) { int r = 0; if (s.substr(0, 6) == "dreamer") r = 7; else if (s.substr(0, 4) == "dream") r = 5; else if (s.substr(0, 5) == "eraser") r = 6; else if (s.substr(0, 4) == "erase") r = 5; return r; } int main() { string str; ...
#include <bits/stdc++.h> using namespace std; int test1(string s) { int r = 0; if (s.substr(0, 7) == "dreamer") r = 7; else if (s.substr(0, 5) == "dream") r = 5; else if (s.substr(0, 6) == "eraser") r = 6; else if (s.substr(0, 5) == "erase") r = 5; return r; } int main() { string str; ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,466,643
1,466,644
u016142614
cpp
p03854
#include <algorithm> #include <iostream> #include <string> using namespace std; string divide[4] = {"dream", "dreamer", "erace", "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())...
[ "literal.string.change" ]
1,466,653
1,466,654
u061898182
cpp
p03854
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <set> #include <string> #include <utility> #include <vector> using namespace std; #define rep(i, x, n) for (int i = x; i < n; i++) using ll = long long; string ans; void ps(int n, char a) { for (int i = 0; i < n; i++) ans += a;...
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <set> #include <string> #include <utility> #include <vector> using namespace std; #define rep(i, x, n) for (int i = x; i < n; i++) using ll = long long; string ans; void ps(int n, char a) { for (int i = 0; i < n; i++) ans += a;...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,657
1,466,658
u765815947
cpp
p03854
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <utility> #include <vector> using namespace std; #define rep(i, x, n) for (int i = x; i < n; i++) using ll = long long; string ans; void ps(int n, char a) { for (int i = 0; i < n; i++) ans += a; return; } int main() { stri...
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <utility> #include <vector> using namespace std; #define rep(i, x, n) for (int i = x; i < n; i++) using ll = long long; string ans; void ps(int n, char a) { for (int i = 0; i < n; i++) ans += a; return; } int main() { stri...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,659
1,466,660
u765815947
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define ALL(a) (a).begin(), (a).end() using namespace std; using ll = long long; using P = pair<int, int>; int main() { string s; cin >> s; reverse(ALL(s)); bool flag = true; while (s.size()) { if (s.substr(0, 5) == "maerd") s...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define ALL(a) (a).begin(), (a).end() using namespace std; using ll = long long; using P = pair<int, int>; int main() { string s; cin >> s; reverse(ALL(s)); bool flag = true; while (s.size()) { if (s.substr(0, 5) == "maerd") s...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,466,675
1,466,676
u346629192
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define ALL(a) (a).begin(), (a).end() using namespace std; using ll = long long; using P = pair<int, int>; int main() { string s; cin >> s; reverse(ALL(s)); bool flag = true; while (s.size()) { if (s.substr(0, 5) == "maerd") s...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define ALL(a) (a).begin(), (a).end() using namespace std; using ll = long long; using P = pair<int, int>; int main() { string s; cin >> s; reverse(ALL(s)); bool flag = true; while (s.size()) { if (s.substr(0, 5) == "maerd") s...
[ "literal.number.change", "control_flow.branch.if.condition.change", "assignment.value.change", "call.arguments.change" ]
1,466,677
1,466,676
u346629192
cpp
p03854
#include <stdio.h> #include <string.h> int main(void) { // Your code here! char str[100001]; char tmpstr[100001]; char *test[4] = {"dreamer", "dream", "eraser", "erase"}; scanf("%100000s", str); strcpy(tmpstr, str); while (strlen(str) > 0) { int i; char *index; for (i = 0; i < 4; i++) { ...
#include <stdio.h> #include <string.h> int main(void) { // Your code here! char str[100001]; char tmpstr[100001]; char *test[4] = {"dreamer", "dream", "eraser", "erase"}; scanf("%100000s", str); strcpy(tmpstr, str); while (strlen(str) > 0) { int i; char *index; for (i = 0; i < 4; i++) { ...
[ "expression.operation.unary.reference.add" ]
1,466,678
1,466,679
u154818015
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();) { ...
[ "call.add" ]
1,466,682
1,466,683
u619382421
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S, W; string DE[4] = {"maerd", "esare", "resare", "remaerd"}; int L, N, K; cin >> S; L = S.size(); N = L; bool H = true; reverse(S.begin(), S.end()); while (H) { W = ""; bool H2 = true; if (N == 0) { break; } ...
#include <bits/stdc++.h> using namespace std; int main() { string S, W; string DE[4] = {"maerd", "esare", "resare", "remaerd"}; int L, N, K; cin >> S; L = S.size(); N = L; bool H = true; reverse(S.begin(), S.end()); while (H) { W = ""; bool H2 = true; if (N == 0) { break; } ...
[ "assignment.add" ]
1,466,684
1,466,685
u161593842
cpp
p03848
#include <algorithm> #include <cmath> #include <iostream> #include <vector> static const long long mod = 1e9 + 7; using namespace std; int main() { int n; long long ans = 1; cin >> n; vector<int> a(n); for (int i = 0; i < n; ++i) cin >> a[i]; sort(a.begin(), a.end()); vector<int> b; if (n % 2 == 1)...
#include <algorithm> #include <cmath> #include <iostream> #include <vector> static const long long mod = 1e9 + 7; using namespace std; int main() { int n; long long ans = 1; cin >> n; vector<int> a(n); for (int i = 0; i < n; ++i) cin >> a[i]; sort(a.begin(), a.end()); vector<int> b; if (n % 2 == 1)...
[ "control_flow.loop.for.condition.change" ]
1,466,803
1,466,804
u698883164
cpp
p03848
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) for (int i = 0; i < (n); ++i) #define int long long #define vec(a, n) vector<int>(a)((n)) #define Vec(a, n) vector<string>(a)((n)) #define twovec(a, n, m) vector<vector<int>> a(n, vector<int>(m, 0)) #define Twovec(a, n, m) v...
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) for (int i = 0; i < (n); ++i) #define int long long #define vec(a, n) vector<int>(a)((n)) #define Vec(a, n) vector<string>(a)((n)) #define twovec(a, n, m) vector<vector<int>> a(n, vector<int>(m, 0)) #define Twovec(a, n, m) v...
[ "control_flow.branch.if.condition.change" ]
1,466,812
1,466,813
u607741489
cpp
p03848
#include <bits/stdc++.h> #define rep2(x, fr, to) for (int(x) = (fr); (x) < (to); (x)++) #define rep(x, to) for (int(x) = 0; (x) < (to); (x)++) #define repr(x, fr, to) for (int(x) = (fr); (x) >= (to); (x)--) #define all(c) (c).begin(), (c).end() #define sz(v) (int)(v).size() using namespace std; typedef long long ll; ...
#include <bits/stdc++.h> #define rep2(x, fr, to) for (int(x) = (fr); (x) < (to); (x)++) #define rep(x, to) for (int(x) = 0; (x) < (to); (x)++) #define repr(x, fr, to) for (int(x) = (fr); (x) >= (to); (x)--) #define all(c) (c).begin(), (c).end() #define sz(v) (int)(v).size() using namespace std; typedef long long ll; ...
[ "control_flow.branch.if.condition.change" ]
1,466,816
1,466,817
u714564133
cpp
p03848
#include "bits/stdc++.h" using namespace std; int main() { long long int N, A, P[100000] = {0}, count = 1; bool check = true; cin >> N; for (int i = 0; i < N; i++) { cin >> A; if (A % 2 == N % 2) check = false; if (P[A] == 2) check = false; if (A == 0 && P[A] == 1) check = fal...
#include "bits/stdc++.h" using namespace std; int main() { long long int N, A, P[100000] = {0}, count = 1; bool check = true; cin >> N; for (int i = 0; i < N; i++) { cin >> A; if (A % 2 == N % 2) check = false; if (P[A] == 2) check = false; if (A == 0 && P[A] == 1) check = fal...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
1,466,827
1,466,828
u454087021
cpp
p03848
#include <bits/stdc++.h> using namespace std; int main() { long long N, ans = 1, t = 1e9 + 7; map<long long, long long> m; cin >> N; long long A[N]; for (int i = 0; i < N; i++) { cin >> A[i]; m[A[i]]++; } if (N % 2 == 0) { if (m[0] != 1) { cout << 0 << endl; return 0; } f...
#include <bits/stdc++.h> using namespace std; int main() { long long N, ans = 1, t = 1e9 + 7; map<long long, long long> m; cin >> N; long long A[N]; for (int i = 0; i < N; i++) { cin >> A[i]; m[A[i]]++; } if (N % 2) { if (m[0] != 1) { cout << 0 << endl; return 0; } for (l...
[ "expression.operation.binary.remove" ]
1,466,840
1,466,841
u934334935
cpp
p03848
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <set> #include <unordered_map> #include <vector> using namespace std; typedef long long ll; typedef pair<int, int> P; #define INF int(1e9) #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPR...
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <set> #include <unordered_map> #include <vector> using namespace std; typedef long long ll; typedef pair<int, int> P; #define INF int(1e9) #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPR...
[ "expression.operation.binary.add" ]
1,466,851
1,466,852
u136378781
cpp
p03848
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; const int mod = 1e9 + 7; #define ll long long int n; int a[N]; int cnt[N]; ll ans = 0; ll power(int a, int b) { ll ans = 1, base = a; while (b) { if (b & 1) ans = ans * base % mod; base = base * base % mod; b >>= 1; } re...
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; const int mod = 1e9 + 7; #define ll long long int n; int a[N]; int cnt[N]; ll ans = 0; ll power(int a, int b) { ll ans = 1, base = a; while (b) { if (b & 1) ans = ans * base % mod; base = base * base % mod; b >>= 1; } re...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,466,855
1,466,856
u993519359
cpp
p03848
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; const int mod = 1e9 + 7; #define ll long long int n; int a[N]; int cnt[N]; ll ans = 0; ll power(int a, int b) { ll ans = 1, base = a; while (b) { if (b & 1) ans = ans * base % mod; base = base * base % mod; b >>= 1; } re...
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; const int mod = 1e9 + 7; #define ll long long int n; int a[N]; int cnt[N]; ll ans = 0; ll power(int a, int b) { ll ans = 1, base = a; while (b) { if (b & 1) ans = ans * base % mod; base = base * base % mod; b >>= 1; } re...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
1,466,857
1,466,856
u993519359
cpp
p03848
#include <bits/stdc++.h> #include <math.h> using namespace std; typedef long long LL; int main(void) { int n; int ans = 1; cin >> n; int d[n] = {}; // initialize for (int i = 0; i < n; i++) { int val; cin >> val; d[val]++; } int judge = 1; if (n % 2 == 0) { if (d[0] == 0) ju...
#include <bits/stdc++.h> #include <math.h> using namespace std; typedef long long LL; int main(void) { int n; int ans = 1; cin >> n; int d[n] = {}; // initialize for (int i = 0; i < n; i++) { int val; cin >> val; d[val]++; } int judge = 1; if (n % 2 == 0) { if (d[0] != 0) ju...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,466,862
1,466,863
u739168239
cpp
p03848
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; #define mp make_pair #define FOR(i, a, b)...
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; #define mp make_pair #define FOR(i, a, b)...
[ "assignment.value.change" ]
1,466,870
1,466,871
u566529875
cpp
p03848
#include <algorithm> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main(int argc, char const *argv[]) { int i, n; long long ans = 1; long long amari = 1000000007; cin >> n; vector<int> a(n, 0); vector<int> c(n, 0); for (i = 0; i < n; i++) { cin >> ...
#include <algorithm> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main(int argc, char const *argv[]) { int i, n; long long ans = 1; long long amari = 1000000007; cin >> n; vector<int> a(n, 0); vector<int> c(n, 0); for (i = 0; i < n; i++) { cin >> ...
[]
1,466,901
1,466,902
u945017646
cpp
p03848
#include <algorithm> #include <chrono> #include <cmath> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <map> #include <queue> #include <random> #include <set> #include <string> #include <tuple> #include <unordered_set> #include <vector> using namespace std; typedef long long int...
#include <algorithm> #include <chrono> #include <cmath> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <map> #include <queue> #include <random> #include <set> #include <string> #include <tuple> #include <unordered_set> #include <vector> using namespace std; typedef long long int...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,466,905
1,466,906
u483814783
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair<int, int>; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); rep(i, 4) reverse(divide[i].begin(), divide[i]...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair<int, int>; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string s; cin >> s; reverse(s.begin(), s.end()); rep(i, 4) reverse(divide[i].begin(), divide[i]...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,688
1,466,689
u211503916
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int i, j, k; bool judge = false; string S, test; cin >> S; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; rep(i, 4) reverse(divide[i].be...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int i, j, k; bool judge = false; string S, test; cin >> S; string divide[4] = {"dream", "dreamer", "erase", "eraser"}; rep(i, 4) reverse(divide[i].be...
[ "literal.string.change", "literal.string.case.change", "io.output.change", "io.output.newline.add" ]
1,466,694
1,466,695
u323005067
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string divide[4] = {"dream", "erase", "dreamer", "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(); i++) {...
#include <bits/stdc++.h> using namespace std; int main() { string divide[4] = {"dream", "erase", "dreamer", "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();) { ...
[ "control_flow.loop.for.update.change" ]
1,466,698
1,466,699
u603380071
cpp
p03854
#include <algorithm> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> #define REP(i, n) for (lint i{}, i##_len = (n); i < i##_len; ++i) #define DREP(i, h, j...
#include <algorithm> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> #define REP(i, n) for (lint i{}, i##_len = (n); i < i##_len; ++i) #define DREP(i, h, j...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,702
1,466,703
u917678406
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<ll>; #define MOD 1e9 + 7 int main() { string s; cin >> s; vector<string> moji(4); moji[0] = "dream"; moji[1] = "erase"; moji[2] = "dreamer"; moji...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<ll>; #define MOD 1e9 + 7 int main() { string s; cin >> s; vector<string> moji(4); moji[0] = "dream"; moji[1] = "erase"; moji[2] = "dreamer"; moji...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,708
1,466,709
u936176493
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define repr(i, n) for (int i = n - 1; i >= 0; i--) #define ALL(x) x.begin(), x.end() using ll = long long; using vi = vector<int>; using pii = pair<int, int>; bool match(string s, int i, string t) { // sのi文字目以降の部分文字...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define repr(i, n) for (int i = n - 1; i >= 0; i--) #define ALL(x) x.begin(), x.end() using ll = long long; using vi = vector<int>; using pii = pair<int, int>; bool match(string s, int i, string t) { // sのi文字目以降の部分文字...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,466,714
1,466,715
u915582296
cpp
p03854
#include <bits/stdc++.h> #define sz(x) (int)((x).size()) #define F first #define S second #define pb push_back #define ub upper_bound #define lb lower_bound #define all(x) x.begin(), x.end() #define pqueue priority_queue #define mset multiset #define umap unordered_map #define Speed() ...
#include <bits/stdc++.h> #define sz(x) (int)((x).size()) #define F first #define S second #define pb push_back #define ub upper_bound #define lb lower_bound #define all(x) x.begin(), x.end() #define pqueue priority_queue #define mset multiset #define umap unordered_map #define Speed() ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,466,720
1,466,721
u002627851
cpp
p03854
#include <bits/stdc++.h> #include <iostream> #include <string.h> #include <string> using namespace std; int main() { string s, t; cin >> s; reverse(s.begin(), s.end()); string ans = "YES"; for (int i = 0;;) { if (s.size() == 0) break; if (s.substr(0, 2) == "re") { if (s.substr(0, 6) == ...
#include <bits/stdc++.h> #include <iostream> #include <string.h> #include <string> using namespace std; int main() { string s, t; cin >> s; reverse(s.begin(), s.end()); string ans = "YES"; for (int i = 0;;) { if (s.size() == 0) break; if (s.substr(0, 2) == "re") { if (s.substr(0, 6) == ...
[ "literal.number.change", "call.arguments.change" ]
1,466,722
1,466,723
u337018543
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main(void) { int a, len, i = 0, c = 0; string s, n, d, f, g, h; cin >> s; reverse(s.begin(), s.end()); n = "maerd"; d = "remaerd"; f = "esare"; g = "resare"; len = s.size(); while (len > i) { if (s.substr(i, 5) == n) { h = h + n; i +...
#include <bits/stdc++.h> using namespace std; int main(void) { int a, len, i = 0, c = 0; string s, n, d, f, g, h; cin >> s; reverse(s.begin(), s.end()); n = "maerd"; d = "remaerd"; f = "esare"; g = "resare"; len = s.size(); while (len > i) { if (s.substr(i, 5) == n) { h = h + n; i +...
[ "expression.operation.binary.remove" ]
1,466,726
1,466,727
u806320475
cpp
p03854
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; string strs[] = {"dream", "dreamer", "erase", "eraser"}; bool dp[100001] = {true}; for (int i = 0; i < s.size(); i++) { for (auto e : strs) { int n = i + e.size(); if (n <= s.size() && s.compare(i, e....
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; string strs[] = {"dream", "dreamer", "erase", "eraser"}; bool dp[100001] = {true}; for (int i = 0; i < s.size(); i++) { for (auto e : strs) { int n = i + e.size(); if (n <= s.size() && !s.compare(i, e...
[ "expression.operation.unary.add", "control_flow.branch.if.condition.change" ]
1,466,735
1,466,736
u415965614
cpp
p03854
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; int main() { string s; cin >> s; string t[20010]; string T; int j = 0; reverse(s.begin(), s.end()); int n = s.size(); for (int i = 0; i < n; i++) { t[j] += s[i]; if (...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; int main() { string s; cin >> s; string t[20010]; string T; int j = 0; reverse(s.begin(), s.end()); int n = s.size(); for (int i = 0; i < n; i++) { t[j] += s[i]; if (...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,737
1,466,738
u706342712
cpp
p03854
#include <bits/stdc++.h> #define INFTY 10000000000 #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long int ll; const int MOD = 1000000007; const int di[4] = {-1, 0, 1, 0}; const int dj[4] = {0, -1, 0, 1}; const int INF = 1e9; const int A = 1000005; int main() { string s, t = {}; c...
#include <bits/stdc++.h> #define INFTY 10000000000 #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long int ll; const int MOD = 1000000007; const int di[4] = {-1, 0, 1, 0}; const int dj[4] = {0, -1, 0, 1}; const int INF = 1e9; const int A = 1000005; int main() { string s, t = {}; c...
[ "literal.number.change", "control_flow.branch.if.condition.change", "call.arguments.change", "call.arguments.add", "assignment.value.change" ]
1,466,741
1,466,742
u055231161
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #define irep(i, n) for (int i = (n); i >= 0; i--) using namespace std; using ll = long long; using P = pair<int, int>; const int INF = 1 << 25; const int MOD = 1e9 + 7; int main() { string s; cin >> s; int n = s.size(); reverse(s.begin(),...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #define irep(i, n) for (int i = (n); i >= 0; i--) using namespace std; using ll = long long; using P = pair<int, int>; const int INF = 1 << 25; const int MOD = 1e9 + 7; int main() { string s; cin >> s; int n = s.size(); reverse(s.begin(),...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,750
1,466,751
u309168663
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (long long i = 0; i < (n); i++) using namespace std; using P = pair<long long, long long>; typedef unsigned long long ull; typedef long long ll; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <cla...
#include <bits/stdc++.h> #define rep(i, n) for (long long i = 0; i < (n); i++) using namespace std; using P = pair<long long, long long>; typedef unsigned long long ull; typedef long long ll; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <cla...
[ "literal.number.change", "control_flow.branch.if.condition.change", "literal.string.change", "assignment.value.change", "call.arguments.change" ]
1,466,752
1,466,753
u371149954
cpp
p03854
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; const int MOD = 1000000007; const int INF = 0x3f3f3f3f; const ll INFL = 0x3f3f3f3f3f3f3f3f; int main() { // input cin.tie(nullptr); ios::sync_with_stdio(false); string s; cin >> s; reverse...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; const int MOD = 1000000007; const int INF = 0x3f3f3f3f; const ll INFL = 0x3f3f3f3f3f3f3f3f; int main() { // input cin.tie(nullptr); ios::sync_with_stdio(false); string s; cin >> s; reverse...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,466,754
1,466,755
u371149954
cpp
p03854
#pragma region template 2.4 #include <bits/stdc++.h> using namespace std; template <typename T> using pq_asc = priority_queue<T, vector<T>, greater<T>>; typedef long long ll; typedef vector<ll> vi; typedef vector<vi> vvi; typedef pair<ll, ll> ii; typedef vector<ii> vii; typedef vector<string> vs; #define REP(i, n) for ...
#pragma region template 2.4 #include <bits/stdc++.h> using namespace std; template <typename T> using pq_asc = priority_queue<T, vector<T>, greater<T>>; typedef long long ll; typedef vector<ll> vi; typedef vector<vi> vvi; typedef pair<ll, ll> ii; typedef vector<ii> vii; typedef vector<string> vs; #define REP(i, n) for ...
[ "control_flow.branch.if.replace.add", "control_flow.branch.else_if.replace.remove" ]
1,466,767
1,466,768
u564902833
cpp
p03854
#include <bits/stdc++.h> using namespace std; bool dfs(string &s, int p) { if (s.size() == p) return true; bool r = false; string words[] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { bool ok = true; for (int j = 0; j < words[i].size(); j++) if (words[i][j] != s[p ...
#include <bits/stdc++.h> using namespace std; bool dfs(string &s, int p) { if (s.size() == p) return true; bool r = false; string words[] = {"dream", "dreamer", "erase", "eraser"}; for (int i = 0; i < 4; i++) { bool ok = true; for (int j = 0; j < words[i].size(); j++) if (words[i][j] != s[p ...
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change", "assignment.value.change" ]
1,466,771
1,466,772
u792720861
cpp
p03854
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string ip; cin >> ip; ll n = ip.length(); bool isPossible = false; string pattern[4]; pattern[0] = "maerd"; pattern[1] = "remaerd"; pattern[2] = "esare"; pattern[3] = "resaer"; ll i = n - 1; string temp = ""; w...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string ip; cin >> ip; ll n = ip.length(); bool isPossible = false; string pattern[4]; pattern[0] = "maerd"; pattern[1] = "remaerd"; pattern[2] = "esare"; pattern[3] = "resare"; ll i = n - 1; string temp = ""; w...
[ "literal.string.change", "assignment.value.change" ]
1,466,783
1,466,784
u293631727
cpp
p03854
#include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { int st = 0; int flag = 0; string s; cin >> s; while (1) { if (s.size() == st) { flag = 1; break; } else if ((s.size() - st) < 5) { break; } else if (s.substr(st, 5) == "dream") { //...
#include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { int st = 0; int flag = 0; string s; cin >> s; while (1) { if (s.size() == st) { flag = 1; break; } else if ((s.size() - st) < 5) { break; } else if (s.substr(st, 5) == "dream") { //...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,789
1,466,790
u143405027
cpp
p03854
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; using ll = long long; const int INF = 1001001001; const ll LLINF = 1001001001001001001; const int MOD = 1000000007; #defi...
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; using ll = long long; const int INF = 1001001001; const ll LLINF = 1001001001001001001; const int MOD = 1000000007; #defi...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,925
1,466,926
u231458241
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int N = S.size(); string s[4] = {"dreamer", "eraser", "dream", "erase"}; string ans = "Yes"; int i = N; while (i > 0) { int flag = 0; for (int j = 0; j < 4; j++) { int sz = s[j].size(); if (i - sz >= 0 && ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int N = S.size(); string s[4] = {"dreamer", "eraser", "dream", "erase"}; string ans = "YES"; int i = N; while (i > 0) { int flag = 0; for (int j = 0; j < 4; j++) { int sz = s[j].size(); if (i - sz >= 0 && ...
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change", "assignment.value.change" ]
1,466,934
1,466,935
u987039629
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(obj) (obj).begin(), (obj).end() #define bit(n) (1LL << (n)) typedef long long ll; template <class T> inline bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <cla...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(obj) (obj).begin(), (obj).end() #define bit(n) (1LL << (n)) typedef long long ll; template <class T> inline bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <cla...
[ "literal.number.change", "assignment.value.change", "expression.operation.binary.change" ]
1,466,936
1,466,937
u931191237
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(obj) (obj).begin(), (obj).end() #define bit(n) (1LL << (n)) typedef long long ll; template <class T> inline bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <cla...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(obj) (obj).begin(), (obj).end() #define bit(n) (1LL << (n)) typedef long long ll; template <class T> inline bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <cla...
[ "literal.number.change", "control_flow.branch.if.condition.change", "assignment.value.change", "expression.operation.binary.change" ]
1,466,938
1,466,937
u931191237
cpp
p03854
/* * Author: .-O_O-. */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define ll long long #define pb push_back #define vi vector<int> #define rep0(a, b) for (int a = 0; a < b; a++) #define rep1(a, b) for (int a ...
/* * Author: .-O_O-. */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define ll long long #define pb push_back #define vi vector<int> #define rep0(a, b) for (int a = 0; a < b; a++) #define rep1(a, b) for (int a ...
[ "control_flow.branch.if.add", "expression.operation.binary.remove" ]
1,466,939
1,466,940
u563502845
cpp
p03854
#include <bits/stdc++.h> const double PI = acos(-1); #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { string s; cin >> s; string dream, dreamer, erase, eraser; dream = "maerd"; dreamer = "remaerd"; erase = "esare"; eraser = "resare"; bool can = true; vector<string...
#include <bits/stdc++.h> const double PI = acos(-1); #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { string s; cin >> s; string dream, dreamer, erase, eraser; dream = "maerd"; dreamer = "remaerd"; erase = "esare"; eraser = "resare"; bool can = true; vector<string...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,943
1,466,944
u794274928
cpp
p03854
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; int main() { string s; cin >> s; bool debug = false; string t; string exa[4] = {"dream", "erase", "eraser", "dreamer"}; for (int i = 0; i < 4; i++) { reverse(exa[i].begin(), exa[i].end(...
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; int main() { string s; cin >> s; bool debug = false; string exa[4] = {"dream", "erase", "eraser", "dreamer"}; for (int i = 0; i < 4; i++) { reverse(exa[i].begin(), exa[i].end()); } re...
[ "variable_declaration.remove", "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
1,466,946
1,466,947
u419056960
cpp
p03854
#include <bits/stdc++.h> using namespace std; #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 (int i = 0; i < (n); i++) #define RREP(i, n) for (int i = (n)-1; i >= 0; i--) #define EACH(i, a, b) for (int i = (a); i <= (b); i++) #define ...
#include <bits/stdc++.h> using namespace std; #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 (int i = 0; i < (n); i++) #define RREP(i, n) for (int i = (n)-1; i >= 0; i--) #define EACH(i, a, b) for (int i = (a); i <= (b); i++) #define ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,950
1,466,951
u616360029
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; string devide[4] = {"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();) { ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; string devide[4] = {"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", "literal.string.case.change", "io.output.change" ]
1,466,954
1,466,955
u934776456
cpp
p03854
#include <iostream> #include <string> using namespace std; int main() { string s, s_r; cin >> s; for (unsigned int i = 0; i < s.length(); i++) { s_r.push_back(s[s.length() - i - 1]); } while (!s_r.empty()) { if (s_r.substr(0, 5) == "maerd") { s_r = s_r.erase(0, 5); } else if (s_r.substr(0,...
#include <iostream> #include <string> using namespace std; int main() { string s, s_r; cin >> s; for (unsigned int i = 0; i < s.length(); i++) { s_r.push_back(s[s.length() - i - 1]); } while (!s_r.empty()) { if (s_r.substr(0, 5) == "maerd") { s_r = s_r.erase(0, 5); } else if (s_r.substr(0,...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,957
1,466,958
u074220993
cpp
p03854
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; int n = s.size(); reverse(s.begin(), s.end()); while (s.size() != 0) { if (s.substr(0, 6) == "resare") s = s.substr(6); else if (s.substr(0, 5) == "esare") s = s.substr(5); else if (s....
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; int n = s.size(); reverse(s.begin(), s.end()); while (s.size() != 0) { if (s.substr(0, 6) == "resare") s = s.substr(6); else if (s.substr(0, 5) == "esare") s = s.substr(5); else if (s....
[ "literal.number.change", "assignment.value.change", "call.arguments.change" ]
1,466,959
1,466,960
u536916602
cpp
p03854
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; int n = s.size(); reverse(s.begin(), s.end()); while (s.size() != 0) { if (s.substr(0, 6) == "resare") s = s.substr(6); else if (s.substr(0, 5) == "esare") s = s.substr(5); else if (s....
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; int n = s.size(); reverse(s.begin(), s.end()); while (s.size() != 0) { if (s.substr(0, 6) == "resare") s = s.substr(6); else if (s.substr(0, 5) == "esare") s = s.substr(5); else if (s....
[ "literal.number.change", "control_flow.branch.if.condition.change", "assignment.value.change", "call.arguments.change" ]
1,466,961
1,466,960
u536916602
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < n; i++) int main() { string s; cin >> s; int l = s.length(); string p[4] = { "dream", "dreamer", "erase", "eraser", }; bool q[l + 10]; REP(i, l + 10) q[i] = false; q[0] = true; REP(i, l) { ...
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < n; i++) int main() { string s; cin >> s; int l = s.length(); string p[4] = { "dream", "dreamer", "erase", "eraser", }; bool q[l + 10]; REP(i, l + 10) q[i] = false; q[0] = true; REP(i, l) { ...
[ "expression.operation.binary.remove" ]
1,466,962
1,466,963
u869519920
cpp
p03854
/*------------------------------------ ........Bismillahir Rahmanir Rahim.... ..........created by Abdul Aziz....... ------------------------------------*/ #include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <unordered_m...
/*------------------------------------ ........Bismillahir Rahmanir Rahim.... ..........created by Abdul Aziz....... ------------------------------------*/ #include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <unordered_m...
[]
1,466,964
1,466,965
u931901821
cpp
p03854
/*------------------------------------ ........Bismillahir Rahmanir Rahim.... ..........created by Abdul Aziz....... ------------------------------------*/ #include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <unordered_m...
/*------------------------------------ ........Bismillahir Rahmanir Rahim.... ..........created by Abdul Aziz....... ------------------------------------*/ #include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <unordered_m...
[ "expression.operation.binary.remove", "assignment.variable.change", "assignment.change" ]
1,466,966
1,466,965
u931901821
cpp
p03854
#include <bits/stdc++.h> using namespace std; #define ll long long int #define pi 3.141592653589793238 #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define pi 3.141592653589793238 #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,466,976
1,466,977
u972911059
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; queue<char> q; for (int i = 0; i < S.size(); i++) { q.push(S[i]); } bool aa; bool bb = false; while (!q.empty()) { char a[6]; bool b, c; aa = false; b = true; c = true; for (int i = 0; i < 5; i++)...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; queue<char> q; for (int i = 0; i < S.size(); i++) { q.push(S[i]); } bool aa; bool bb = false; while (!q.empty()) { char a[6]; bool b, c; aa = false; b = true; c = true; for (int i = 0; i < 5; i++)...
[ "assignment.add" ]
1,466,978
1,466,979
u312245175
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; regex R("(dream|dreamer|erase|eraser)*"); cout << ((regex_match(S, R)) ? "Yes" : "No") << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; regex R("(dream|dreamer|erase|eraser)*"); cout << ((regex_match(S, R)) ? "YES" : "NO") << "\n"; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,990
1,466,991
u045289115
cpp
p03854
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; string s[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string a; cin >> a; reverse(a.begin(), a.end()); for (int i = 0; i < 4; ++i) { reverse(s[i].begin(), s[i].end()); } bool flag = true;...
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; string s[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string a; cin >> a; reverse(a.begin(), a.end()); for (int i = 0; i < 4; ++i) { reverse(s[i].begin(), s[i].end()); } bool flag = true;...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,992
1,466,993
u281561267
cpp
p03854
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; string s[4]{"dream", "dreamer", "erase", "eraser"}; int main() { string a; cin >> a; reverse(a.begin(), a.end()); for (int i = 0; i < 4; ++i) { reverse(s[i].begin(), s[i].end()); } bool flag = true; ...
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; string s[4] = {"dream", "dreamer", "erase", "eraser"}; int main() { string a; cin >> a; reverse(a.begin(), a.end()); for (int i = 0; i < 4; ++i) { reverse(s[i].begin(), s[i].end()); } bool flag = true;...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,466,994
1,466,993
u281561267
cpp
p03854
#include <bits/stdc++.h> #define LOCAL using namespace std; template <typename A, typename B> ostream &operator<<(ostream &out, const pair<A, B> &a) { out << "(" << a.first << "," << a.second << ")"; return out; } template <typename T, size_t N> ostream &operator<<(ostream &out, const array<T, N> &a) { out << "["...
#include <bits/stdc++.h> #define LOCAL using namespace std; template <typename A, typename B> ostream &operator<<(ostream &out, const pair<A, B> &a) { out << "(" << a.first << "," << a.second << ")"; return out; } template <typename T, size_t N> ostream &operator<<(ostream &out, const array<T, N> &a) { out << "["...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
1,466,997
1,466,998
u818349438
cpp
p03854
#include <bits/stdc++.h> #define LOCAL using namespace std; template <typename A, typename B> ostream &operator<<(ostream &out, const pair<A, B> &a) { out << "(" << a.first << "," << a.second << ")"; return out; } template <typename T, size_t N> ostream &operator<<(ostream &out, const array<T, N> &a) { out << "["...
#include <bits/stdc++.h> #define LOCAL using namespace std; template <typename A, typename B> ostream &operator<<(ostream &out, const pair<A, B> &a) { out << "(" << a.first << "," << a.second << ")"; return out; } template <typename T, size_t N> ostream &operator<<(ostream &out, const array<T, N> &a) { out << "["...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
1,466,999
1,467,000
u818349438
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()); for (int i = 0; i < s.size();)...
#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()); for (int i = 0; i < s.size();)...
[ "identifier.change" ]
1,467,007
1,467,008
u639300218
cpp
p03854
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int dp[10005]; void solve() { string s; cin >> s; int n = s.size(); dp[0] = 1; for (int i = 0; i < n; ++i) { if (dp[i] == 0) continue; if ((i + 5 <= n) && (s.substr(i, 5) == "dream")) dp[i ...
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int dp[100005]; void solve() { string s; cin >> s; int n = s.size(); dp[0] = 1; for (int i = 0; i < n; ++i) { if (dp[i] == 0) continue; if ((i + 5 <= n) && (s.substr(i, 5) == "dream")) dp[i...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "control_flow.branch.if.condition.change", "assignment.variable.change", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
1,467,021
1,467,020
u375536099
cpp
p03854
/***"In the name of Allah(swt), the most gracious, most merciful. Allah(swt) * blesses with knowledge whom he wants."***/ /*** "ALHAMDULILLAH for Everything..." ***/ #include <bits/stdc++.h> using namespace std; #define fastt \ ios::sync_with_stdio(0);...
/***"In the name of Allah(swt), the most gracious, most merciful. Allah(swt) * blesses with knowledge whom he wants."***/ /*** "ALHAMDULILLAH for Everything..." ***/ #include <bits/stdc++.h> using namespace std; #define fastt \ ios::sync_with_stdio(0);...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,022
1,467,023
u035712458
cpp
p03854
/***"In the name of Allah(swt), the most gracious, most merciful. Allah(swt) * blesses with knowledge whom he wants."***/ /*** "ALHAMDULILLAH for Everything..." ***/ #include <bits/stdc++.h> using namespace std; #define fastt \ ios::sync_with_stdio(0);...
/***"In the name of Allah(swt), the most gracious, most merciful. Allah(swt) * blesses with knowledge whom he wants."***/ /*** "ALHAMDULILLAH for Everything..." ***/ #include <bits/stdc++.h> using namespace std; #define fastt \ ios::sync_with_stdio(0);...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
1,467,024
1,467,023
u035712458
cpp
p03854
#ifndef LOCAL #pragma GCC optimize("O3") #include <bits/stdc++.h> #else #include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <iomanip> #include <iostream> #include <list> #include <map> #include <memory> #include <numeric> #include <qu...
#ifndef LOCAL #pragma GCC optimize("O3") #include <bits/stdc++.h> #else #include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <iomanip> #include <iostream> #include <list> #include <map> #include <memory> #include <numeric> #include <qu...
[ "literal.string.change", "literal.string.case.change", "expression.operation.binary.change" ]
1,467,025
1,467,026
u088863512
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool ok = true; int k = S.size() - 1; while (k > 0) { if (S.at(k) == 'm') { if (k > 3) { if (S.at(k - 1) == 'a' && S.at(k - 2) == 'e' && S.at(k - 3) == 'r' && S.at(k - 4) == 'd') { k -= 5; ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool ok = true; int k = S.size() - 1; while (k > 0) { if (S.at(k) == 'm') { if (k > 3) { if (S.at(k - 1) == 'a' && S.at(k - 2) == 'e' && S.at(k - 3) == 'r' && S.at(k - 4) == 'd') { k -= 5; ...
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
1,467,027
1,467,028
u453366189
cpp
p03854
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool ok = true; int k = S.size() - 1; while (k > 0) { if (S.at(k) == 'm') { if (k > 3) { if (S.at(k - 1) == 'a' && S.at(k - 2) == 'e' && S.at(k - 3) == 'r' && S.at(k - 4) == 'd') { k -= 5; ...
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; bool ok = true; int k = S.size() - 1; while (k > 0) { if (S.at(k) == 'm') { if (k > 3) { if (S.at(k - 1) == 'a' && S.at(k - 2) == 'e' && S.at(k - 3) == 'r' && S.at(k - 4) == 'd') { k -= 5; ...
[ "literal.string.change", "control_flow.branch.if.condition.change", "literal.string.case.change", "io.output.change" ]
1,467,029
1,467,028
u453366189
cpp