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 <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
const int N = 500100;
#define lson rt << 1 // == rt * 2 左儿子
#define rson rt ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
const int N = 500100;
#define lson rt << 1 // == rt * 2 左儿子
#define rson rt ... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 714 |
#####segfunc#####
def segfunc(x, y):
return max(x,y)
#################
#####ide_ele 単位元#####
ide_ele = 0
#################
class SegTree:
"""
init(init_val, ide_ele): 配列init_valで初期化 O(N)
update(k, x): k番目の値をxに更新 O(logN)
query(l, r): 区間[l, r)をsegfuncしたものを返す O(logN)
"""
def __init__(self,... |
#####segfunc#####
def segfunc(x, y):
return max(x,y)
#################
#####ide_ele 単位元#####
ide_ele = 0
#################
class SegTree:
"""
init(init_val, ide_ele): 配列init_valで初期化 O(N)
update(k, x): k番目の値をxに更新 O(logN)
query(l, r): 区間[l, r)をsegfuncしたものを返す O(logN)
"""
def __init__(self,... | [["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 612], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 612]] | 5 | 421 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using tlll = tuple<ll, ll, ll>;
int main() {
ll N, K;
cin >> N >> K;
vector<ll> A(N), G(N, 1), MV(N);
for (ll i = 0; i < N; i++) {
cin >> A[i];
}
ll maxl = 0;
MV[N - 1] = 1;
for (ll i = N - 1; i >= 0; i--)... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using tlll = tuple<ll, ll, ll>;
int main() {
ll N, K;
cin >> N >> K;
vector<ll> A(N), G(N, 1), MV(N, 1e6);
for (ll i = 0; i < N; i++) {
cin >> A[i];
}
ll maxl = 0;
MV[N - 1] = 1;
for (ll i = N - 1; i >= 0;... | [["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 21], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 33], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 264 |
#pragma region head
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using pi = pair<int, int>;
using pll = pair<ll, ll>;
template <class T> using vv = vector<vector<T>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, a, b) for (in... | #pragma region head
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using pi = pair<int, int>;
using pll = pair<ll, ll>;
template <class T> using vv = vector<vector<T>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, a, b) for (in... | [["-", 49, 50, 51, 16, 31, 2, 3, 4, 0, 22], ["+", 51, 16, 31, 2, 3, 4, 0, 16, 31, 22], ["+", 51, 16, 31, 2, 3, 4, 0, 16, 17, 33], ["+", 51, 16, 31, 2, 3, 4, 0, 16, 12, 13]] | 1 | 783 |
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func configure(scanner *bufio.Scanner) {
scanner.Split(bufio.ScanWords)
scanner.Buffer(make([]byte, 1000005), 1000005)
}
func getNextString(scanner *bufio.Scanner) string {
scanned := scanner.Scan()
if !scanned {
panic("scan failed")
}
return scanner.Te... | package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func configure(scanner *bufio.Scanner) {
scanner.Split(bufio.ScanWords)
scanner.Buffer(make([]byte, 1000005), 1000005)
}
func getNextString(scanner *bufio.Scanner) string {
scanned := scanner.Scan()
if !scanned {
panic("scan failed")
}
return scanner.Te... | [["-", 439, 2, 3, 4, 0, 2, 3, 4, 0, 22], ["+", 439, 2, 3, 4, 0, 2, 3, 4, 0, 22]] | 7 | 1,726 |
import sys
input = sys.stdin.readline
def main():
n, k = map(int, input().split())
alst = [int(input()) for _ in range(n)]
N = 300100
ll = - 10 ** 10
LV = (N-1).bit_length()
N0 = 2**LV
data = [0]*(2*N0)
lazy = [ll]*(2*N0)
def gindex(l, r):
L = (l + N0) >> 1; R ... | import sys
input = sys.stdin.readline
def main():
n, k = map(int, input().split())
alst = [int(input()) for _ in range(n)]
N = 300100
ll = - 10 ** 10
LV = (N-1).bit_length()
N0 = 2**LV
data = [0]*(2*N0)
lazy = [ll]*(2*N0)
def gindex(l, r):
L = (l + N0) >> 1; R ... | [["-", 0, 662, 12, 657, 31, 652, 3, 4, 0, 22], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 22], ["-", 12, 657, 31, 652, 3, 4, 0, 657, 31, 22], ["+", 12, 657, 31, 652, 3, 4, 0, 657, 31, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", ... | 5 | 579 |
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define llu unsigned long long int
#define sa(a, n, t) \
for (int ii = 0; ii < n; ii++) \
scanf("%" #t "", &(a)[ii])
#define rep(i, n) for ... | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define llu unsigned long long int
#define sa(a, n, t) \
for (int ii = 0; ii < n; ii++) \
scanf("%" #t "", &(a)[ii])
#define rep(i, n) for ... | [["-", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22]] | 1 | 605 |
#include <bits/stdc++.h>
#define F first
#define S second
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
const LL INF = 0x3f3f3f3f3f3f3f3fLL;
LL extgcd(LL a, LL b, LL &x, LL &y) {
if (!b)
return x = 1, y = 0, a;
LL res = extgcd(b, a % b, y, x);
return y -= a / b * x, res;
}
int main() ... | #include <bits/stdc++.h>
#define F first
#define S second
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
const LL INF = 0x3f3f3f3f3f3f3f3fLL;
LL extgcd(LL a, LL b, LL &x, LL &y) {
if (!b)
return x = 1, y = 0, a;
LL res = extgcd(b, a % b, y, x);
return y -= a / b * x, res;
}
int main() ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 233 |
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#defin... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#defin... | [["-", 0, 11, 12, 2, 3, 4, 0, 16, 17, 72], ["-", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13]] | 1 | 411 |
class UnionFind:
def __init__(self, n):
self.parent = list(range(n)) #親ノード
self.size = [1]*n #グループの要素数
def root(self, x): #root(x): xの根ノードを返す.
while self.parent[x] != x:
self.parent[x] = self.parent[self.parent[x]]
x = self.parent[x]
return x
def ... | class UnionFind:
def __init__(self, n):
self.parent = list(range(n)) #親ノード
self.size = [1]*n #グループの要素数
def root(self, x): #root(x): xの根ノードを返す.
while self.parent[x] != x:
self.parent[x] = self.parent[self.parent[x]]
x = self.parent[x]
return x
def ... | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 404 |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <vector>
#define syosu(x) fixed << setprecision(x)
using namespace std;
typedef long long ll;
typedef unsigned int uint;
typedef uns... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <vector>
#define syosu(x) fixed << setprecision(x)
using namespace std;
typedef long long ll;
typedef unsigned int uint;
typedef uns... | [["-", 0, 11, 12, 2, 3, 4, 0, 118, 119, 120], ["+", 0, 11, 12, 2, 3, 4, 0, 118, 119, 120]] | 1 | 686 |
class UnionFind():
# 作りたい要素数nで初期化
def __init__(self, n):
self.n = n
self.root = [-1]*(n+1)
self.rnk = [0]*(n+1)
# ノードxのrootノードを見つける
def Find_Root(self, x):
if(self.root[x] < 0):
return x
else:
self.root[x] = self.Find_Root(self.root[x])
... | class UnionFind():
# 作りたい要素数nで初期化
def __init__(self, n):
self.n = n
self.root = [-1]*(n+1)
self.rnk = [0]*(n+1)
# ノードxのrootノードを見つける
def Find_Root(self, x):
if(self.root[x] < 0):
return x
else:
self.root[x] = self.Find_Root(self.root[x])
... | [["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]] | 5 | 426 |
from heapq import heappop, heappush
class UnionFind:
def __init__(self, n):
self.par = [i for i in range(n+1)]
self.rank = [0] * (n+1)
# search
def find(self, x):
if self.par[x] == x:
return x
else:
self.par[x] = self.find(self.par[x])
r... | from heapq import heappop, heappush
class UnionFind:
def __init__(self, n):
self.par = [i for i in range(n+1)]
self.rank = [0] * (n+1)
# search
def find(self, x):
if self.par[x] == x:
return x
else:
self.par[x] = self.find(self.par[x])
r... | [["+", 0, 656, 0, 14, 8, 196, 0, 7, 0, 88], ["+", 0, 656, 0, 14, 8, 196, 0, 7, 31, 22], ["+", 0, 656, 0, 14, 8, 196, 0, 7, 0, 267], ["+", 0, 656, 0, 14, 8, 196, 0, 7, 12, 22], ["+", 0, 656, 0, 14, 8, 196, 0, 7, 0, 102], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 587 |
#include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, A[N], XX[N], fa[N], mn[N], sz[N], id[N], stk[N];
int Find(int x) { return x == fa[x] ? x : fa[x] = Find(fa[x]); }
void Union(int x, int y) {
x = Find(x), y = Find(y);
fa[x] = y;
mn[x] = min(mn[x], mn[y]);
}
set<pair<int, int>> st;
int main... | #include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, A[N], XX[N], fa[N], mn[N], sz[N], id[N], stk[N];
int Find(int x) { return x == fa[x] ? x : fa[x] = Find(fa[x]); }
void Union(int x, int y) {
x = Find(x), y = Find(y);
fa[y] = x;
mn[x] = min(mn[x], mn[y]);
}
set<pair<int, int>> st;
int main... | [["-", 0, 1, 0, 11, 31, 69, 341, 342, 0, 22], ["+", 0, 1, 0, 11, 31, 69, 341, 342, 0, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22]] | 1 | 362 |
#include <algorithm>
#include <cstdio>
using namespace std;
int n, k, p[200005], pw[200005], tr[2][200005], ans = 0, alr, ty = 0;
const int mod = 998244353;
int mypow(int a, int b) {
int ans = 1;
while (b) {
if (b & 1)
ans = 1ll * ans * a % mod;
a = 1ll * a * a % mod;
b >>= 1;
}
return ans;
}
... | #include <algorithm>
#include <cstdio>
using namespace std;
int n, k, p[200005], pw[200005], tr[2][200005], ans = 0, alr, ty = 0;
const int mod = 998244353;
int mypow(int a, int b) {
int ans = 1;
while (b) {
if (b & 1)
ans = 1ll * ans * a % mod;
a = 1ll * a * a % mod;
b >>= 1;
}
return ans;
}
... | [["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 12, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["+", 12, 16, 31, 16, 31, 16, 31, 16, 12, 13]] | 1 | 616 |
#line 2 "/Users/kaage/Desktop/ProgrammingWorkspace/library/other/template.hpp"
#define _CRT_SECURE_NO_WARNINGS
#pragma target("avx2")
#pragma optimize("O3")
#pragma optimize("unroll-loops")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>... | #line 2 "/Users/kaage/Desktop/ProgrammingWorkspace/library/other/template.hpp"
#define _CRT_SECURE_NO_WARNINGS
#pragma target("avx2")
#pragma optimize("O3")
#pragma optimize("unroll-loops")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>... | [["+", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22]] | 1 | 2,723 |
S=input()
l=len(S)
s=list(S)
if s[l]=="s":
print(S+"es")
else:
print(S+"s") | S=input()
l=len(S)
s=list(S)
if s[l-1]=="s":
print(S+"es")
else:
print(S+"s")
| [["+", 0, 57, 15, 666, 0, 206, 206, 657, 17, 33], ["+", 0, 57, 15, 666, 0, 206, 206, 657, 12, 612]] | 5 | 45 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int s = S.size();
char a = S.at(s - 1);
if (a == 'e') {
cout << S << "s" << endl;
} else {
cout << S << "es" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int s = S.size();
char a = S.at(s - 1);
if (a == 's') {
cout << S << "es" << endl;
} else {
cout << S << "s" << endl;
}
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 73 |
#include <bits/stdc++.h>
#define ll long long int
#define ar array
#define pb push_back
#define input(arr, n) \
for (int i = 0; i < n; i++) \
cin >> arr[i]
const int mod = 1e9 + 7;
ll power(ll a, ll b) {
ll r... | #include <bits/stdc++.h>
#define ll long long int
#define ar array
#define pb push_back
#define input(arr, n) \
for (int i = 0; i < n; i++) \
cin >> arr[i]
const int mod = 1e9 + 7;
ll power(ll a, ll b) {
ll r... | [["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 11, 12, 5, 0, 6]] | 1 | 145 |
S = input()
Ss = '{}s'.format(S) if not S.endswith('s') else '{}es'.format(S) | S = input()
Ss = '{}s'.format(S) if not S.endswith('s') else '{}es'.format(S)
print(Ss) | [["+", 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, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 34 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define T \
int time; \
scanf("%d", &time); ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define T \
int time; \
scanf("%d", &time); ... | [["-", 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 | 95 |
#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>;
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
const int INF = 1e9 + 10;
int main() {
string s;
cin >> s;
if (s[-1] == 's')
s += "es";
else
... | #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>;
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
const int INF = 1e9 + 10;
int main() {
string s;
cin >> s;
if (s.back() == 's')
s += "es";
else
... | [["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 70], ["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 73], ["+", 15, 339, 51, 16, 31, 2, 63, 118, 17, 131], ["+", 15, 339, 51, 16, 31, 2, 63, 118, 119, 120], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24], ["+", 15, 339, 51, 16, 31, 2,... | 1 | 100 |
#include <bits/stdc++.h>
#define fst first
#define snd second
#define ll long long
#define ld long double
#define pb push_back
#define emp emplace_back
#define pii pair<int, int>
#define usg unsigned
#define sg signed
#define mp make_pair
using namespace std;
void setIO() {
ios::sync_with_stdio(0);
cin.tie(0);
... | #include <bits/stdc++.h>
#define fst first
#define snd second
#define ll long long
#define ld long double
#define pb push_back
#define emp emplace_back
#define pii pair<int, int>
#define usg unsigned
#define sg signed
#define mp make_pair
using namespace std;
void setIO() {
ios::sync_with_stdio(0);
cin.tie(0);
... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 143 |
#include <stdio.h>
#include <string.h>
int main(void) {
char S[1010];
int i;
scanf("%s", S);
i = 0;
while (S[i] != 0) {
i++;
}
if (S[i - 1] = 's') {
strcat(S, "es");
} else {
strcat(S, "s");
}
printf("%s", S);
return (0);
}
| #include <stdio.h>
#include <string.h>
int main(void) {
char S[1010];
int i;
scanf("%s", S);
i = 0;
while (S[i] != 0) {
i++;
}
if (S[i - 1] == 's') {
strcat(S, "es");
} else {
strcat(S, "s");
}
printf("%s\n", S);
return (0);
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 97 |
s=input()
if s[-1]=='e':print(s+'s')
else:print(s+'es') | s=input()
if s[-1]!='s':print(s+'s')
else:print(s+'es') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 79], ["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6]] | 5 | 34 |
#include <bits/stdc++.h>
using namespace std;
//#pragma GCC optimize("Ofast")
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define REP(i, k, n) for (long long i = k; i < (long long)(n); i++)
#define all(a) a.begin(), a.end()
#define eb emplace_back
#define lb(v, k) (lower_bound(all(v), k) - v.begin(... | #include <bits/stdc++.h>
using namespace std;
//#pragma GCC optimize("Ofast")
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define REP(i, k, n) for (long long i = k; i < (long long)(n); i++)
#define all(a) a.begin(), a.end()
#define eb emplace_back
#define lb(v, k) (lower_bound(all(v), k) - v.begin(... | [["-", 0, 1, 0, 16, 31, 69, 341, 342, 0, 70], ["-", 0, 16, 31, 69, 341, 342, 0, 16, 31, 22], ["-", 0, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["-", 0, 16, 31, 69, 341, 342, 0, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 69, 341, 342, 0, 73], ["-", 0, 57, 64, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 107]] | 1 | 778 |
S = input()
print(S + 's' if S[-1] != 's' else 'es')
| S = input()
print(S + ('s' if S[-1] != 's' else 'es'))
| [["+", 0, 652, 3, 4, 0, 657, 12, 23, 0, 24], ["+", 0, 652, 3, 4, 0, 657, 12, 23, 0, 25]] | 5 | 27 |
S=input()
if S.endswith=='s':
S=S+'es'
else:
S=S+'s'
print(S) | S=input()
if S.endswith('s'):
S=S+'es'
else:
S=S+'s'
print(S) | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 15, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 57, 15, 652, 3, 4, 0, 25]] | 5 | 34 |
#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";
}
}
| #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;
}
| [["+", 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 | 58 |
s = input()
if s[-1] == 's':
print(s)
else:
print(s + 'es') | s = input()
if s[-1] != 's':
print(s + 's')
else:
print(s + 'es') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 79], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 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, 655]] | 5 | 30 |
ans=gets.chomp.chars
ans << ans[-1]=="s"? "es" : "s"
puts ans.join | ans=gets.chomp.chars
ans << ((ans[-1]=="s")? "es" : "s")
puts ans.join
| [["+", 36, 36, 0, 493, 0, 738, 12, 739, 0, 24], ["+", 0, 738, 12, 739, 0, 754, 15, 739, 0, 24], ["+", 0, 738, 12, 739, 0, 754, 15, 739, 0, 25], ["+", 36, 36, 0, 493, 0, 738, 12, 739, 0, 25]] | 4 | 30 |
if __name__ == '__main__':
try:
singular = str(input())
singular.lower()
if singular[len(singular)-1] != 's':
singular += 's'
print(s)
else:
singular += 'es'
print(s)
except Exception:
pass | if __name__ == '__main__':
try:
s = str(input())
s.lower()
if s[len(s)-1] != 's':
s += 's'
print(s)
else:
s += 'es'
print(s)
except Exception:
pass | [["-", 0, 246, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 246, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 8, 196, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 8, 196, 0, 1, 0, 652, 63, 319, 500, 22], ["-", 8, 196, 0, 57, 15, 666, 0, 206, 51, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 51, 22], ["-", 0, 206, 206, 657, 31, 652, 3, 4, 0,... | 5 | 61 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
//#include<sys/time.h>
#include <fstream>
#include <random>
#define INF 2000000000
using namespace std;
typedef std::pa... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
//#include<sys/time.h>
#include <fstream>
#include <random>
#define INF 2000000000
using namespace std;
typedef std::pa... | [["+", 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 | 121 |
#include <bits/stdc++.h>
using namespace std;
string word;
void solve();
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
/*#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("error.txt", "w", stderr);
freopen("output.txt", "w", stdout);
#endif*/
int t = 1;
cin >> t;
whil... | #include <bits/stdc++.h>
using namespace std;
string word;
void solve();
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
/*#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("error.txt", "w", stderr);
freopen("output.txt", "w", stdout);
#endif*/
int t = 1;
// cin>>t;
whi... | [["-", 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 | 128 |
x = input()
if x.endswith("s") == True:
x = x + "es"
else:
x = x + "s" | x = input()
if x.endswith("s") == True:
x = x + "es"
else:
x = x + "s"
print(x) | [["+", 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, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 33 |
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, 57, 15, 23, 0, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 23, 0, 666, 0, 557, 0, 655]] | 5 | 35 |
words = input()
if words[-1] != s:
words += "s"
else:
words += "es"
print(words)
| words = input()
if words[-1] != "s":
words += "s"
else:
words += "es"
print(words)
| [["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]] | 5 | 30 |
string = input()
if string[-1] != 's':
new_string = string[0:] + 's'
if string[-1] == 's':
new_string = string[0:-1] +'es'
print(new_string) | string = input()
if string[-1] != 's':
new_string = string[0:] + 's'
if string[-1] == 's':
new_string = string[0:] +'es'
print(new_string) | [["-", 12, 657, 31, 206, 206, 663, 0, 664, 17, 33], ["-", 12, 657, 31, 206, 206, 663, 0, 664, 28, 612]] | 5 | 55 |
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define int long long
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string s;
cin >> s;
if (s[s.size()] == 's')
s += "es";
else
s += "s";
cout << s << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define int long long
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string s;
cin >> s;
if (s[s.size() - 1] == 's')
s += "es";
else
s += "s";
cout << s << endl;
return 0;
} | [["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]] | 1 | 83 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 1e6 + 5, MOD = 1e9 + 7;
const ll INF = 1e18 + 17;
void solve() {
string s;
cin >> s;
if (s.back() != 'x')
s += 'x';
else {
s += "es";
}
cout << s;
}
main() {
ios ::sync_with_stdio(0);
cin.tie(0);
int tt = 1;
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 1e6 + 5, MOD = 1e9 + 7;
const ll INF = 1e18 + 17;
void solve() {
string s;
cin >> s;
if (s.back() != 's')
s += 's';
else {
s += "es";
}
cout << s;
}
main() {
ios ::sync_with_stdio(0);
cin.tie(0);
int tt = 1;
... | [["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 125], ["+", 0, 57, 64, 1, 0, 11, 12, 103, 0, 125]] | 1 | 123 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int n;
cin >> s;
n = s.size() - 1;
if (s[n] == 's')
cout << s << "s" << endl;
else
cout << s << "es" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int n;
cin >> s;
n = s.size() - 1;
if (s[n] == 's')
cout << s << "es" << endl;
else
cout << s << "s" << endl;
} | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 64 |
#include <stdio.h>
int main() {
char ch[100];
gets(ch);
puts(ch);
if (ch[strlen(ch) - 1] == 's') {
printf("es\n");
} else
printf("s\n");
} | #include <stdio.h>
int main() {
char ch[1010];
gets(ch);
printf("%s", ch);
if (ch[strlen(ch) - 1] == 's') {
printf("es\n");
} else
printf("s\n");
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21]] | 0 | 59 |
s = gets
if s[s.size-1]=='s'
s = s + 'e'
end
puts s + 's' | s = gets.chomp
if s[s.size-1]=='s'
s = s + 'e'
end
puts s + 's'
| [["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]] | 4 | 30 |
m = input()
c = m[-1]
if c == 's':
print(m+'es')
else:
print(c+'s') | m = input()
c = m[-1]
if c == 's':
print(m+'es')
else:
print(m+'s') | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22]] | 5 | 37 |
import java.util.Scanner;
public class Main {
void run(String[] args) {
Scanner scan = new Scanner(System.in);
String line = scan.nextLine();
String str;
String[] lines = line.split("");
if (lines[lines.length - 1] == "s") {
str = line + "es";
} else {
str = line + "s";
}
... | import java.util.Scanner;
public class Main {
void run(String[] args) {
Scanner scan = new Scanner(System.in);
String line = scan.nextLine();
String str;
String[] lines = line.split("");
if (lines[lines.length - 1].equals("s")) {
str = line + "es";
} else {
str = line + "s";
}... | [["-", 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, 57, 15, 15, 0, 492, 3, 4, 0, 25]] | 3 | 130 |
#include <stdio.h>
struct segTree {
int value[1200010];
void setValue(int ind, int val, int l = 1, int r = 300000, int v = 1) {
if (l == r)
value[v] = val;
else {
int h = (l + r) / 2;
if (ind <= h)
setValue(ind, val, l, h, 2 * v);
else
setValue(ind, val, h + 1, r, 2 *... | #include <stdio.h>
struct segTree {
int value[1200010];
void setValue(int ind, int val, int l = 0, int r = 300000, int v = 1) {
if (l == r)
value[v] = val;
else {
int h = (l + r) / 2;
if (ind <= h)
setValue(ind, val, l, h, 2 * v);
else
setValue(ind, val, h + 1, r, 2 *... | [["-", 0, 14, 49, 53, 54, 55, 0, 356, 365, 13], ["+", 0, 14, 49, 53, 54, 55, 0, 356, 365, 13], ["-", 0, 2, 3, 4, 0, 2, 3, 4, 0, 13], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 13], ["-", 0, 2, 3, 4, 0, 2, 3, 4, 0, 22]] | 1 | 427 |
#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000;
template <typename T> struct segment_tree {
int N;
vector<T> ST;
segment_tree(int n) {
N = 1;
while (N < n) {
N *= 2;
}
ST = vector<T>(N * 2 - 1, -INF);
}
T operator[](int k) { return ST[N - 1 + k]; }
void update(in... | #include <bits/stdc++.h>
using namespace std;
const int INF = 1000000;
template <typename T> struct segment_tree {
int N;
vector<T> ST;
segment_tree(int n) {
N = 1;
while (N < n) {
N *= 2;
}
ST = vector<T>(N * 2 - 1, -INF);
}
T operator[](int k) { return ST[N - 1 + k]; }
void update(in... | [["+", 0, 2, 3, 4, 0, 16, 31, 2, 63, 22], ["+", 3, 4, 0, 16, 31, 2, 3, 4, 0, 24], ["+", 31, 2, 3, 4, 0, 2, 3, 4, 0, 25], ["+", 3, 4, 0, 16, 31, 2, 3, 4, 0, 21], ["+", 3, 4, 0, 16, 31, 2, 3, 4, 0, 13]] | 1 | 451 |
#include <bits/stdc++.h>
#ifndef ATCODER_INTERNAL_BITOP_HPP
#define ATCODER_INTERNAL_BITOP_HPP 1
#ifdef _MSC_VER
#include <intrin.h>
#endif
namespace atcoder {
namespace internal {
// @param n `0 <= n`
// @return minimum non-negative `x` s.t. `n <= 2**x`
int ceil_pow2(int n) {
int x = 0;
while ((1U << x) < (unsign... | #include <bits/stdc++.h>
#ifndef ATCODER_INTERNAL_BITOP_HPP
#define ATCODER_INTERNAL_BITOP_HPP 1
#ifdef _MSC_VER
#include <intrin.h>
#endif
namespace atcoder {
namespace internal {
// @param n `0 <= n`
// @return minimum non-negative `x` s.t. `n <= 2**x`
int ceil_pow2(int n) {
int x = 0;
while ((1U << x) < (unsign... | [["-", 8, 9, 0, 37, 0, 191, 51, 83, 0, 13], ["+", 8, 9, 0, 37, 0, 191, 51, 83, 0, 13]] | 1 | 15,289 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int N = 2e5 + 3;
const int mod = 998244353;
ll n, q, l, r, k;
ll num[N], all_1[N];
struct A {
ll l, r, num, lazy;
} a[N];
void f(int root, int k) {
a[root].lazy = k;
a[root].num = (k * all_1[a[root].r - a[root].l + 1]) % mod;
}
void pushback... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
const int N = 2e6 + 3;
const int mod = 998244353;
ll n, q, l, r, k;
ll num[N], all_1[N];
struct A {
ll l, r, num, lazy;
} a[N];
void f(int root, int k) {
a[root].lazy = k;
a[root].num = (k * all_1[a[root].r - a[root].l + 1]) % mod;
}
void pushback... | [["-", 0, 30, 0, 43, 49, 50, 51, 16, 31, 13], ["+", 0, 30, 0, 43, 49, 50, 51, 16, 31, 13]] | 1 | 777 |
import java.io.*;
import java.math.BigInteger;
import java.util.*;
public class Main {
public static long mod = 1000000007;
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String S = s.next();
if (S.charAt(S.length() - 1) == 'S') {
System.out.println(S + "es");
... | import java.io.*;
import java.math.BigInteger;
import java.util.*;
public class Main {
public static long mod = 1000000007;
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String S = s.next();
if (S.charAt(S.length() - 1) == 's') {
System.out.println(S + "es");
... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 12, 252], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 12, 252]] | 3 | 113 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ar array
#define ull unsigned long long
#define ld long double
#define uint unsigned int
struct debug {
~debug() { cerr << "\n"; }
template <class C> debug &operator<<(C c) {
cerr << c;
return *this;
}
};
#define var(x) " [" << #x ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ar array
#define ull unsigned long long
#define ld long double
#define uint unsigned int
struct debug {
~debug() { cerr << "\n"; }
template <class C> debug &operator<<(C c) {
cerr << c;
return *this;
}
};
#define var(x) " [" << #x ... | [["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 145 |
//go:generate echo "https://atcoder.jp/contests/abc179/tasks/abc179_a"
package main
import (
"bufio"
"fmt"
"io"
"math/big"
"os"
"strconv"
"strings"
)
var scan = newScanner(os.Stdin)
func Solve(S string) string {
if strings.HasSuffix(S, "s") {
return S + "s"
}
return S + "es"
}
func main() {
S := scan.S... | //go:generate echo "https://atcoder.jp/contests/abc179/tasks/abc179_a"
package main
import (
"bufio"
"fmt"
"io"
"math/big"
"os"
"strconv"
"strings"
)
var scan = newScanner(os.Stdin)
func Solve(S string) string {
if strings.HasSuffix(S, "s") {
return S + "es"
}
return S + "s"
}
func main() {
S := scan.S... | [] | 7 | 1,791 |
s=str(input())
s=list(s)
if s[len(s)-1]=="s":
print("".join(s)+"es")
else:
print("".join()+"s") | s=str(input())
s=list(s)
if s[len(s)-1]=="s":
print("".join(s)+"es")
else:
print("".join(s)+"s") | [["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 22]] | 5 | 58 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int n = s.length();
if (s[n] != 's') {
cout << s << "s" << endl;
} else {
cout << s << "es" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int n = s.length();
// for(int i=0; i<n; i++)
if (s[n - 1] != 's') {
cout << s << "s" << endl;
} else {
cout << s << "es" << endl;
}
// for(int i=0; i<n; i++){
// if(s[n] == 's')
// cout<<s<<"es"<<endl;}
... | [["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]] | 1 | 67 |
def main():
import sys
inl = sys.stdin.buffer.readline
n = input()
print(n)
if(n[len(n)-1] =="s"):
n+='es'
else:
n+='s'
print(n)
if __name__ == "__main__":
main() | def main():
import sys
inl = sys.stdin.buffer.readline
n = input()
if(n[len(n)-1] =="s"):
n+='es'
else:
n+='s'
print(n)
if __name__ == "__main__":
main() | [["-", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 68 |
s=sys.stdin
if s[len(s)-1] =="s":
print(s + "es")
else:
print(s + "s") | s=input()
if s[len(s)-1] =="s":
print(s + "es")
else:
print(s + "s") | [["-", 0, 656, 0, 1, 0, 662, 12, 319, 500, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 319, 0, 131], ["-", 0, 656, 0, 1, 0, 662, 12, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 38 |
s=input()
print(s+'es'[s[-1]<'s':]) | s=input()
print(s+'es'[s[-1]!='s':]) | [["-", 0, 657, 12, 206, 206, 663, 0, 666, 667, 18], ["+", 0, 657, 12, 206, 206, 663, 0, 666, 667, 79]] | 5 | 25 |
#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';
}
}
| #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';
}
}
| [["-", 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 | 58 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.back() == 's')
s += 'es';
else
s += 's';
cout << s;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.back() == 's')
s += "es";
else
s += 's';
cout << s;
}
| [["-", 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 | 49 |
#include <algorithm>
#include <cmath>
#include <ctime>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using pii = pair<int, int>;
using ppi = pair<pii, int>;
int f_dir[2][4] = {{-1, 0, 1, 0}, {0, 1, 0, -1}}; //... | #include <algorithm>
#include <cmath>
#include <ctime>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using pii = pair<int, int>;
using ppi = pair<pii, int>;
int f_dir[2][4] = {{-1, 0, 1, 0}, {0, 1, 0, -1}}; //... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]] | 1 | 247 |
/******************************************************************************
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.
**********... | /******************************************************************************
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.
**********... | [["-", 12, 16, 31, 2, 3, 4, 0, 16, 17, 33], ["-", 12, 16, 31, 2, 3, 4, 0, 16, 12, 13]] | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
cout << (s[-1] != 's' ? s + "s" : s + "es") << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
cout << (s[s.size() - 1] != 's' ? s + "s" : s + "es") << endl;
} | [["-", 0, 41, 15, 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], ["+", 15, 16, 31, 69, 341, 342, 0, 16... | 1 | 46 |
#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;
}
}
| [["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 64 |
/*
このコード、と~おれ!
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... | [["-", 0, 11, 12, 23, 0, 41, 64, 103, 0, 104], ["-", 0, 11, 12, 23, 0, 41, 64, 103, 0, 125], ["-", 12, 23, 0, 41, 64, 103, 0, 42, 0, 22], ["+", 0, 11, 12, 23, 0, 41, 64, 5, 0, 62], ["+", 0, 11, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 11, 12, 23, 0, 41, 75, 103, 0, 104], ["+", 0, 11, 12, 23, 0, 41, 75, 5, 0, 62]] | 1 | 514 |
line = input()
if line[len(line)] == ("s"):
line += "es"
else:
line += "s"
print(line) | line = input()
if line[len(line)-1] == ("s"):
line += "es"
else:
line += "s"
print(line) | [["+", 0, 57, 15, 666, 0, 206, 206, 657, 17, 33], ["+", 0, 57, 15, 666, 0, 206, 206, 657, 12, 612]] | 5 | 36 |
#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... | [["-", 0, 1, 0, 11, 31, 2, 63, 118, 17, 131], ["-", 0, 1, 0, 11, 31, 2, 63, 118, 119, 120], ["-", 0, 1, 0, 11, 31, 2, 3, 4, 0, 24], ["-", 0, 1, 0, 11, 31, 2, 3, 4, 0, 25], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 107]] | 1 | 897 |
s = input("Enter Input:")
if s[len(s) - 1] != "s":
s += "s"
elif s[len(s) - 1] == "s":
s += "es"
print(s)
| s = input()
if s[len(s) - 1] != "s":
s += "s"
elif s[len(s) - 1] == "s":
s += "es"
print(s)
| [["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 655]] | 5 | 52 |
s = gets.to_s
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, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]] | 4 | 29 |
#include <stdio.h>
int main(void) {
char S[1001];
int n;
scanf("%s", &S);
for (n = 0;; n++) {
if (S[n] == '\0')
break;
}
if (S[n - 1] == 's') {
printf("%ses", S);
} else
printf("%s", S);
return 0;
} | #include <stdio.h>
int main(void) {
char S[1001];
int n;
scanf("%s", &S);
for (n = 0;; n++) {
if (S[n] == '\0')
break;
}
if (S[n - 1] == 's') {
printf("%ses", S);
} else
printf("%ss", S);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 90 |
#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... | [["-", 0, 9, 0, 7, 15, 16, 12, 16, 12, 13], ["+", 0, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 110 |
#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;
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 66, 17, 48], ["-", 51, 16, 31, 66, 28, 2, 63, 118, 119, 120], ["+", 15, 339, 51, 16, 31, 2, 63, 118, 119, 120]] | 1 | 60 |
#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;
}
| [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 61 |
#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";
}
} | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13]] | 1 | 79 |
#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";
} | [["-", 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 | 63 |
//| 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... | [["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 193 |
#include <stdio.h>
int main() {
char arr[1200];
char s[] = "s";
char es[] = "es";
gets(arr);
int x = strlen(arr);
if (arr[x - 1] == 'e') {
strcat(arr, s);
} else {
strcat(arr, es);
}
puts(arr);
return (0);
}
| #include <stdio.h>
int main() {
char arr[1200];
char s[] = "s";
char es[] = "es";
gets(arr);
int x = strlen(arr);
if (arr[x - 1] == 's') {
strcat(arr, es);
} else {
strcat(arr, s);
}
puts(arr);
return (0);
}
| [["-", 0, 57, 15, 23, 0, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 125], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 0 | 87 |
S = input()
print(S+'es' if S.endswith('s') else print(S+'s')) | S = input()
print(S+'es' if S.endswith('s') else S+'s') | [["-", 0, 652, 3, 4, 0, 41, 0, 652, 63, 22], ["-", 3, 4, 0, 41, 0, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 41, 0, 652, 3, 4, 0, 25]] | 5 | 31 |
S = gets.chomp.to_s
rev = S.reverse!
judge = rev.index("s")
puts judge
if judge == 0
puts rev.reverse! + "es"
else
puts rev.reverse! + "s"
end | S = gets.chomp.to_s
rev = S.reverse!
judge = rev.index("s")
if judge == 0
puts rev.reverse! + "es"
else
puts rev.reverse! + "s"
end | [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22]] | 4 | 46 |
#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;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 0, 57, 64, 9, 0, 1, 0, 16, 17, 72], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 107], ["-", 75, 76, 0, 9, 0, 1, 0, 16, 17, 72], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 107]] | 1 | 61 |
#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;
}
} | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 65 |
s = input()
if s[len(s)] == 's':
print(s+'es')
else:
print(s+'s') | s = input()
if s[len(s)-1] == 's':
print(s+'es')
else:
print(s+'s') | [["+", 0, 57, 15, 666, 0, 206, 206, 657, 17, 33], ["+", 0, 57, 15, 666, 0, 206, 206, 657, 12, 612]] | 5 | 36 |
#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;
} | [["-", 0, 7, 15, 16, 12, 23, 0, 16, 17, 33], ["-", 0, 7, 15, 16, 12, 23, 0, 16, 12, 13]] | 1 | 93 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (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.at(S.size() - 1) == 's')
cout << S << "es" << endl;
else
cout << S << "s" << endl;
} | [["+", 15, 339, 51, 16, 31, 2, 63, 118, 119, 120], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24], ["+", 3, 4, 0, 16, 31, 2, 63, 118, 28, 22], ["+", 3, 4, 0, 16, 31, 2, 63, 118, 17, 131], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 25]] | 1 | 54 |
#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;
}
} | [["-", 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 | 71 |
chr = input("")
num = len(s)
if chr[num-1] == "s":
print(chr + "es")
else:
print(chr + "s")
| chr = input("")
num = len(chr)
if chr[num-1] == "s":
print(chr + "es")
else:
print(chr + "s") | [["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]] | 5 | 43 |
s= input()
if s.endwith('s'):
print(s+'es')
else:
print(s+'s') | s= input()
if s.endswith('s'):
print(s+'es')
else:
print(s+'s') | [["-", 0, 656, 0, 57, 15, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 57, 15, 652, 63, 319, 319, 22]] | 5 | 33 |
#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;
}
} | [["-", 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 | 60 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
int n;
n = s.length();
String X;
X = s.substring(n);
if (X == "s") {
System.out.println(s + "es");
} else {
System.out.prin... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
int n;
n = s.length();
String X;
X = s.substring(n - 1);
if (X.equals("s")) {
System.out.println(s + "es");
} else {
System... | [["+", 0, 11, 12, 492, 3, 4, 0, 16, 17, 33], ["+", 0, 11, 12, 492, 3, 4, 0, 16, 12, 499], ["-", 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, 57, 15, 15, 0, 492, 3, 4, 0, 25]] | 3 | 106 |
#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;
}
| [["-", 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 | 70 |
#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;
} | [["-", 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 | 58 |
if s[-1] == 's':
s += 'es'
else:
s += 's'
print(s) | s = input()
if s[-1] == 's':
s += 'es'
else:
s += 's'
print(s) | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 27 |
#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;
}
| [["-", 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], ["-", 0, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 62]] | 1 | 73 |
#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... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]] | 1 | 111 |
#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;
} | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 62 |
#include <stdio.h>
int main() {
int i = -1;
char a[10000];
do {
i++;
scanf("%c", &a[i]);
} while (a[i]);
if (a[i - 1] == 's') {
a[i] = 'e';
a[i + 1] = 's';
} else
a[i] = 's';
printf("%s\n", a);
return 0;
}
| #include <stdio.h>
int main() {
int i = -1;
char a[10000];
do {
i++;
scanf("%s", &a[i]);
} while (a[i]);
if (a[i - 1] == 's') {
a[i] = 'e';
a[i + 1] = 's';
} else
a[i] = 's';
printf("%s\n", a);
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 104 |
#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... | [["-", 51, 16, 31, 69, 341, 342, 0, 105, 0, 150], ["-", 341, 342, 0, 105, 51, 16, 31, 23, 0, 24], ["+", 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]] | 1 | 115 |
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, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]] | 5 | 32 |
#include <stdio.h>
#include <string.h>
int main(void) {
char s[1001] = {0};
scanf("%s", s);
if (s[strlen(s) - 1] == 's') {
printf("%ses\n", s);
} else {
printf("%ss≠n", s);
}
return 0;
} | #include <stdio.h>
#include <string.h>
int main(void) {
char s[1001] = {0};
scanf("%s", s);
if (s[strlen(s) - 1] == 's') {
printf("%ses\n", s);
} else {
printf("%ss\n", s);
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 73 |
#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() ... | [["-", 64, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 64, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 185 |
a = gets
puts a[-1] == "s" ? a + "es" : a + "s" | a = gets.chomp
puts a[-1] == "s" ? a + "es" : a + "s" | [["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]] | 4 | 25 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.