buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string moji; int back; cin >> moji; back = moji.size(); if (moji.at(back - 1) == 's') { moji += 'es'; } else { moji += 's'; } cout << moji << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string moji; int back; cin >> moji; back = moji.size(); if (moji.at(back - 1) == 's') { moji += "es"; } else { moji += "s"; } cout << moji; }
[["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 104], ["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["-", 0, 1, 0, 11, 12, 103, 0, 42, 0, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 62], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 11, 12, 103, 0, 104], ["+", 0, 9, 0, 1, 0, 11, 12, 5, 0, 62], ["-", 0, 14, 8, 9, 0, 1,...
1
77
#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; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 22], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 31, 22], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]]
1
64
#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; } }
[["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 9, 0, 1, 0, 16, 17, 151]]
1
80
// 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...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
122
#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; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
55
#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; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
73
#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() { ...
[["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
135
#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; }
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
63
#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; }
[["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 104], ["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 125], ["-", 64, 1, 0, 11, 12, 103, 0, 42, 0, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 62], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6]]
1
58
#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; }
[["-", 341, 342, 0, 16, 31, 2, 63, 118, 119, 120], ["+", 341, 342, 0, 16, 31, 2, 63, 118, 119, 120], ["+", 0, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
63
S = input() if(S[-1]=='s'): del S[-1] S=S+'es' else: S=S+'s' print(S)
S = input() if(S[-1]=='s'): S=S+'es' else: S=S+'s' print(S)
[["-", 0, 656, 0, 57, 64, 196, 0, 688, 0, 702], ["-", 0, 57, 64, 196, 0, 688, 0, 206, 51, 22], ["-", 0, 57, 64, 196, 0, 688, 0, 206, 0, 70], ["-", 64, 196, 0, 688, 0, 206, 206, 664, 17, 33], ["-", 64, 196, 0, 688, 0, 206, 206, 664, 28, 612], ["-", 0, 57, 64, 196, 0, 688, 0, 206, 0, 73]]
5
44
s = input() if s[s.length-1] == 's': print(s+'es') else: print(s+'s')
s = input() if s[len(s)-1] == 's': print(s+'es') else: print(s+'s')
[["+", 15, 666, 0, 206, 206, 657, 31, 652, 63, 22], ["+", 0, 206, 206, 657, 31, 652, 3, 4, 0, 24], ["-", 15, 666, 0, 206, 206, 657, 31, 319, 0, 131], ["-", 15, 666, 0, 206, 206, 657, 31, 319, 319, 22], ["+", 0, 206, 206, 657, 31, 652, 3, 4, 0, 25]]
5
37
#include <iostream> using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); string s; cin >> s; if (s[s.size() - 1] == 's') { std::cout << s << 'es' << std::endl; } else { std::cout << s << 's' << std::endl; } return 0; }
#include <iostream> using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); string s; cin >> s; if (s[s.size() - 1] != 's') { std::cout << s << "s" << std::endl; } else { std::cout << s << "es" << std::endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
87
#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; ...
[["-", 0, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["-", 0, 16, 31, 16, 12, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 16, 12, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 12, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 12, 16, 12, 5, 0, 6]]
1
92
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); if (S.charAt(S.length()) == 's') { System.out.println(S + "es"); } else { System.out.println(S + "s"); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); if (S.charAt(S.length() - 1) == 's') { System.out.println(S + "es"); } else { System.out.println(S + "s"); } } }
[["+", 0, 16, 31, 492, 3, 4, 0, 16, 17, 33], ["+", 0, 16, 31, 492, 3, 4, 0, 16, 12, 499]]
3
90
S = list(input()) num = len(S) - 1 if S[num] == 's': S[num] = 'e' S.append('s') else: S.append('s') print(''.join(S))
S = list(input()) num = len(S) - 1 if S[num] == 's': S.append('e') S.append('s') else: S.append('s') print(''.join(S))
[["-", 64, 196, 0, 1, 0, 662, 31, 206, 0, 70], ["-", 64, 196, 0, 1, 0, 662, 31, 206, 206, 22], ["-", 64, 196, 0, 1, 0, 662, 31, 206, 0, 73], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["+", 64, 196, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 64, 196, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24...
5
62
import sys input = sys.stdin.readline s = input() if s[len(s)-1] == "s": ans = s.rstrip() + "es" print(ans) else: ans = s.rstrip() + "s" print(ans)
import sys input = sys.stdin.readline s = input() if s[len(s)-2] == "s": ans = s.rstrip() + "es" print(ans) else: ans = s.rstrip() + "s" print(ans)
[["-", 0, 57, 15, 666, 0, 206, 206, 657, 12, 612], ["+", 0, 57, 15, 666, 0, 206, 206, 657, 12, 612]]
5
61
S = input() if S[-1] == 's': print(S) else: print(S + 's')
S = input() if S[-1] == 's': print(S + 'es') else: print(S + 's')
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 657, 12, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 657, 12, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 12, 557, 0, 655]]
5
30
#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; }
[["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]]
1
67
s = input() ret = s if s[::-1] == "s": ret += "es" else: ret += "s" print(ret)
s = input() ret = s if s[-1] == "s": ret += "es" else: ret += "s" print(ret)
[["-", 0, 57, 15, 666, 0, 206, 206, 663, 0, 102]]
5
37
#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"); }
[["-", 64, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 64, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62]]
1
69
def main(): s = input() if s[-1] == s: ans = s + 'es' else: ans = s + 's' print(ans) main()
def main(): s = input() if s[-1] == 's': ans = s + 'es' else: ans = s + 's' print(ans) main()
[["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
42
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS Code, Compile, Run and Debug online from anywhere in world. **********...
#include <stdio.h> #include <string.h> int main() { char S[100001]; int l; scanf("%s", S); l = strlen(S); if (S[l - 1] != 's') { S[l] = 's'; } if (S[l - 1] == 's') { S[l] = 'e'; S[l + 1] = 's'; } printf("%s", S); }
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]]
0
107
// 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)...
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
79
s = gets.chomp result = s[-1] == 's' ? 'es' : 's' p s + result
s = gets.chop result = s[-1] == 's' ? 'es' : 's' puts s + result
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
28
#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; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
86
#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; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
63
n=input() if n[len(n)-1]=="s": n.append("es") else: n.append("s") print("".join(n))
n=list(input()) if n[len(n)-1]=="s": n.append("es") else: n.append("s") print("".join(n))
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
48
#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; }
[["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 341, 342, 0, 16, 31, 2, 63, 118, 28, 22], ["+", 341, 342, 0, 16, 31, 2, 63, 118, 17, 131], ["+", 341, 342, 0, 16, 31, 2, 63, 118, 119, 120], ["+", 341, 342, 0, 16, 31, 2, 3, 4, 0, 24], ["+", 341, 342, 0, 16, 31, 2, 3, 4, 0, 25], ["+", 51, 16, 31, 69, 341, 342, 0, ...
1
80
#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; }
[["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
78
S=input() if S[-1:]=="s": print("S"+"es") else: print("S"+"s")
S=input() if S[-1:]=="s": print(S+"es") else: print(S+"s")
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 654], ["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 655]]
5
39
#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; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
84
#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 ...
[["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 104], ["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["-", 0, 1, 0, 11, 12, 103, 0, 42, 0, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 62], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
115
#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; }
[["-", 0, 1, 0, 11, 12, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 6]]
1
66
#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...
[["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 104], ["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["-", 0, 1, 0, 11, 12, 103, 0, 42, 0, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 62], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
268
s = gets.split("").map(&:to_s) print s.join if s.last == "s" then print "es" else print "s" end
s = gets.chomp.split("").map(&:to_s) print s.join if s.last == "s" then print "es" else print "s" end
[["+", 0, 662, 12, 652, 486, 652, 486, 652, 735, 22], ["+", 0, 493, 0, 662, 12, 652, 486, 652, 17, 131]]
4
38
s = gets if s[-1] == "s" puts "#{s}es" else puts "#{s}s" end
s = gets.chomp if s[-1] == "s" puts "#{s}es" else puts "#{s}s" end
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
29
#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); } }
[["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
82
#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...
[["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
207
#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"; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
73
#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; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
68
#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; }
[["-", 12, 23, 0, 41, 15, 16, 12, 103, 0, 125], ["+", 12, 23, 0, 41, 15, 16, 12, 103, 0, 125], ["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
67
import sys, re import math import numpy as np from decimal import Decimal from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul # from copy impor...
import sys, re import math import numpy as np from decimal import Decimal from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul # from copy impor...
[["-", 15, 666, 0, 206, 206, 657, 31, 652, 63, 22], ["-", 0, 206, 206, 657, 31, 652, 3, 4, 0, 24], ["-", 0, 206, 206, 657, 31, 652, 3, 4, 0, 22], ["-", 0, 206, 206, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]]
5
223
s = gets if s[s.length-1] == "s" s += "es" else s += "s" end puts s
s = gets.chomp if s[s.length-1] == "s" s += "es" else s += "s" end puts s
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
30
#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(...
[["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]]
1
98
#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 ...
[["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 104], ["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 125], ["-", 64, 1, 0, 11, 12, 103, 0, 42, 0, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 62], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6]]
1
131
word = input() if word[-1] == "s": word_new =word[:-1] + "es" print(word_new) else: print(word + "s")
word = input() if word[-1] == "s": word_new = word + "es" print(word_new) else: print(word + "s")
[["-", 0, 1, 0, 662, 12, 657, 31, 206, 0, 70], ["-", 0, 662, 12, 657, 31, 206, 206, 663, 0, 102], ["-", 12, 657, 31, 206, 206, 663, 0, 664, 17, 33], ["-", 12, 657, 31, 206, 206, 663, 0, 664, 28, 612], ["-", 0, 1, 0, 662, 12, 657, 31, 206, 0, 73]]
5
42
<?php fscanf(STDIN, "%s", $s); $arr = str_split($s); $value = $arr[array_key_last($arr)]; if($value=="e"){ echo $s."s"; }else{ echo $s."es"; }
<?php fscanf(STDIN, "%s", $s); $arr = str_split($s); $value = $arr[array_key_last($arr)]; if($value=="s"){ echo $s."es"; }else{ echo $s."s"; }
[["-", 0, 57, 15, 23, 0, 16, 12, 609, 0, 610], ["+", 0, 57, 15, 23, 0, 16, 12, 609, 0, 610], ["-", 8, 9, 0, 608, 0, 16, 12, 609, 0, 610], ["+", 8, 9, 0, 608, 0, 16, 12, 609, 0, 610]]
6
65
def createPlural(s): if s[-1] == "s": return s[:-1] + "es" else: return s + "s" s = input() s_plural = createPlural(s) print(s_plural)
def createPlural(s): if s[-1] == "s": return s + "es" else: return s + "s" s = input() s_plural = createPlural(s) print(s_plural)
[["-", 64, 196, 0, 37, 0, 657, 31, 206, 0, 70], ["-", 0, 37, 0, 657, 31, 206, 206, 663, 0, 102], ["-", 0, 657, 31, 206, 206, 663, 0, 664, 17, 33], ["-", 0, 657, 31, 206, 206, 663, 0, 664, 28, 612], ["-", 64, 196, 0, 37, 0, 657, 31, 206, 0, 73]]
5
51
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #define sz(x) ((int)(x).size()) #define full(a) a.begin(), a.end() #define FOR(i, a, n) for (int i = a; i...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #define sz(x) ((int)(x).size()) #define full(a) a.begin(), a.end() #define FOR(i, a, n) for (int i = a; i...
[["-", 64, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["-", 64, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["-", 0, 1, 0, 16, 12, 103, 0, 42, 0, 22], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
236
#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; } }
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["-", 0, 1, 0, 11, 12, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 6]]
1
84
#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; }
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104]]
1
75
word = input() if word[-1] == "s": print(word + "es") else: print(word)
word = input() if word[-1] == "s": print(word + "es") else: print(word + "s")
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 657, 12, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 657, 12, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 12, 557, 0, 655]]
5
30
#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; }
[["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 57, 75, 76, 0, 1, 0, 16, 17, 151]]
1
59
#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; }
[["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 62]]
1
56
#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') ...
[["-", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]]
1
105
s = gets if (s[-1] == 's') puts ("#{s}es") else puts ("#{s}s") end
s = gets.strip if (s[-1] == 's') puts ("#{s}es") else puts ("#{s}s") end
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
35
#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; }
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 22], ["-", 64, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 31, 22]]
1
73
str=gets res="" if str[str.length-1]=='s' res=str+"es" else res=str+"s" end puts res
str=gets.chomp res="" if str[str.length-1]=='s' res=str+"es" else res=str+"s" end puts res
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
38
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String data = sc.next(); String last = data.substring(data.length() - 1, data.length()); if (last == "s") { System.out.println(last + "es"); } else { System.out.printl...
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String data = sc.next(); String last = data.substring(data.length() - 1, data.length()); if (last.matches("s")) { System.out.println(data + "es"); } else { System.out....
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 492, 0, 131], ["+", 8, 196, 0, 57, 15, 15, 0, 492, 141, 22], ["+", 0, 57, 15, 15, 0, 492, 3, 4, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 15, 0, 25], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 31, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 31, 22]]
3
105
from math import gcd def euclid(A,B): if B==1: return 1,1-A else: q,r = A//B,A%B x1,y1 = euclid(B,r) return y1,x1-q*y1 N = int(input()) ans = 2*N for i in range(1,2*N+1): if i**2>(2*N): break if N%i: continue A,B = i,(2*N)//i if gcd(A,B)!=1: ...
from math import gcd def euclid(A,B): if B==1: return 1,1-A else: q,r = A//B,A%B x1,y1 = euclid(B,r) return y1,x1-q*y1 N = int(input()) ans = 2*N for i in range(1,2*N+1): if i**2>(2*N): break if (2*N)%i: continue A,B = i,(2*N)//i if gcd(A,B)!=1...
[["+", 8, 196, 0, 57, 15, 657, 31, 23, 0, 24], ["+", 0, 57, 15, 657, 31, 23, 0, 657, 31, 612], ["+", 0, 57, 15, 657, 31, 23, 0, 657, 17, 48], ["+", 8, 196, 0, 57, 15, 657, 31, 23, 0, 25]]
5
298
#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 %...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
307
#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...
[["-", 8, 9, 0, 7, 8, 9, 0, 57, 0, 121], ["+", 8, 9, 0, 7, 8, 9, 0, 52, 0, 89]]
1
699
#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...
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
1,087
#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<...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 140], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 67]]
1
773
import sys readline = sys.stdin.readline def gcd(a,b): while b: a, b = b, a%b return a def egcd(a, b): if a == 0: return b, 0, 1 else: g, y, x = egcd(b % a, a) return g, x - (b // a) * y, y N = int(readline()) res = [] for i in range(1, N): if i*i > 8*N: break ...
import sys readline = sys.stdin.readline def gcd(a,b): while b: a, b = b, a%b return a def egcd(a, b): if a == 0: return b, 0, 1 else: g, y, x = egcd(b % a, a) return g, x - (b // a) * y, y N = int(readline()) res = [] for i in range(1, N): if i*i > 8*N: break ...
[["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
308
#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; }
[["-", 0, 57, 64, 1, 0, 16, 12, 103, 0, 104], ["-", 0, 57, 64, 1, 0, 16, 12, 103, 0, 125], ["-", 64, 1, 0, 16, 12, 103, 0, 42, 0, 22], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 62], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]]
1
62
#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"; ...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["-", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22]]
1
86
S = input() if S[-1] == 's': S = S + 's' else: S = S + 'es' print(S)
S = input() if S[-1] == 's': S = S + 'es' else: S = S + 's' print(S)
[["-", 0, 1, 0, 662, 12, 657, 12, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 657, 12, 557, 0, 6]]
5
36
// 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...
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]]
1
383
S = str(input()) if S[-1] != 'S': S = S + 's' else: S = S + 'es' print(S)
S = str(input()) if S[-1] != 's': S = S + 's' else: S = S + 'es' print(S)
[["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6]]
5
39
#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; }
[["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
84
s = input() a = (len(s)) if (s[a-1])=="e": print(s,"s", sep="") else: print(s,"es", sep="")
s = input() a = (len(s)) if (s[a-1])=="s": print(s,"es", sep="") else: print(s,"s", sep="")
[["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
55
#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...
[["-", 64, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 64, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
118
#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; }
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
67
a=input() if(a[len(a)-1]=="s"): a.append("e") print(a+"s")
a=input() if(a[len(a)-1]=="s"): a+="e" print(a+"s")
[["-", 64, 196, 0, 1, 0, 652, 63, 319, 0, 131], ["-", 64, 196, 0, 1, 0, 652, 63, 319, 319, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 17, 107], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
38
n = input() if n[-1] == 's': n+='es' else: n+='s' return n
n = input() if n[-1] == 's': n+='es' else: n+='s' print(n)
[["-", 36, 36, 36, 36, 0, 656, 0, 37, 0, 38], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
30
#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; }
[["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]]
1
72
#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; }
[["-", 75, 76, 0, 1, 0, 11, 12, 11, 17, 107], ["-", 0, 1, 0, 11, 12, 11, 12, 103, 0, 104], ["-", 0, 1, 0, 11, 12, 11, 12, 103, 0, 125], ["-", 0, 11, 12, 11, 12, 103, 0, 42, 0, 22], ["+", 75, 76, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 6]]
1
58
#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" <<...
[["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]]
1
96
#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; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
56
s = str(input()) if s[-1] == 's': print(s[:-2] + 'es') else: print(s + 's')
s = str(input()) if s[-1] == 's': print(s + 'es') else: print(s + 's')
[["-", 0, 652, 3, 4, 0, 657, 31, 206, 0, 70], ["-", 3, 4, 0, 657, 31, 206, 206, 663, 0, 102], ["-", 0, 657, 31, 206, 206, 663, 0, 664, 17, 33], ["-", 0, 657, 31, 206, 206, 663, 0, 664, 28, 612], ["-", 0, 652, 3, 4, 0, 657, 31, 206, 0, 73]]
5
42
#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; }
[["+", 15, 339, 51, 16, 31, 66, 28, 23, 0, 24], ["+", 28, 23, 0, 16, 31, 2, 3, 4, 0, 25], ["+", 51, 16, 31, 66, 28, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 66, 28, 23, 0, 16, 12, 13]]
1
56
s = str(input()) l = len(s) if s[l-1]=="s": ans = s[:l-1]+"es" else: ans = s+"s" print(ans)
s = str(input()) l = len(s) if s[l-1]=="s": ans = s+"es" else: ans = s+"s" print(ans)
[["-", 0, 1, 0, 662, 12, 657, 31, 206, 0, 70], ["-", 0, 662, 12, 657, 31, 206, 206, 663, 0, 102], ["-", 12, 657, 31, 206, 206, 663, 0, 657, 31, 22], ["-", 12, 657, 31, 206, 206, 663, 0, 657, 17, 33], ["-", 12, 657, 31, 206, 206, 663, 0, 657, 12, 612], ["-", 0, 1, 0, 662, 12, 657, 31, 206, 0, 73]]
5
52
#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 =...
[["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13], ["-", 0, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["-", 0, 16, 31, 16, 12, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 16, 12, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 12, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 12, 16, 12, 5, 0, 6]]
1
204
#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...
[["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 104], ["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 125], ["-", 64, 1, 0, 11, 12, 103, 0, 42, 0, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 62], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6]]
1
396
s = input() if s[:-1] == 's': s += 'es' else: s += 's' print(s)
s = input() if s[-1] == 's': s += 'es' else: s += 's' print(s)
[["-", 0, 57, 15, 666, 0, 206, 206, 663, 0, 102]]
5
33
S = str(input()) if S[-1] == 's': S += 's' else: S += 'es' print(S)
S = str(input()) if S[-1] != 's': S += 's' else: S += 'es' print(S)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 79]]
5
35
#include <algorithm> #include <assert.h> #include <bitset> #include <climits> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include...
#include <algorithm> #include <assert.h> #include <bitset> #include <climits> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include...
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 75, 76, 0, 1, 0, 16, 12, 103, 0, 125]]
1
389
#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; }
[["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 104], ["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["-", 0, 1, 0, 11, 12, 103, 0, 42, 0, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 62], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
58
function Main(input) { const s = input.trim().split(" "); const end = s.slice(-1); if (end === "s") { console.log(`${s}es`); } else { console.log(`${s}s`); } } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
function Main(input) { const s = input.trim(); const end = s.slice(-1); if (end === "s") { console.log(`${s}es`); } else { console.log(`${s}s`); } } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
[["-", 0, 570, 0, 200, 51, 2, 63, 558, 0, 131], ["-", 0, 570, 0, 200, 51, 2, 63, 558, 559, 560], ["-", 0, 570, 0, 200, 51, 2, 3, 3, 0, 24], ["-", 0, 200, 51, 2, 3, 3, 0, 557, 0, 62], ["-", 0, 200, 51, 2, 3, 3, 0, 557, 0, 491], ["-", 0, 570, 0, 200, 51, 2, 3, 3, 0, 25]]
2
92
#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"; }
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 17, 72], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 107], ["-", 0, 57, 75, 76, 0, 1, 0, 16, 17, 72], ["+", 0, 57, 75, 76, 0, 1, 0, 11, 17, 107]]
1
62
// -------------- // 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...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
104
#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; }
[["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]]
1
72
# frozen_string_literal: true s = gets.chomp puts s + (s[-1] == 's' ? 's' : 'es')
# frozen_string_literal: true s = gets.chomp puts s + (s[-1] == 's' ? 'es' : 's')
[["-", 0, 738, 12, 739, 0, 754, 64, 557, 0, 6], ["+", 0, 738, 12, 739, 0, 754, 64, 557, 0, 6], ["-", 0, 738, 12, 739, 0, 754, 75, 557, 0, 6], ["+", 0, 738, 12, 739, 0, 754, 75, 557, 0, 6]]
4
28
#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; }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
48
s = gets puts s + (s[-1]=='s' ? 'es' : 's')
s = gets.chomp puts s + (s[-1]=='s' ? 'es' : 's')
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
25
#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; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
52
#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 ...
[["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 104], ["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 125], ["-", 64, 1, 0, 11, 12, 103, 0, 42, 0, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 62], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6]]
1
206
s = input().rstrip() if s[-1]==s: s += 'es' else: s += 's' print(s)
s = input().rstrip() if s[-1]=='s': s += 'es' else: s += 's' print(s)
[["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]]
5
34