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
p02546
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int a = S.size(); if (S[a - 1] == 's') { cout << S << "es" << endl; } else { cout << "s" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int a = S.size(); if (S[a - 1] == 's') { cout << S << "es" << endl; } else { cout << S << "s" << endl; } }
[ "io.output.change" ]
242,965
242,966
u352838786
cpp
p02546
/* このコード、と~おれ! Be accepted! ∧_∧  (。・ω・。)つ━☆・*。 ⊂   ノ    ・゜+.  しーJ   °。+ *´¨)          .· ´¸.·*´¨) ¸.·*¨)           (¸.·´ (¸.·'* ☆ */ #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <functional> #include <ioma...
/* このコード、と~おれ! Be accepted! ∧_∧  (。・ω・。)つ━☆・*。 ⊂   ノ    ・゜+.  しーJ   °。+ *´¨)          .· ´¸.·*´¨) ¸.·*¨)           (¸.·´ (¸.·'* ☆ */ #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <functional> #include <ioma...
[ "literal.string.change", "assignment.value.change" ]
242,974
242,975
u917972976
cpp
p02546
#define LOCAL #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <ran...
#define LOCAL #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <ran...
[ "assignment.change" ]
242,982
242,983
u132602393
cpp
p02546
#include <bits/stdc++.h> using namespace std; string a; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); getline(cin, a); int n = a.size(); if (a[n - 1] != 's') { cout << a << 's'; } else { for (int i = 0; i <= n - 2; i++) cout << a[i]; cout << "es"; } return...
#include <bits/stdc++.h> using namespace std; string a; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); getline(cin, a); int n = a.size(); if (a[n - 1] != 's') { cout << a << 's'; } else { for (int i = 0; i <= n - 1; i++) cout << a[i]; cout << "es"; } return...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
243,005
243,006
u335395618
cpp
p02546
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (*s.end() == 's') s.append("es"); else s.append("s"); cout << s; return 0; }
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (s.back() == 's') s.append("es"); else s.append("s"); cout << s; return 0; }
[ "control_flow.branch.if.condition.change", "call.function.change" ]
243,010
243,011
u810232576
cpp
p02546
#include <iostream> using namespace std; int main() { string a; cin >> a; int len = a.length(); if (a[len - 1] == 's') cout << a << "es" << endl; cout << a << 's' << endl; }
#include <iostream> using namespace std; int main() { string a; cin >> a; int len = a.length(); if (a[len - 1] == 's') cout << a << "es" << endl; else cout << a << 's' << endl; }
[ "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
243,018
243,019
u380905249
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define rep(i, m) for (int i = 0; i < (int)(m); i++) int main() { string s; cin >> s; string k = s; sort(k.begin(), k.end()); if (k[1] == 's') { cout << s << "es"; } else { cout << s << "s"; } }
#include <bits/stdc++.h> using namespace std; #define rep(i, m) for (int i = 0; i < (int)(m); i++) int main() { string s; cin >> s; string k = s; reverse(k.begin(), k.end()); if (k[0] == 's') { cout << s << "es"; } else { cout << s << "s"; } }
[ "identifier.change", "call.function.change", "literal.number.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
243,022
243,023
u399816236
cpp
p02546
#include <bits/stdc++.h> using namespace std; int q, n; string s, f; int main() { cin >> s; f = s.back(); cout << f; if (f == "s") cout << s << "es"; else cout << s << "s"; }
#include <bits/stdc++.h> using namespace std; int q, n; string s, f; int main() { cin >> s; f = s.back(); if (f == "s") cout << s << "es"; else cout << s << "s"; }
[]
243,024
243,025
u935920742
cpp
p02546
//| ADARSH SINGH KUSHWAHA | #include <bits/stdc++.h> using namespace std; typedef long long ll; #define Bahut_tej_gand_faad \ ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); #define pb push_back #define ff first #define ss second #define mp map<ll, ll> #defin...
//| ADARSH SINGH KUSHWAHA | #include <bits/stdc++.h> using namespace std; typedef long long ll; #define Bahut_tej_gand_faad \ ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); #define pb push_back #define ff first #define ss second #define mp map<ll, ll> #defin...
[ "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change" ]
243,026
243,027
u775805582
cpp
p02546
#include <iostream> #include <string> using namespace std; int main() { string str; cin >> str; if (str[str.size() - 1] = 's') { str + "es"; } else { str + "s"; } cout << str << endl; }
#include <iostream> #include <string> using namespace std; int main() { string str; cin >> str; if (str[str.size() - 1] == 's') { str += "es"; } else { str += "s"; } cout << str << endl; }
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo", "assignment.compound.arithmetic.replace.add", "expression.operator.arithmetic.replace.remove", "expression.operation.binary.change" ]
243,061
243,060
u024609780
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; char k = 's'; if (S.at(S.size()) == k) { cout << S + "es" << endl; } cout << S + "s" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; char k = 's'; if (S.at(S.size() - 1) == k) { cout << S + "es" << endl; } else { cout << S + "s" << endl; } }
[ "control_flow.branch.if.condition.change", "control_flow.branch.else.add" ]
243,062
243,063
u530067981
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; char k = 's'; if (S.at(S.size() - 1) == k) { cout << S + "es" << endl; } cout << S + "s" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; char k = 's'; if (S.at(S.size() - 1) == k) { cout << S + "es" << endl; } else { cout << S + "s" << endl; } }
[ "control_flow.branch.else.add" ]
243,064
243,063
u530067981
cpp
p02546
#include <iostream> #include <string> using namespace std; int main() { string st; cin >> st; if (st[st.size() - 1] == 's') { for (int i = 0; i < (st.size() - 1); ++i) { cout << st[i]; } cout << "es"; } else { cout << st; cout << 's'; } return 0; }
#include <iostream> #include <string> using namespace std; int main() { string st; cin >> st; if (st[st.size() - 1] == 's') { for (int i = 0; i < (st.size()); ++i) { cout << st[i]; } cout << "es"; } else { cout << st; cout << 's'; } return 0; }
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
243,070
243,071
u367685157
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int t; t = S.size(); if (S.at(t - 1) == 's') { cout << S << 'es' << endl; } else { cout << S << 's' << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int t; t = S.size(); if (S.at(t - 1) == 's') { cout << S << "es" << endl; } else { cout << S << 's' << endl; } }
[ "literal.string.change", "io.output.change" ]
243,076
243,077
u498644586
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') cout << s << 'es' << endl; else { cout << s << 's' << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') cout << s << "es" << endl; else { cout << s << "s" << endl; } }
[ "literal.string.change", "io.output.change" ]
243,088
243,089
u160460313
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size()] == 's') cout << s << 'es' << endl; else { cout << s << 's' << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') cout << s << "es" << endl; else { cout << s << "s" << endl; } }
[ "control_flow.branch.if.condition.change", "literal.string.change", "io.output.change" ]
243,090
243,089
u160460313
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.length(); if (s[n - 1] == 's') { cout << s << 'es' << endl; } else { cout << s << 's' << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.length(); if (s[n - 1] == 's') { cout << s << "es" << endl; } else { cout << s << "s" << endl; } return 0; }
[ "literal.string.change", "io.output.change" ]
243,099
243,100
u442752977
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') cout << s << 'es' << endl; else cout << s << 's' << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') cout << s << "es" << endl; else cout << s << 's' << endl; }
[ "literal.string.change", "io.output.change" ]
243,103
243,104
u120586196
cpp
p02546
#include <iostream> using namespace std; int main() { string str; cin >> str; int n = str.length(); char ch; ch = 's'; if (str[n - 1] == ch) { cout << str << 'es'; } else { cout << str << 's'; } return 0; }
#include <iostream> using namespace std; int main() { string str; cin >> str; int n = str.length(); char ch; ch = 's'; if (str[n - 1] == ch) { cout << str << "es"; } else { cout << str << "s"; } return 0; }
[ "literal.string.change", "io.output.change" ]
243,107
243,108
u669230428
cpp
p02546
#include <bits/stdc++.h> #include <iostream> #include <string> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { string s; cin >> s; int n; n = s.length() - 1; if (s[n] == 's') { rep(i, n) { cout << s[i]; } cout << "es" <...
#include <bits/stdc++.h> #include <iostream> #include <string> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { string s; cin >> s; int n; n = s.length() - 1; if (s[n] == 's') { rep(i, n + 1) { cout << s[i]; } cout << "e...
[ "expression.operation.binary.add" ]
243,111
243,112
u825099493
cpp
p02546
#include <cstring> #include <iostream> using namespace std; int main() { char s[1001]; cin >> s; if (s[strlen(s) - 1] == 's') printf("%s,es", s); else printf("%s,s", s); return 0; }
#include <cstring> #include <iostream> using namespace std; int main() { char s[1001]; cin >> s; if (s[strlen(s) - 1] == 's') printf("%ses", s); else printf("%ss", s); return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
243,119
243,120
u582952661
cpp
p02546
#include "bits/stdc++.h" using namespace std; #define rep(i, a, n) for (ll i = a; i < n; i++) typedef long long ll; const ll MOD = 1e9 + 7; int main(int argc, char **argv) { (void)argc; (void)argv; ios::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; if (s[sizeof(s) - 1] == 's') cout << ...
#include "bits/stdc++.h" using namespace std; #define rep(i, a, n) for (ll i = a; i < n; i++) typedef long long ll; const ll MOD = 1e9 + 7; int main(int argc, char **argv) { (void)argc; (void)argv; ios::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; if (s[s.size() - 1] == 's') cout << s...
[ "control_flow.branch.if.condition.change", "call.add" ]
243,125
243,126
u138251862
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair #define vi vector<int> #define vll vector<long long> #define ll long long #define lli long long int #define el '\n' #define mem(a, b) memset(a, b, sizeof(a)) #define optimize() ...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair #define vi vector<int> #define vll vector<long long> #define ll long long #define lli long long int #define el '\n' #define mem(a, b) memset(a, b, sizeof(a)) #define optimize() ...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
243,146
243,147
u744593863
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; int i; cin >> s; int n = s.size(); if (s[i] != 115) { cout << s + "s"; } else { cout << s + "es"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.size(); if (s[n - 1] != 115) { cout << s + "s"; } else { cout << s + "es"; } return 0; }
[ "variable_declaration.remove", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
243,173
243,174
u192871800
cpp
p02546
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; int main() { string S; cin >> S; int s = S.size(); if (S[s - 1] != 's') { cout << S << 's' << endl; } else { cout << S << endl; } }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; int main() { string S; cin >> S; int s = S.size(); if (S[s - 1] != 's') { cout << S << 's' << endl; } else { cout << S << "es" << endl; } }
[ "io.output.change" ]
243,177
243,178
u307860479
cpp
p02546
// default library #include <stdio.h> #include <string.h> // extra library // default define #define ll long long int #define fl(i, a, n) for (int i = a; i < (n); i++) #define fls(i, a, s) for (int i = a; s[i] != '\0'; i++) #define endl puts(""); #define kill return 0; // extra define // declare function // main co...
// default library #include <stdio.h> #include <string.h> // extra library // default define #define ll long long int #define fl(i, a, n) for (int i = a; i < (n); i++) #define fls(i, a, s) for (int i = a; s[i] != '\0'; i++) #define endl puts(""); #define kill return 0; // extra define // declare function // main co...
[ "assignment.change" ]
243,179
243,180
u166812434
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string str; if (str.at(str.size() - 1) == 's') cout << str + "es" << endl; else cout << str + 's' << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; if (str.at(str.size() - 1) == 's') cout << str + "es" << endl; else cout << str + 's' << endl; }
[]
243,181
243,182
u601165691
cpp
p02546
#include <iostream> #include <string.h> using namespace std; int main() { string s; getline(cin, s); int len; len = s.length(); if (s[len - 1] == 's') { s = s + "es"; } else { s.push_back('s'); } return 0; }
#include <iostream> #include <string.h> using namespace std; int main() { string s; getline(cin, s); int len; len = s.length(); if (s[len - 1] == 's') { s = s + "es"; } else { s.push_back('s'); } cout << s; return 0; }
[]
243,183
243,184
u070767361
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define repl(i, l, r) for (int i = l; i < r; i++) using ll = long long; const int inf = 2e9 + 10; const ll MOD = 1e9 + 7; const ll INF = 9e18 + 10; const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, 1, 0, -1}; int main() { ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define repl(i, l, r) for (int i = l; i < r; i++) using ll = long long; const int inf = 2e9 + 10; const ll MOD = 1e9 + 7; const ll INF = 9e18 + 10; const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, 1, 0, -1}; int main() { ...
[ "io.output.change" ]
243,188
243,189
u704011915
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { // freopen("input.txt", "r", stdin); string s; cin >> s; if (s[s.length() - 1] == 'e') { s += "s"; } else { s += "es"; } cout << s << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { // freopen("input.txt", "r", stdin); string s; cin >> s; if (s[s.length() - 1] == 's') { s += "es"; } else { s += "s"; } cout << s << endl; return 0; }
[ "literal.string.change", "control_flow.branch.if.condition.change", "assignment.value.change" ]
243,198
243,199
u177417905
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define INF 1234567890 #define ll long long int main() { string s; cin >> s; if (s.back() == 's') s += 'es'; else s += 's'; cout << s; return 0; }
#include <bits/stdc++.h> using namespace std; #define INF 1234567890 #define ll long long int main() { string s; cin >> s; if (s.back() == 's') s += "es"; else s += 's'; cout << s; return 0; }
[ "literal.string.change", "assignment.value.change" ]
243,202
243,203
u570659423
cpp
p02546
#include <iostream> #include <string> using namespace std; int main(void) { string S; cin >> S; if (S[S.size() - 1] == 's') { cout << S << "es" << endl; } else { cout << S << endl; } return 0; }
#include <iostream> #include <string> using namespace std; int main(void) { string S; cin >> S; if (S[S.length() - 1] == 's') { cout << S << "es" << endl; } else { cout << S << "s" << endl; } return 0; }
[ "call.function.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "io.output.change" ]
243,206
243,205
u124005557
cpp
p02546
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <set> #include <stack> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < n; ++i) using namespace std; using LLONG = long long; const LLONG MOD = 1000000007; ...
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <set> #include <stack> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < n; ++i) using namespace std; using LLONG = long long; const LLONG MOD = 1000000007; ...
[ "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
243,217
243,218
u214685595
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; string ans; if (S[S.size()] == 's') { ans = S + "es"; } else { ans = S + "s"; } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; string ans; if (S[S.size() - 1] == 's') { ans = S + "es"; } else { ans = S + "s"; } cout << ans << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
243,234
243,235
u849341325
cpp
p02546
#include <cstring> #include <iostream> using namespace std; int main() { char s[1009]; cin >> s; if (s[strlen(s) - 1] == 's') cout << s << 'es' << endl; else cout << s << 's' << endl; system("pause"); }
#include <cstring> #include <iostream> using namespace std; int main() { char s[1009]; cin >> s; if (s[strlen(s) - 1] == 's') cout << s << "es" << endl; else cout << s << "s" << endl; system("pause"); }
[ "literal.string.change", "io.output.change" ]
243,240
243,241
u025193796
cpp
p02546
// AUTHOR - NIMISH UPADHYAY // FROM IIIT ALLAHABAD #include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define NIMISH \ ios_base::sync_with_stdio(false); \ cin.tie(NULL)...
// AUTHOR - NIMISH UPADHYAY // FROM IIIT ALLAHABAD #include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define NIMISH \ ios_base::sync_with_stdio(false); \ cin.tie(NULL)...
[]
243,273
243,274
u845824949
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; int n = str.size(); if (n < 1) { cout << 'error' << endl; } if (str.at(n - 1) == 's') { cout << str << 'es' << endl; } else { cout << str << 's' << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; int n = str.size(); if (n < 1) { cout << "error" << endl; } if (str.at(n - 1) == 's') { cout << str << "es" << endl; } else { cout << str << 's' << endl; } }
[ "io.output.change", "literal.string.change" ]
243,287
243,288
u308117056
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S.at(S.size() - 1) == 's') { cout << S << "es" << endl; } else { cout << S << "es" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S.at(S.size() - 1) == 's') { cout << S << "es" << endl; } else { cout << S << "s" << endl; } }
[ "literal.string.change", "io.output.change" ]
243,293
243,294
u268018247
cpp
p02546
#include <bits/stdc++.h> typedef long long ll; using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; ++i) int main() { cin.tie(0); ios::sync_with_stdio(false); string S; cin >> S; if (S[-1] == 's') { S += "es"; } else { S += "s"; } cout << S << endl; }
#include <bits/stdc++.h> typedef long long ll; using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; ++i) int main() { cin.tie(0); ios::sync_with_stdio(false); string S; cin >> S; if (S[S.length() - 1] == 's') { S += "es"; } else { S += "s"; } cout << S << endl; }
[ "control_flow.branch.if.condition.change", "call.add" ]
243,297
243,298
u699715278
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s; cin >> s; if (s[s.size() - 1] != 's') { s += "es"; cout << s; } else { s += "s"; cout << s; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s; cin >> s; if (s[s.size() - 1] != 's') { s += "s"; cout << s; } else { s += "es"; cout << s; } return 0; }
[ "literal.string.change", "assignment.value.change" ]
243,302
243,303
u391921018
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string x; int a; cin >> x; a = x.size(); if (x.at(a - 1) != 's') { cout << x << "s" << endl; } if (x.at(a - 1) = 's') { cout << x << "es" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string x; int a; cin >> x; a = x.size(); if (x.at(a - 1) != 's') { cout << x << "s" << endl; } if (x.at(a - 1) == 's') { cout << x << "es" << endl; } }
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
243,310
243,311
u813262151
cpp
p02546
#include <bits/stdc++.h> #include <chrono> using namespace std; using ll = long long; using ld = long double; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repl(i, n) for (ll i = 0; i < (ll)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) #define rep2l(i, s, n) for (ll i = (ll)(s); i ...
#include <bits/stdc++.h> #include <chrono> using namespace std; using ll = long long; using ld = long double; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repl(i, n) for (ll i = 0; i < (ll)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) #define rep2l(i, s, n) for (ll i = (ll)(s); i ...
[ "literal.string.change", "assignment.value.change" ]
243,317
243,318
u632527507
cpp
p02546
#include <bits/stdc++.h> using namespace std; // int main() { string a; cin >> a; if (a.at(a.size() - 1) == 's') { a = a + "s"; } else { a = a + "es"; } cout << a << endl; }
#include <bits/stdc++.h> using namespace std; // int main() { string a; cin >> a; if (a.at(a.size() - 1) == 's') { a = a + "es"; } else { a = a + "s"; } cout << a << endl; }
[ "literal.string.change", "assignment.value.change", "expression.operation.binary.change" ]
243,319
243,320
u657465456
cpp
p02546
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define P pair<ll, ll> #define FOR(I, A, B) for (ll I = ll(A); I < ll(B); ++I) #define FORR(I, A, B) for (ll I = ll((B)-1); I >= ll(A); --I) #define TO(x, t, f) ((x) ? (t) : (f)) #define SORT(x) (sort(x.begin(), x.end())) // 0 2 2 3 4 5 8 9 #define POS...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define P pair<ll, ll> #define FOR(I, A, B) for (ll I = ll(A); I < ll(B); ++I) #define FORR(I, A, B) for (ll I = ll((B)-1); I >= ll(A); --I) #define TO(x, t, f) ((x) ? (t) : (f)) #define SORT(x) (sort(x.begin(), x.end())) // 0 2 2 3 4 5 8 9 #define POS...
[ "literal.string.change", "assignment.value.change" ]
243,333
243,334
u780122303
cpp
p02546
#include <iostream> #include <string.h> using namespace std; int main() { int a; string str; string first = "s"; string second = "es"; cin >> str; a = str.size(); if (str[a - 1] == 'e') { cout << str.append(first); } else { cout << str.append(second); } }
#include <iostream> #include <string.h> using namespace std; int main() { int a; string str; string first = "es"; string second = "s"; cin >> str; a = str.size(); if (str[a - 1] == 's') { cout << str.append(first); } else { cout << str.append(second); } }
[ "literal.string.change", "variable_declaration.value.change", "control_flow.branch.if.condition.change" ]
243,343
243,344
u425940510
cpp
p02546
#include <bits/stdc++.h> #define Imposter \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define pb push_back #define ll long long int #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_poli...
#include <bits/stdc++.h> #define Imposter \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define pb push_back #define ll long long int #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_poli...
[ "literal.string.change", "io.output.change" ]
243,349
243,350
u108398205
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define int long long #define M 1000000007 #define INF ((1LL << 62LL) - 1) signed main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s; if (s.back() == 's') s = s + "es"; else s += "s"; cout << s << "\n"; }
#include <bits/stdc++.h> using namespace std; #define int long long #define M 1000000007 #define INF ((1LL << 62LL) - 1) signed main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s; cin >> s; if (s.back() == 's') s = s + "es"; else s += "s"; cout << s << "\n"; }
[]
243,353
243,354
u328025904
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; int x = a.length(); if (a[x - 1] == 's') { cout << a << 'es' << endl; ; } else { cout << a << 's' << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; int x = a.length(); if (a[x - 1] == 's') { cout << a << "es" << endl; ; } else { cout << a << 's' << endl; } }
[ "literal.string.change", "io.output.change" ]
243,355
243,356
u821064400
cpp
p02546
#include <bits/stdc++.h> #include <vector> #define rep(x, n) for (int i = x; i < (n); ++i) using namespace std; using ll = long long; int main(void) { string n; cin >> n; cout << n << (n[n.size() - 1] == 'e' ? "s" : "es") << endl; }
#include <bits/stdc++.h> #include <vector> #define rep(x, n) for (int i = x; i < (n); ++i) using namespace std; using ll = long long; int main(void) { string n; cin >> n; cout << n << (n[n.size() - 1] == 's' ? "es" : "s") << endl; }
[ "literal.string.change", "control_flow.loop.for.condition.change", "io.output.change" ]
243,359
243,360
u738622346
cpp
p02546
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #define FAST \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(...
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #define FAST \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(...
[ "control_flow.branch.if.condition.change" ]
243,365
243,366
u054687301
cpp
p02546
#include <bits/stdc++.h> #define io \ freopen("input.txt", "r", stdin); \ freopen("output.txt", "w", stdout); #define lli long long int #define fast ...
#include <bits/stdc++.h> #define io \ freopen("input.txt", "r", stdin); \ freopen("output.txt", "w", stdout); #define lli long long int #define fast ...
[ "literal.string.change", "assignment.value.change" ]
243,369
243,370
u168444031
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int i; i = (int)(S.length()); string ans; if (S[i - 1] == 'e') { ans = S + "s"; cout << ans << endl; } else { ans = S + "es"; cout << ans << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int i; i = (int)(S.length()); string ans; if (S[i - 1] == 's') { ans = S + "es"; cout << ans << endl; } else { ans = S + "s"; cout << ans << endl; } }
[ "literal.string.change", "control_flow.branch.if.condition.change", "assignment.value.change", "expression.operation.binary.change" ]
243,402
243,403
u473083175
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string x; cin >> x; int a = x.size(); if (x.at(a - 1) == 's') { cout << x << 'es' << endl; } else cout << x << "s" << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string x; cin >> x; int a = x.size(); if (x.at(a - 1) == 's') { cout << x << "es" << endl; } else cout << x << 's' << endl; }
[ "literal.string.change", "io.output.change" ]
243,404
243,405
u533643630
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string x; cin >> x; int a = x.size(); if (x.at(a - 1) == 's') { cout << x << 's' << endl; } else cout << x << "es" << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string x; cin >> x; int a = x.size(); if (x.at(a - 1) == 's') { cout << x << "es" << endl; } else cout << x << 's' << endl; }
[ "control_flow.branch.else.add" ]
243,406
243,405
u533643630
cpp
p02546
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { string S; cin >> S; if (S[S.size() - 1] == 's') cout << S << "es" << endl; else cout << S << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { string S; cin >> S; if (S[S.size() - 1] == 's') cout << S << "es" << endl; else cout << S << 's' << endl; }
[ "io.output.change" ]
243,412
243,413
u805277811
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') { cout << s << "es"; } else cout << s << s; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') { cout << s << "es"; } else cout << s << "s"; return 0; }
[]
243,414
243,415
u018304601
cpp
p02546
#pragma GCC optimize(2) #include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" const int MAX = 1e6 + 7; const int mod = 1e9 + 7; const int inf = 0x3f3f3f3f; int main() { ios_base::sync_with_stdio(0); cin.tie(0); string s; cin >> s; int siz = s.size(); if (s[siz - 2] == 's') ...
#pragma GCC optimize(2) #include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" const int MAX = 1e6 + 7; const int mod = 1e9 + 7; const int inf = 0x3f3f3f3f; int main() { ios_base::sync_with_stdio(0); cin.tie(0); string s; cin >> s; int siz = s.size(); if (s[siz - 1] == 's') ...
[ "literal.number.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
243,425
243,426
u642229303
cpp
p02546
#include <bits/stdc++.h> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int n = s.size(); string t; if (s[n - 1] == 's') { t = s + 'e'; } t = t + 's'; cout << t; return 0; }
#include <bits/stdc++.h> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int n = s.size(); string t = s; if (s[n - 1] == 's') { t = t + 'e'; } t = t + 's'; cout << t; return 0; }
[ "variable_declaration.value.change", "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
243,438
243,439
u211529378
cpp
p02541
#include <bits/stdc++.h> typedef long long LL; using namespace std; array<LL, 2> find_alphas(LL a, LL b) { if (b == 0) return {1, 0}; auto result = find_alphas(b, a % b); LL k = a / b; return {result[1], (result[0] - result[1] * k)}; } LL gcd(LL a, LL b) { if (b == 0) return a; return gcd(b, a %...
#include <bits/stdc++.h> typedef long long LL; using namespace std; array<LL, 2> find_alphas(LL a, LL b) { if (b == 0) return {1, 0}; auto result = find_alphas(b, a % b); LL k = a / b; return {result[1], (result[0] - result[1] * k)}; } LL gcd(LL a, LL b) { if (b == 0) return a; return gcd(b, a %...
[ "assignment.change" ]
243,469
243,470
u915369024
cpp
p02541
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <string> #include <tuple> #include <vector> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i <= n; ++i) #de...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <string> #include <tuple> #include <vector> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i <= n; ++i) #de...
[ "control_flow.branch.while.replace.add", "control_flow.loop.if.replace.remove", "identifier.replace.remove", "literal.replace.add", "control_flow.branch.if.condition.change" ]
243,505
243,506
u313043608
cpp
p02541
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <string> #include <tuple> #include <vector> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i <= n; ++i) #de...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <string> #include <tuple> #include <vector> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i <= n; ++i) #de...
[ "control_flow.branch.while.replace.add", "control_flow.loop.if.replace.remove" ]
243,507
243,506
u313043608
cpp
p02541
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <string> #include <tuple> #include <vector> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i <= n; ++i) #de...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <string> #include <tuple> #include <vector> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i <= n; ++i) #de...
[ "variable_declaration.type.change", "control_flow.branch.while.replace.add", "control_flow.loop.if.replace.remove" ]
243,508
243,506
u313043608
cpp
p02541
#include <algorithm> #include <bitset> #include <cassert> #include <ciso646> #include <cmath> #include <complex> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <tuple> #include <u...
#include <algorithm> #include <bitset> #include <cassert> #include <ciso646> #include <cmath> #include <complex> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <tuple> #include <u...
[ "expression.operation.binary.add" ]
243,531
243,532
u236127431
cpp
p02541
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; typedef vector<ll> vl; typedef vector<bool> vb; typedef vector<string> vs; typedef vector<char> vc; typedef queue<ll> ql; typedef deque<ll> dql; typedef priority_queue<ll /*, vl, greater<ll>*/> pql; //降順(/*昇順*/) typedef set<...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; typedef vector<ll> vl; typedef vector<bool> vb; typedef vector<string> vs; typedef vector<char> vc; typedef queue<ll> ql; typedef deque<ll> dql; typedef priority_queue<ll /*, vl, greater<ll>*/> pql; //降順(/*昇順*/) typedef set<...
[ "control_flow.branch.if.condition.change" ]
243,542
243,543
u682191329
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.size(); if (s[n - 1] == 's') cout << s << 'es'; else cout << s << 's'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.size(); if (s[n - 1] == 's') cout << s << "es"; else cout << s << 's'; return 0; }
[ "literal.string.change", "io.output.change" ]
243,558
243,559
u354805691
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define read(x) freopen(x, "r", stdin); #define write(x) freopen(x, "w", stdout); #define xihaad int main() { #ifdef xihaad read("input.txt"); // write("output.txt"); #endif string s; cin >> s; int l = s.length(); if (s[l - 1] != 's') cout << s << "s"; e...
#include <bits/stdc++.h> using namespace std; #define read(x) freopen(x, "r", stdin); #define write(x) freopen(x, "w", stdout); // #define xihaad int main() { #ifdef xihaad read("input.txt"); // write("output.txt"); #endif string s; cin >> s; int l = s.length(); if (s[l - 1] != 's') cout << s << "s"; ...
[]
243,570
243,571
u683042356
cpp
p02546
// C++ includes used for precompiling -*- C++ -*- // Copyright (C) 2003-2013 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free So...
// C++ includes used for precompiling -*- C++ -*- // Copyright (C) 2003-2013 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free So...
[ "expression.operation.binary.remove" ]
243,576
243,577
u502694307
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main(void) { long long int n, m, i = 0, j, h, a; string s; cin >> s; h = s.size(); if (s[h] = 's') { cout << s + "es" << endl; } else { cout << s + 's' << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { long long int n, m, i = 0, j, h, a; string s; cin >> s; h = s.size(); if (s[h - 1] == 's') { cout << s + "es" << endl; } else { cout << s + 's' << endl; } return 0; }
[ "control_flow.branch.if.condition.change", "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
243,580
243,581
u806320475
cpp
p02546
#define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> #define fi first #define se second #define pb push_back #define E "\n" using namespace std; const long long MOD = (long long)1e9 + 7; string s; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> s; int len = s.length(); cout << s...
#define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> #define fi first #define se second #define pb push_back #define E "\n" using namespace std; const long long MOD = (long long)1e9 + 7; string s; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> s; int len = s.length(); cout << s...
[ "literal.string.change", "io.output.change" ]
243,588
243,589
u398025421
cpp
p02546
#include <bits/stdc++.h> int main(void) { std::string S; std::cin >> S; if (S[S.size() - 1] == 'e') { S += "s"; } else { S += "es"; } std::cout << S << std::endl; return 0; }
#include <bits/stdc++.h> int main(void) { std::string S; std::cin >> S; if (S[S.size() - 1] == 's') { S += "es"; } else { S += "s"; } std::cout << S << std::endl; return 0; }
[ "literal.string.change", "control_flow.branch.if.condition.change", "assignment.value.change" ]
243,590
243,591
u445011609
cpp
p02546
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { string S; cin >> S; if (S[S.size()] == 's') { S += "es"; } else { S += "s"; } cout << S; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { string S; cin >> S; if (S[S.size() - 1] == 's') { S += "es"; } else { S += "s"; } cout << S; return 0; }
[ "control_flow.branch.if.condition.change" ]
243,606
243,607
u024601709
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] != 's') s = s + 's'; else s = s += 'es'; cout << s; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] != 's') s = s + 's'; else s = s + "es"; cout << s; }
[ "literal.string.change", "assignment.value.change" ]
243,610
243,611
u897611339
cpp
p02546
#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>; // vector<> vec(n); int main() { int n = 0; string s; cin >> s; n = s.size(); if (s[n] == 's') { cout << s << "es" << endl; } else { cout << s << "s" << en...
#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>; // vector<> vec(n); int main() { int n = 0; string s; cin >> s; n = s.size(); if (s[n - 1] == 's') { cout << s << "es" << endl; } else { cout << s << "s" <<...
[ "control_flow.branch.if.condition.change" ]
243,612
243,613
u647231965
cpp
p02546
#include <iostream> using namespace std; int main() { string a; cin >> a; if (a[a.length() - 1] == 's') { a += "es"; } else { a += "s"; } return 0; }
#include <iostream> using namespace std; int main() { string a; cin >> a; if (a[a.length() - 1] == 's') { a += "es"; } else { a += "s"; } cout << a; return 0; }
[]
243,614
243,615
u556415589
cpp
p02546
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (*s.end() == 's') s += "es"; else s += 's'; cout << s << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (*(s.end() - 1) == 's') s += "es"; else s += 's'; cout << s << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
243,620
243,621
u172756003
cpp
p02546
#include <bits/stdc++.h> using namespace std; using ll = long long; using Graph = vector<vector<int>>; using pint = pair<int, int>; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; const int MOD = 1000000007; const long long INF = 1LL << 60; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a =...
#include <bits/stdc++.h> using namespace std; using ll = long long; using Graph = vector<vector<int>>; using pint = pair<int, int>; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; const int MOD = 1000000007; const long long INF = 1LL << 60; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a =...
[ "control_flow.branch.if.condition.change", "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
243,626
243,627
u998732100
cpp
p02546
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cassert> #include <cmath> #include <cstring> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #in...
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cassert> #include <cmath> #include <cstring> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #in...
[ "literal.string.change", "assignment.value.change" ]
243,628
243,629
u903268866
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') { s += 'es'; } else { s += 's'; } cout << s; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') { s += "es"; } else { s += 's'; } cout << s; }
[ "literal.string.change", "assignment.value.change" ]
243,639
243,640
u394340131
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int n = S.size(); if (S[n - 1] == 's') S + "es"; else S + 's'; cout << S << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int n = S.size(); if (S[n - 1] == 's') S += "es"; else S += 's'; cout << S << "\n"; }
[ "assignment.compound.arithmetic.replace.add", "expression.operator.arithmetic.replace.remove", "expression.operation.binary.change" ]
243,647
243,648
u113287534
cpp
p02546
// -------------- // Tejas Pandey | // 19 - 09 - 20 | // Atcoder BC 179| // -------------- #include <bits/stdc++.h> using namespace std; #define mod 1000000007 #define vi vector<int> typedef long long int ll; int main(void) { // freopen("in.txt","r",stdin); // freopen("out.txt","w",stdout); ios_base::sync_wi...
// -------------- // Tejas Pandey | // 19 - 09 - 20 | // Atcoder BC 179| // -------------- #include <bits/stdc++.h> using namespace std; #define mod 1000000007 #define vi vector<int> typedef long long int ll; int main(void) { // freopen("in.txt","r",stdin); // freopen("out.txt","w",stdout); ios_base::sync_wi...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change" ]
243,654
243,655
u878492982
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size()] == 's') { s.push_back('e'); s.push_back('s'); } else { s.push_back('s'); } cout << s << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') { s.push_back('e'); s.push_back('s'); } else { s.push_back('s'); } cout << s << endl; }
[ "control_flow.branch.if.condition.change" ]
243,658
243,659
u603380071
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.back()) cout << s << "es" << endl; else cout << s << "s" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.back() == 's') cout << s << "es" << endl; else cout << s << "s" << endl; }
[ "control_flow.branch.if.condition.change" ]
243,668
243,669
u805692198
cpp
p02546
#include <bits/stdc++.h> using namespace std; signed main() { string s; if (s[s.size() - 1] == 's') cout << s << "es"; else cout << s << "s"; return 0; }
#include <bits/stdc++.h> using namespace std; signed main() { string s; cin >> s; if (s[s.size() - 1] == 's') cout << s << "es"; else cout << s << "s"; return 0; }
[]
243,674
243,675
u602223636
cpp
p02546
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define mod 1000000007 ll gcd(ll a, ll b) { if (a == 0) return b; else return gcd(b % a, a); } ll lcm(ll a, ll b) { return (a * b) / gcd(a, b); } ll fact(ll n) { if (n == 0) return 1; else return n * fact(n - 1); } void ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define mod 1000000007 ll gcd(ll a, ll b) { if (a == 0) return b; else return gcd(b % a, a); } ll lcm(ll a, ll b) { return (a * b) / gcd(a, b); } ll fact(ll n) { if (n == 0) return 1; else return n * fact(n - 1); } void ...
[ "literal.string.change", "assignment.value.change" ]
243,676
243,677
u721174241
cpp
p02546
#include <bits/stdc++.h> #define ff first #define ss second #define pb push_back #define pf push_front #define eb emplace_back #define emp emplace #define ins insert #define mp make_pair #define mt make_tuple #define sz(s) (int)s.size() #define forp(i, a, b) for (int i = a; i <= b; i++) #define rep(i, n) for (int i = 0...
#include <bits/stdc++.h> #define ff first #define ss second #define pb push_back #define pf push_front #define eb emplace_back #define emp emplace #define ins insert #define mp make_pair #define mt make_tuple #define sz(s) (int)s.size() #define forp(i, a, b) for (int i = a; i <= b; i++) #define rep(i, n) for (int i = 0...
[]
243,686
243,687
u382427338
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; template <typename T> using oset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; stri...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; template <typename T> using oset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; stri...
[]
243,702
243,703
u126793530
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; if (s[s.size() - 1] == 's') cout << s << "es"; else cout << s << 's'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') cout << s << "es"; else cout << s << 's'; return 0; }
[]
243,712
243,713
u585918714
cpp
p02546
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; const int maxn = 1e6 + 5; int main() { string s; cin >> s; cout << s; if (s.back()) cout << "es"; else cout << "s"; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; const int maxn = 1e6 + 5; int main() { string s; cin >> s; cout << s; if (s.back() == 's') cout << "es"; else cout << "s"; return 0; }
[ "control_flow.branch.if.condition.change" ]
243,714
243,715
u361558096
cpp
p02546
//#pragma GCC optimize "trapv" //-D_GLIBCXX_DEBUG #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 pm(m) \ for (auto itr = (m).begin(); itr !=...
//#pragma GCC optimize "trapv" //-D_GLIBCXX_DEBUG #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 pm(m) \ for (auto itr = (m).begin(); itr !=...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change" ]
243,716
243,717
u532535081
cpp
p02546
#include <bits/stdc++.h> #define ff first #define ss second #define pb push_back #define ll long long #define MX 100005 #define inf 1000000 #define mod 1000000007 #define endl "\n" #define W(t) while (t--) #define all(v) v.begin(), v.end() #define ZERO(a) memset(a, 0, sizeof(a)) #define MINUS(a) memset(a, -1, sizeof(...
#include <bits/stdc++.h> #define ff first #define ss second #define pb push_back #define ll long long #define MX 100005 #define inf 1000000 #define mod 1000000007 #define endl "\n" #define W(t) while (t--) #define all(v) v.begin(), v.end() #define ZERO(a) memset(a, 0, sizeof(a)) #define MINUS(a) memset(a, -1, sizeof(...
[ "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
243,718
243,719
u429793253
cpp
p02546
#pragma GCC optimize("O3") #include <bits/stdc++.h> #define sp " " #define endl "\n" #define MAX 10e9 #define MAXN 100001 #define mod 1000000007 #define inf_int 2e9 #define inf_ll 2e18 #define e 1e-9 #define vi vector<int> #define vl vector<ll> #define vc vector<char> #define vs vector<string> #define vpl vector<pair<...
#pragma GCC optimize("O3") #include <bits/stdc++.h> #define sp " " #define endl "\n" #define MAX 10e9 #define MAXN 100001 #define mod 1000000007 #define inf_int 2e9 #define inf_ll 2e18 #define e 1e-9 #define vi vector<int> #define vl vector<ll> #define vc vector<char> #define vs vector<string> #define vpl vector<pair<...
[]
243,722
243,723
u884311908
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (*S.end() == 's') { cout << S << "es" << endl; } else { cout << S << "s" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S[S.size() - 1] == 's') { cout << S << "es" << endl; } else { cout << S << "s" << endl; } }
[ "control_flow.branch.if.condition.change", "call.function.change", "variable_access.subscript.index.change" ]
243,726
243,727
u871977501
cpp
p02546
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string s; cin >> s; if (s.back() == 's') { cout << s << 'es'; } else { cout << s << 's'; } return 0; }
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string s; cin >> s; if (s.back() == 's') { cout << s << 'e' << 's'; } else { cout << s << 's'; } return 0; }
[ "literal.string.change", "io.output.change" ]
243,732
243,733
u235321041
cpp
p02547
#include <bits/stdc++.h> using namespace std; int main() { int n, a[111][3]; cin >> n; cin >> a[1][1] >> a[1][2] >> a[2][1] >> a[2][2]; for (int i = 3; i <= n; i++) { cin >> a[i][1] >> a[i][2]; if (a[i][1] == a[i][2] && a[i - 1][1] == a[i - 1][2] && a[i - 2][2] == a[i - 2][1]) { cout << "y...
#include <bits/stdc++.h> using namespace std; int main() { int n, a[111][3]; cin >> n; cin >> a[1][1] >> a[1][2] >> a[2][1] >> a[2][2]; for (int i = 3; i <= n; i++) { cin >> a[i][1] >> a[i][2]; if (a[i][1] == a[i][2] && a[i - 1][1] == a[i - 1][2] && a[i - 2][2] == a[i - 2][1]) { cout << "Y...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
243,746
243,747
u495181507
cpp
p02547
#include <bits/stdc++.h> using namespace std; #define ll long long int static const auto _____ = []() { // fast IO code : this I understand ios::sync_with_stdio(false); cout.tie(NULL); cin.tie(0); return 0; }(); int main() { int n; cin >> n; int a[2][n]; int cnt = 0; int flag = 0; for (int i = ...
#include <bits/stdc++.h> using namespace std; #define ll long long int static const auto _____ = []() { // fast IO code : this I understand ios::sync_with_stdio(false); cout.tie(NULL); cin.tie(0); return 0; }(); int main() { int n; cin >> n; int a[n][2]; int cnt = 0; int flag = 0; for (int i = ...
[ "identifier.replace.add", "literal.replace.remove", "variable_declaration.array_dimensions.change", "identifier.replace.remove", "literal.replace.add" ]
243,750
243,751
u379321779
cpp
p02547
#include <bits/stdc++.h> using namespace std; int main(void) { int n, a, b; cin >> n; int count = 0; for (int i = 0; i < n; i++) { cin >> a >> b; if (a == b) count++; else { if (count >= 3) { cout << "Yes"; return 0; } else { count = 0; } } if ...
#include <bits/stdc++.h> using namespace std; int main(void) { int n, a, b; cin >> n; int count = 0; for (int i = 0; i < n; i++) { cin >> a >> b; if (a == b) count++; else { if (count >= 3) { cout << "Yes"; return 0; } else { count = 0; } } } i...
[]
243,761
243,762
u607096766
cpp
p02547
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int count; for (int i = 0; i < N; i++) { int a, b; cin >> a >> b; if (a == b) { count++; } else { count = 0; } if (count == 3) { cout << "Yes" << endl; break; } if (i == N - 1) { ...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int count = 0; for (int i = 0; i < N; i++) { int a, b; cin >> a >> b; if (a == b) { count++; } else { count = 0; } if (count == 3) { cout << "Yes" << endl; break; } if (i == N - 1...
[ "variable_declaration.value.change" ]
243,778
243,779
u792279959
cpp
p02547
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a[100][2]; for (int i = 0; i < n; i++) { cin >> a[i][0] >> a[i][1]; } //ループの終了条件に注意 for (int i = 0; i < n; i++) { if (a[i][0] == a[i][1] && a[i + 1][0] == a[i + 1][1] && a[i + 2][0] == a[i + 2][1]) { cou...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a[100][2]; for (int i = 0; i < n; i++) { cin >> a[i][0] >> a[i][1]; } //ループの終了条件に注意 for (int i = 0; i < n - 2; i++) { if (a[i][0] == a[i][1] && a[i + 1][0] == a[i + 1][1] && a[i + 2][0] == a[i + 2][1]) { ...
[ "control_flow.loop.for.condition.change" ]
243,780
243,781
u884074699
cpp
p02547
#include <bits/stdc++.h> //#include <windows.h> using namespace std; int main() { int n, i; cin >> n; vector<int> a(n); vector<int> b(n); for (i = 0; i < n; i++) { cin >> a[i] >> b[i]; } for (i = 0; i < n; i++) { if (a[i] == b[i]) { if (a[i + 1] == b[i + 1]) { if (a[i + 2] == b[i +...
#include <bits/stdc++.h> //#include <windows.h> using namespace std; int main() { int n, i; cin >> n; vector<int> a(n); vector<int> b(n); for (i = 0; i < n; i++) { cin >> a[i] >> b[i]; } for (i = 0; i < n - 2; i++) { if (a[i] == b[i]) { if (a[i + 1] == b[i + 1]) { if (a[i + 2] == b...
[ "control_flow.loop.for.condition.change" ]
243,816
243,817
u784907169
cpp
p02547
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math") #pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #define f first #define s second #define fore(i, a, b) for (int i = (a), ThxMK = (b); i < ThxMK; ++i) #define pb push_back #define all(s) begin(s), end(s) #define _ ...
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math") #pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #define f first #define s second #define fore(i, a, b) for (int i = (a), ThxMK = (b); i < ThxMK; ++i) #define pb push_back #define all(s) begin(s), end(s) #define _ ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
243,827
243,828
u345532484
cpp