s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s906651353 | p02546 | u150788544 | 1600545116 | Python | PyPy3 (7.3.0) | py | Runtime Error | 129 | 68648 | 291 | n,k = map(int,input().split())
st = set([])
for i in range(k):
x,y = map(int,input().split())
for z in range(x,y+1):
st.add(z)
ans = [1]
for i in range(1,n):
s = 0
for x in st:
if i >= x:
s = s + ans[i-x]
ans.append(s % 998244353)
print(ans[-1])
|
s681015465 | p02546 | u179411549 | 1600545057 | Python | PyPy3 (7.3.0) | py | Runtime Error | 91 | 74748 | 108 | a = input().split()
if a.endswith('e') :
print(a+'s')
elif a.endswith('s'):
print(a+'es')
else:
print(a) |
s802543888 | p02546 | u347502437 | 1600545008 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9220 | 500 | def main():
N, X, M = map(int, input().split())
NN = N
li = []
while X not in li and N != 0:
li = li + [X]
X = X ** 2 % M
N -= 1
if N == 0:
print(sum(x for x in li))
elif N != 0 and X in li:
l = len(li)
s = li.index(X)
T = l - s
... |
s072891286 | p02546 | u809416266 | 1600544956 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8952 | 59 | S = ''
if ('S'[-1]) = s:
print('S's)
else:
print('S'es) |
s323169652 | p02546 | u179411549 | 1600544904 | Python | PyPy3 (7.3.0) | py | Runtime Error | 90 | 68760 | 117 | a = map(int, input().split())
if a.endswith('e'):
print(a+'s')
elif a.endswith('s'):
print(a+'es')
else:
print(a) |
s087855263 | p02546 | u809416266 | 1600544878 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9008 | 48 | if ('S'[-1]) = s:
print(Ss)
else:
print(Ses) |
s822820684 | p02546 | u194390510 | 1600544856 | Python | PyPy2 (7.3.0) | py | Runtime Error | 94 | 64284 | 398 | n,x,m=map(int,raw_input().split())
v=[x]
t={x:1}
ok=1
while True:
y=(x*x)%m
if y==0:
print sum(v);ok=0;break
if y in t:
break
else:
t[y]=1
v.append(y)
x=y
g=n%(len(v))
ans=0
for i in range(len(v)):
if i>g:
ans+=((n/len(v))*(v[i]) )
... |
s668941107 | p02546 | u870576013 | 1600544799 | Python | PyPy3 (7.3.0) | py | Runtime Error | 152 | 68756 | 93 | n = int(input())
c=0
for i in range(1,n):
a = 0
while a<n-i:
a+=i
c+=1
print(c) |
s166494302 | p02546 | u918712681 | 1600544775 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9184 | 283 | N = int(input())
A=[list(map(int, input().split())) for i in range(N)]
num = 0
zoro = 0
while num < N:
if A[num][0] ==A[num][1]:
num +=1
zoro +=1
else:
num +=1
if zoro >2:
zoro = zoro
else:
zoro = 0
if zoro >2 :
print("Yes")
else:
print("No") |
s484135445 | p02546 | u809416266 | 1600544770 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8948 | 52 | if ('S'[-1]) = s:
print('S's)
else:
print('S'es) |
s821406856 | p02546 | u894606367 | 1600544745 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9196 | 362 | n = int(input())
num_list = []
for i in range(n):
num_list.append(list(map(int,input().split())))
ans = []
for i in range(n):
a = num_list[i]
a1= a[0]
a2 = a[1]
if a1 == a2:
ans.append(1)
if i > 1 and ans[i-2] == 1 and ans[i-1] == 1 and ans[i] == 1:
print('Yes')
break
else:
ans.... |
s511059910 | p02546 | u918712681 | 1600544742 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9088 | 283 | N = int(input())
A=[list(map(int, input().split())) for i in range(N)]
num = 0
zoro = 0
while num < N:
if A[num][0] ==A[num][1]:
num +=1
zoro +=1
else:
num +=1
if zoro >2:
zoro = zoro
else:
zoro = 0
if zoro >2 :
print("Yes")
else:
print("No") |
s532593061 | p02546 | u153823221 | 1600544714 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9080 | 276 | n = int(input())
p = [list(map(int,input().split())) for i in range(n)]
a = p[0]
b = 0
ans = 0
tf = 1
for j in range(n):
if sum(p[j]) // 2 *2 ==sum(p[j]):
ans += 1
else:
ans = 0
if ans ==3:
tf = 0
print("Yes")
break
if tf == 1:
print("No") |
s440422062 | p02546 | u263173473 | 1600544683 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9168 | 186 | n=int(input())
counter=0
for i in range(1,n+1):
for j in range(1,n+1):
for k in range(n-i*k,n+1):
if((i*j+k)==n):
counter=counter+1
print(counter) |
s391923894 | p02546 | u167542063 | 1600544640 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9008 | 84 | s=input()
if s[-1]==s:
s1= s +"es"
print(s1)
else:
s2 = s +"s"
print(s2) |
s354287630 | p02546 | u750712894 | 1600544634 | Python | PyPy2 (7.3.0) | py | Runtime Error | 83 | 64328 | 113 | import sympy
N = int(input())
count = 0
for i in range(1,N):
count += len(sympy.divisors(N-i))
print(count)
|
s650865575 | p02546 | u005788584 | 1600544557 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9204 | 310 | nk=input().split()
n=int(nk[0])
k=int(nk[1])
a=[]
for i in range(k):
lr=input().split()
l=int(lr[0])
r=int(lr[1])
for i in range(l,r+1):
a.append(i)
a=list(set(a))
dp=[0]*n
dp[0]=1
for i in range(1,n):
for j in a:
if i>=j:
dp[i]+=dp[i-j]
print(dp[-1]%998244353) |
s841354424 | p02546 | u167542063 | 1600544539 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8940 | 82 | s=input()
if s[-1]==s:
s1= s +"es"
print(s1)
else:
s2 = s +"s"
print(s2) |
s344059027 | p02546 | u582686131 | 1600544492 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8980 | 74 | st = input()
if st[-1] == 's':
return st + 'es'
else:
return st + 's' |
s060886023 | p02546 | u357147881 | 1600544360 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9108 | 248 | n[1000]=input()
while(n.isalpha()):
if n.lower()==n:
l=list(n.split(''))
if l[-1]=='s':
l.append('es')
else:
l.append('s')
s=''.join(l)
print(s)
else:
print('Print the plural form of the given Taknese word.') |
s148636480 | p02546 | u410956928 | 1600544309 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8972 | 62 | S=input()
if S[-1]==s:
S = S+"es"
else:
S = S+"s"
print(S) |
s606679188 | p02546 | u005788584 | 1600544303 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9164 | 300 | nk=input().split()
n=int(nk[0])
k=int(nk[1])
a=[]
for i in range(k):
lr=input().split()
l=int(lr[0])
r=int(lr[1])
for i in range(l,r+1):
a.append(i)
a=list(set(a))
dp=[0]*n
dp[0]=1
for i in range(1,n):
for j in a:
if i>=j:
dp[i]+=dp[i-j]
print(dp[-1]) |
s876956801 | p02546 | u027977105 | 1600544301 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9064 | 170 | N = int(input())
z = 0
for a in range(N):
for b in range(N):
c = N - (a+1)*(b+1)
if c > 0:
z = z+1
else:
pass
print(z) |
s874942064 | p02546 | u453529685 | 1600544270 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9172 | 143 | N = int(input())
count = 0
for C in range(1,N):
for A in range(1,N-C+1):
B = (N-C)/A
if B.is_integer():
count += 1
print(count) |
s344447384 | p02546 | u093838453 | 1600544247 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9172 | 192 | n = int(input())
count=0
for num in range(n):
d1,d2 = map(int,input().split())
if d1 == d2:
count += 1
else:
if count>0:
print("Yes")
else:
print("No") |
s461550465 | p02546 | u873939138 | 1600544230 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9160 | 174 | import sys
input = sys.stdin.readline
N = int(input())
d = 0
for a in range(1,N):
for b in range(1,N):
for c in range(1,N):
if a*b+c == N:
d += 1
print(d) |
s905422878 | p02546 | u955123468 | 1600544093 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9120 | 157 | S = str(input(""))
if Word.endswith('y'):
print(S[:-1]+"ies")
elif S.endswith(('o', 'ch', 's', 'sh', 'x', 'z')):
print(S+"es")
else:
print(S+"s") |
s580739792 | p02546 | u923342518 | 1600544060 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9168 | 224 | N = int(input())
count = 0
c = 0
for i in range(N):
d1,d2 = input().split()
if d1==d2:
count+=1
if count==3:
c =1
else:
count=0
if c==1:
print('Yes')
else:
print('No') |
s250133336 | p02546 | u848097937 | 1600544012 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9032 | 178 | s = input
if Taknese == s:
print("Takneses")
else:
print("Taknese")
if apple == s:
print("apples")
else:
print("apple")
if bus == s:
print("buses")
else:
print("bus") |
s190766471 | p02546 | u923342518 | 1600544001 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9120 | 246 | N = int(input())
count = 0
c = 0
for i in range(N):
d1,d2 = input().split()
if d1==d2:
count+=1
if count==3:
c =1
sys.exit()
else:
count=0
if c==1:
print('Yes')
else:
print('No') |
s595638452 | p02546 | u923342518 | 1600543941 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9168 | 227 | N = int(input())
count = 0
c = 0
for i in range(N):
d1,d2 = input().split()
if d1==d2:
count+=1
if count==3:
c =1
else:
count=0
if count==1:
print('Yes')
else:
print('No') |
s845717695 | p02546 | u087590461 | 1600543907 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9104 | 405 | # -*- coding: utf-8 -*-
"""Untitled3.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1VVfPJl7_dXodPfxyID5RNKhqW1ZRqVux
"""
N= int(input())
count=0
for i in range(N):
p,q=map(int,input().split(' '))
if count<3:
if p==q:
count+=1
... |
s368168806 | p02546 | u719044784 | 1600543833 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8932 | 134 | from pattern.text.en import singularize
plurals = [int(input())]
singles = [singularize(plural) for plural in plurals]
print singles |
s180269040 | p02546 | u854931881 | 1600543819 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9024 | 87 | n=input()
if n[len(n)-1]=="s":
n.append("es")
else:
n.append("s")
print("".join(n)) |
s627716770 | p02546 | u267549094 | 1600543799 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9008 | 64 | s=input()
if s[-1]=='s':
s+='es'
return s
s+='s'
return s
|
s815105358 | p02546 | u964635736 | 1600543786 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8992 | 85 | a=input()
e=a[len(a)-1:len(a)-1]
if e == "s":
print(a+"es")
else:
print(a+"s" |
s934097827 | p02546 | u267549094 | 1600543763 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9068 | 61 | s=input()
if s[-1]=='s':
s+='es'
return s
s+='s'
return s |
s069454513 | p02546 | u384708632 | 1600543718 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9160 | 197 | n = int(input())
count = 0
for i in range(n):
if i == 0:
count = 0
else:
if n % i == 0:
count += (n//i) -1
else:
count += (n//i)
print(count) |
s972905245 | p02546 | u465284486 | 1600543708 | Python | PyPy3 (7.3.0) | py | Runtime Error | 230 | 68564 | 166 | N = int(input())
count = 0
for a in range(1, N):
ans, mod = divmod(N, a)
if mod == 0:
count += ans - 1
else:
count += ans
print(count) |
s332340989 | p02546 | u274755552 | 1600543696 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8948 | 67 | S = input()
if S[-1] == "s":
print( S, "es" )
else print( S, "s" ) |
s481996136 | p02546 | u267549094 | 1600543668 | Python | PyPy3 (7.3.0) | py | Runtime Error | 244 | 74344 | 95 | input = input()
if input[-1]=='s':
return input.append('es')
else:
return input.append('s') |
s877823031 | p02546 | u914883924 | 1600543646 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9080 | 67 | S=input()
if S[-1]==s:
print("S"+"es")
else:
print("S"+"s") |
s100547614 | p02546 | u274755552 | 1600543630 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9020 | 69 | S = input()
if S[-1] == "s":
print( S + "es" )
else print( S + "s" ) |
s406133419 | p02546 | u465284486 | 1600543611 | Python | PyPy3 (7.3.0) | py | Runtime Error | 137 | 74716 | 164 | N = int(input())
count = 0
for a in range(1, N):
ans, mod = divmod(N, a)
if mod == 0:
count += ans - 1
else:
count += ans
print(count) |
s888893519 | p02546 | u570991163 | 1600543600 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9132 | 192 | n=int(input())
c,f=0,0
while(n>0):
a,b=map(int,input().split())
if(a==b):
c+=1
else:
c=0
if(c>=3):
f=1
break
n-=1
if(f==1 or c>=3):
print("Yes")
else:
print("No") |
s222975645 | p02546 | u914883924 | 1600543590 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9096 | 63 | S=input()
if S[-1]==s:
print(S+"es")
else:
print(S+"s") |
s578701638 | p02546 | u536235324 | 1600543566 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9048 | 216 | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 19 13:14:17 2020
@author: Admin
"""
n,x,m=input().split()
m=int(m)
a=[int(x)]
for i in range(1,int(n)):
zp=a[i-1]
z=zp**2
a.append(z%m)
print(sum(a)) |
s527231045 | p02546 | u887442481 | 1600543525 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9016 | 76 | word = input()
if(word[-s] == 's'):
print(word+'es')
else:
print(word+'s') |
s606521010 | p02546 | u274755552 | 1600543422 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9000 | 65 | S = input()
if S[-1] = "s"
print( S, "es" )
else print( S, "s" ) |
s849086045 | p02546 | u105862524 | 1600543418 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9148 | 86 | word = int(input())
if word[-1] == 's':
print(word + 'es')
else:
print(word + 's') |
s630639305 | p02546 | u454472984 | 1600543416 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9172 | 231 | n=int(input())
flag=0
ans=0
for i in range(n):
d1,d2=map(int,input().split())
if d1==d2:
flag+=1
if flag==3:
ans=1
else:
flag=0
if ans!=1:
print("No")
else:
print("Yes")
|
s653089307 | p02546 | u087590461 | 1600543413 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9164 | 162 | N= int(input())
count=0
for i in range(N):
p,q=map(int,input().split(' '))
if p==q:
count+=1
else:
count=0
if count>=3:
print('Yes')
else:
print('No') |
s633020894 | p02546 | u686817216 | 1600543402 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9032 | 138 | s=input()
s_list=list(s)
x=len(s_list)
if s_list[x-1]=="s":
s_list[x-1]="e"
s_list[x]="s"
else:
s_list.append("s")
print(s_list) |
s996429501 | p02546 | u635759013 | 1600543393 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9204 | 333 | N = int(input())
nums =[]
count = 0
switch = False
for i in range(N):
nums.append([int(x) for x in input().split()])
for j in nums:
if j[0] == j[1]:
count += 1
elif j[0] != j[1]:
count = 0
if count == 3:
switch = True
if switch == True:
print("Yes")
elif switch == False:
... |
s951217656 | p02546 | u887442481 | 1600543383 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9004 | 89 | word = input()
if(word[-s] == 's'):
print(word+'es')
else:
print(word+'s') |
s970085237 | p02546 | u914883924 | 1600543365 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9028 | 68 | S=str(input())
if S[-1]==s:
print(S+"es")
else:
print(S+"s") |
s567933669 | p02546 | u274755552 | 1600543327 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8996 | 66 | S = input()
if S[-1] = "s"
print( S + "es" )
else print( S + "s" ) |
s985864300 | p02546 | u887442481 | 1600543326 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8936 | 89 | word = input()
if(word[-s] == 's'):
print(word+'es')
else:
print(word+'s') |
s195529830 | p02546 | u357147881 | 1600543326 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9004 | 109 | n=input()
l=list(n.split(''))
if l[-1]='s':
l.append('es')
else:
l.append('s')
s=''.join(l)
print(s)
|
s053952474 | p02546 | u274755552 | 1600543275 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9000 | 68 | S = input()
if S[-1] = "s"
print( S + "es" )
else print( S + "s" )
|
s193331499 | p02546 | u128282559 | 1600543267 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9188 | 321 | n = int(input())
a = []
for i in range(n):
d1, d2 = map(int, input().split())
if d1 == d2:
a.append(True)
else:
a.append(False)
a.append(False)
a.append(False)
for i in a:
if i == True:
if a[a.index(i)+1] and a[a.index(i)+2]:
print("Yes")
exit()
print("No"... |
s347888375 | p02546 | u410956928 | 1600543259 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9020 | 58 | S=input()
if S[-1]!=s:
S=S+"s"
else:
S=S+"es"
print(S) |
s639113757 | p02546 | u887442481 | 1600543256 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8996 | 87 | word = input()
if(word[-1] == 's'):
print(word+'es')
else:
print(word+'s') |
s672265523 | p02546 | u914883924 | 1600543202 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9076 | 69 | S=str(input())
if S[-1]==s:
print(S+"es")
else:
print(S+"s")
|
s469726919 | p02546 | u384708632 | 1600543176 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9180 | 307 | n = int(input())
d = [list(map(int, input().split())) for i in range(n)]
count = 0
jail = False
for i in range(n):
if d[i][0] == d[i][1]:
count += 1
if count == 3:
jail = True
break
else: count = 0
if jail == True:
print("Yes")
else : print("No")
|
s252416134 | p02546 | u686817216 | 1600543171 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9104 | 156 | s=input()
s_list=list(s)
x=len(s_list)
a_list=reversed(s_list)
if a_list[0]=="s":
s_list[x]="e"
s_list[x+1]="s"
else:
s_list[x+1]="s"
print(s_list) |
s172493394 | p02546 | u111365362 | 1600543133 | Python | PyPy3 (7.3.0) | py | Runtime Error | 100 | 74648 | 550 | n,k = map(int,input().split())
lr = []
for _ in range(k):
lr.append(list(map(int,input().split())))
#print(lr)
imos = [0 for _ in range(n)]
imos[0] = 1
imos[1] = -1
now = 0
mod = 998244353
for i in range(n):
now += imos[i]
now %= mod
#print(now)
for j in range(k):
try:
imos[i+lr[j]... |
s341477381 | p02546 | u410956928 | 1600543073 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8948 | 67 | S=input()
if S[-1]!=s:
S=S+"s"
elif S[-1]==s:
S=S+"es"
print(S) |
s423871541 | p02546 | u348797507 | 1600543048 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9012 | 242 | input_n = input()
n = str(input_n)
listN = list(n)
#listN = n.split(' ')
if listN[len(listN) - 1] = "s":
listN.append("e")
listN.append("s")
else:
listN.append("s")
for i in range(len(listN) - 1):
print(listN[i], end = "")
|
s097536988 | p02546 | u308914480 | 1600543011 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9088 | 86 | s=input()
if(s[-1:]=='s'):
print(s[-1].replace("s","es"))
else:
s1=s+"s"
print(s1) |
s233660644 | p02546 | u348797507 | 1600543001 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8944 | 234 | input_n = input()
n = str(input_n)
listN = list(n)
#listN = n.split(' ')
if listN[len(listN)] = "s":
listN.append("e")
listN.append("s")
else:
listN.append("s")
for i in range(len(listN)):
print(listN[i], end = "")
|
s544135726 | p02546 | u274755552 | 1600542997 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9004 | 71 | S = input()
if S[-1] = "s"
print( S + "es" )
else print( S + "s" ) |
s110104547 | p02546 | u308914480 | 1600542982 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9092 | 87 | s=input()
if(s[-1:]=='s'):
print(s[-1:].replace("s","es"))
else:
s1=s+"s"
print(s1) |
s182407560 | p02546 | u697761122 | 1600542949 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9008 | 85 | s = gets.chomp.split('')
if s[-1] == "s"
s << "es"
else
s << "s"
end
puts s.join |
s064896218 | p02546 | u071905150 | 1600542921 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9080 | 79 | s = input()
if s[s.length-1] == 's':
print(s+'es')
else:
print(s+'s')
|
s262771118 | p02546 | u499744714 | 1600542855 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8944 | 82 | s = input("input")
if input endswith(s)
word = input+es
else
word = input +s |
s595629258 | p02546 | u596847957 | 1600542820 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9196 | 238 | N=int(input()) #縦2列
XY=[map(int, input().split()) for _ in range(N)]
X,Y=[list(i) for i in zip(*XY)]
ans="No"
for j in range(0,N-2):
if X[j]==Y[j] and X[j+1]==Y[j+1] and X[j+2]==Y[j+2]:
ans="Yes"
break
print(ans) |
s766812230 | p02546 | u928758473 | 1600542741 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8880 | 455 | import os
import sys
from collections import defaultdict, Counter
from itertools import product, permutations,combinations, accumulate
from operator import itemgetter
from bisect import bisect_left,bisect
from heapq import heappop,heappush,heapify
from math import ceil, floor, sqrt
from copy import deepcopy
def mai... |
s669656623 | p02546 | u274755552 | 1600542645 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9000 | 68 | S = input()
if S[-1] = "s"
print( S + "es" )
else print( S + "s" ) |
s593615216 | p02546 | u784234016 | 1600542645 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9008 | 54 | if S[-1:]=='s':
print('S'+'es')
else:
print('S'+'s') |
s204362339 | p02546 | u928758473 | 1600542640 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9004 | 456 | import os
import sys
from collections import defaultdict, Counter
from itertools import product, permutations,combinations, accumulate
from operator import itemgetter
from bisect import bisect_left,bisect
from heapq import heappop,heappush,heapify
from math import ceil, floor, sqrt
from copy import deepcopy
def mai... |
s957524363 | p02546 | u447837274 | 1600542631 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9012 | 102 | chr = input("")
num = len(s)
if chr[num-1] == "s":
print(chr + "es")
else:
print(chr + "s")
|
s278211830 | p02546 | u110207693 | 1600542629 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9080 | 174 | if s[-1] == 's':
s += 'es'
else:
s += 's'
print(s) |
s372437505 | p02546 | u914883924 | 1600542601 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9004 | 67 | S=str(input())
if s[-1]=s:
print(S+"es")
else:
print(S+"s") |
s806020433 | p02546 | u402228762 | 1600542579 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9164 | 231 | a = int(input())
count = 0
for i in range(a):
a,b = map(int,input().split())
if (a==b):
count += 1
break
else :
count = 0
if (count >= 3):
print("Yes")
else :
print("No")
|
s907421566 | p02546 | u829356061 | 1600542567 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9004 | 75 | a = input()
if a[-1] == 's':
print(a end='es')
else:
print(a end='s') |
s405837618 | p02546 | u308914480 | 1600542566 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9024 | 83 | s=input()
if s[-1]="s":
print(s[-1].replace("s","es"))
else:
s1=s+"s"
print(s1) |
s761570783 | p02546 | u829356061 | 1600542514 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8928 | 74 | a = input()
if a[-1] = 's':
print(a end='es')
else:
print(a end='s') |
s398397362 | p02546 | u274755552 | 1600542494 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9004 | 85 | S = input()
if re.findall('[a-z]+$', S) = 's'
print( S + 'es')
else print( S + 's') |
s107111510 | p02546 | u224392054 | 1600542491 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9032 | 382 | import math
from fractions import Fraction as frac
MOD = 1e9 + 7
def gcd(a, b):
if b == 0:
return a
return gcd(b, a % b)
def lcm(a, b):
return a * b // gcd(a, b)
def solve(case_no):
s = str(input())
if s[len(s) - 1] == 's':
print(s + "es") else:
print(s + 's')
t = ... |
s935110237 | p02546 | u979501743 | 1600542485 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9092 | 64 | x=input()
print(x+'s' if x[len(x)-1]!=s else x[0:len(x)-1]+"es") |
s634410380 | p02546 | u794274928 | 1600542483 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9000 | 421 | #include <bits/stdc++.h>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (int)(n); i++ )
using namespace std;
int findSumOfDigits(int n) {
int sum = 0;
while (n > 0) { // n が 0 になるまで
sum += n % 10;
n /= 10;
}
return sum;
}
int main(){
string s;
cin >> s;
int n = s.size();
if(s.... |
s172289695 | p02546 | u308914480 | 1600542469 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9012 | 81 | s=input()
if s[-1]=s:
print(s[-1].replace("s","es"))
else:
s1=s+"s"
print(s1) |
s985039811 | p02546 | u829356061 | 1600542453 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8940 | 75 | a = input()
if a(-1:) = 's':
print(a end='es')
else:
print(a end='s') |
s023773188 | p02546 | u308914480 | 1600542435 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9000 | 86 | s=input()
if s[-1]=s:
print(s[-1].replace("s","es"))
else:
s1=s+"s"
print(s1)
|
s048453905 | p02546 | u149966539 | 1600542423 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9020 | 75 | S = input()
if(S[-1]=='s'):
del S[-1]
S=S+'es'
else:
S=S+'s'
print(S) |
s444686172 | p02546 | u829356061 | 1600542406 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8996 | 73 | a = input()
if a(:1) = 's':
print(a end='es')
else:
print(a end='s') |
s871107146 | p02546 | u060012100 | 1600542401 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9084 | 66 | s= input()
if s.endwith('s'):
print(s+'es')
else:
print(s+'s') |
s390017061 | p02546 | u813042907 | 1600542398 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8960 | 60 | x=input()
if x[-1]=='s'
x+="es"
else:
x+="s"
print(x) |
s888941598 | p02546 | u438070303 | 1600542356 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9000 | 121 | singular = input()
if singular[-1] == "s":
print(singular + "es")
else:
print(singular + "s") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.