s_id
string
p_id
string
u_id
string
date
string
language
string
original_language
string
filename_ext
string
status
string
cpu_time
string
memory
string
code_size
string
code
string
error
string
stdout
string
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])
Traceback (most recent call last): File "/tmp/tmpj_zsl0zw/tmpryw9l2s6.py", line 1, in <module> n,k = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp5p5k0kh4/tmphnc9zw7j.py", line 1, in <module> a = input().split() ^^^^^^^ EOFError: EOF when reading a line
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 ...
Traceback (most recent call last): File "/tmp/tmpimzhkbxz/tmpo6mr6l3l.py", line 22, in <module> main() File "/tmp/tmpimzhkbxz/tmpo6mr6l3l.py", line 2, in main N, X, M = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmp4e4fumr_/tmpgjs598gu.py", line 2 if ('S'[-1]) = s: ^^^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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)
Traceback (most recent call last): File "/tmp/tmpq0cdzak8/tmp6y6ncwrh.py", line 1, in <module> a = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s087855263
p02546
u809416266
1600544878
Python
Python (3.8.2)
py
Runtime Error
30
9008
48
if ('S'[-1]) = s: print(Ss) else: print(Ses)
File "/tmp/tmphfmhvzd6/tmpy0nazg96.py", line 1 if ('S'[-1]) = s: ^^^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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]) ) ...
File "/tmp/tmpifld8kyp/tmpsdgb98dw.py", line 8 print sum(v);ok=0;break ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
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)
Traceback (most recent call last): File "/tmp/tmp7misnb8h/tmpp8nr6fws.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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")
Traceback (most recent call last): File "/tmp/tmpfhpj39ut/tmp5sbajwjv.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmpbs59_wuy/tmpsnlpzvjn.py", line 1 if ('S'[-1]) = s: ^^^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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....
Traceback (most recent call last): File "/tmp/tmpkc579z_m/tmpuvk52ms1.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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")
Traceback (most recent call last): File "/tmp/tmpx21giybc/tmp1bimrfz_.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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")
Traceback (most recent call last): File "/tmp/tmp1b0vzik4/tmpleynybka.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmph7hdwbxp/tmpgbd64oji.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmpspaghtyg/tmp30kxy2bl.py", line 4 print(s1) TabError: inconsistent use of tabs and spaces in indentation
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)
Traceback (most recent call last): File "/tmp/tmpp5mhk9n9/tmpm5jxpiam.py", line 2, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp7q530xz9/tmpyzw4zbvg.py", line 1, in <module> nk=input().split() ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmp8uyvtxlv/tmp8qi6a24r.py", line 4 print(s1) ^ IndentationError: unindent does not match any outer indentation level
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'
File "/tmp/tmp7sgj78aw/tmpm_k5sz9a.py", line 4 return st + 'es' ^^^^^^^^^^^^^^^^ SyntaxError: 'return' outside function
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.')
Traceback (most recent call last): File "/tmp/tmp29xp958d/tmpjtq9dzxw.py", line 1, in <module> n[1000]=input() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmppshik08f/tmps1vghq0y.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
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])
Traceback (most recent call last): File "/tmp/tmp26qgpok0/tmpnbq_bje0.py", line 1, in <module> nk=input().split() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpu3nbzyrg/tmpzg35zjhd.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpc2kxpbrc/tmpsf2e9ssg.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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")
Traceback (most recent call last): File "/tmp/tmpcn74led6/tmp6izl9v7y.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp0dmoiuys/tmpmqtcp9ky.py", line 3, in <module> N = int(input()) ^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
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")
Traceback (most recent call last): File "/tmp/tmp1q5k3y2h/tmpdax9cb0k.py", line 1, in <module> S = str(input("")) ^^^^^^^^^ EOFError: EOF when reading a line
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')
Traceback (most recent call last): File "/tmp/tmp27h7jb_f/tmpuznhk3kr.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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")
File "/tmp/tmpzakyk5qy/tmpjos1jw3d.py", line 3 print("Takneses") ^ IndentationError: expected an indented block after 'if' statement on line 2
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')
Traceback (most recent call last): File "/tmp/tmp5du8gzfv/tmpe0__ug_g.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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')
Traceback (most recent call last): File "/tmp/tmpfbt3k4_1/tmpmaj9klsu.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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 ...
Traceback (most recent call last): File "/tmp/tmpdv79ioo5/tmpmqf139i5.py", line 10, in <module> N= int(input()) ^^^^^^^ EOFError: EOF when reading a line
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
File "/tmp/tmptcvbgrbf/tmpof4hazoc.py", line 6 print singles ^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
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))
Traceback (most recent call last): File "/tmp/tmp76l6nasx/tmp7j4r6fip.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
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
File "/tmp/tmpv9vhitac/tmpoy_amrk8.py", line 4 return s ^^^^^^^^ SyntaxError: 'return' outside function
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"
File "/tmp/tmpqqqn_4lv/tmpmcacvbdl.py", line 6 print(a+"s" ^ SyntaxError: '(' was never closed
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
File "/tmp/tmpzob321s9/tmpwialn7dg.py", line 4 return s ^^^^^^^^ SyntaxError: 'return' outside function
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)
Traceback (most recent call last): File "/tmp/tmp8rpgka9g/tmpwfqkbfik.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp4a1yqgo9/tmpr7slp7ai.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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" )
File "/tmp/tmpifljpdac/tmpntmgnu0y.py", line 4 else print( S, "s" ) ^^^^^ SyntaxError: expected ':'
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')
File "/tmp/tmph78li9a0/tmp_95y_jii.py", line 3 return input.append('es') ^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: 'return' outside function
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")
Traceback (most recent call last): File "/tmp/tmpynnzeie2/tmpx0fvy85u.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
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" )
File "/tmp/tmp2cze_39_/tmp8nzyie0c.py", line 4 else print( S + "s" ) ^^^^^ SyntaxError: expected ':'
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)
Traceback (most recent call last): File "/tmp/tmpa_0f37pk/tmpae1tsuqd.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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")
Traceback (most recent call last): File "/tmp/tmpif7cc968/tmpmii99_kv.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
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")
Traceback (most recent call last): File "/tmp/tmp8l9uhzhq/tmpud_7i0lb.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmpkffncnkm/tmps4bksk0o.py", line 9, in <module> n,x,m=input().split() ^^^^^^^ EOFError: EOF when reading a line
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')
Traceback (most recent call last): File "/tmp/tmpzkswoac0/tmplw_ih830.py", line 1, in <module> word = input() ^^^^^^^ EOFError: EOF when reading a line
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" )
File "/tmp/tmpli50n4fu/tmpdk9ho5ix.py", line 2 if S[-1] = "s" ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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')
Traceback (most recent call last): File "/tmp/tmpq2tl9vqc/tmpl9ck6g23.py", line 1, in <module> word = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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")
Traceback (most recent call last): File "/tmp/tmpkxd50h34/tmp8wcmrrzz.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
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')
Traceback (most recent call last): File "/tmp/tmp1yvtq346/tmppa7pubx1.py", line 1, in <module> N= int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpgf1asclo/tmp3ebiv6id.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
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: ...
Traceback (most recent call last): File "/tmp/tmpp8ypg5f4/tmpudp24vte.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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')
File "/tmp/tmpib046ycn/tmp288ajjqz.py", line 2 if(word[-s] == 's'): IndentationError: unexpected indent
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")
Traceback (most recent call last): File "/tmp/tmph2h3qdfw/tmp0dd2sw0x.py", line 1, in <module> S=str(input()) ^^^^^^^ EOFError: EOF when reading a line
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" )
File "/tmp/tmp8wpk80ef/tmpnp1djsg3.py", line 2 if S[-1] = "s" ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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')
File "/tmp/tmpq6xwefap/tmpm5pp9qhn.py", line 2 if(word[-s] == 's'): IndentationError: unexpected indent
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)
File "/tmp/tmpar9c3za7/tmplnakqdex.py", line 3 if l[-1]='s': ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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" )
File "/tmp/tmpzt8zbi74/tmpja4e1tae.py", line 2 if S[-1] = "s" ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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"...
Traceback (most recent call last): File "/tmp/tmpqp3o_mof/tmplo2pztzk.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmplafy5zhp/tmp6xy4c7ze.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
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')
File "/tmp/tmpvbji_6zi/tmprny6v60_.py", line 2 if(word[-1] == 's'): IndentationError: unexpected indent
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")
Traceback (most recent call last): File "/tmp/tmpplb2g435/tmpgn5_d930.py", line 1, in <module> S=str(input()) ^^^^^^^ EOFError: EOF when reading a line
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")
Traceback (most recent call last): File "/tmp/tmpru7vigoh/tmpp409zlkl.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpoyhmlz_y/tmpy_nl0v7f.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
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]...
Traceback (most recent call last): File "/tmp/tmp3cy55rwa/tmpcujeups8.py", line 1, in <module> n,k = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpao_jgv9q/tmp_pds9j_j.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
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 = "")
File "/tmp/tmp4oly_ffq/tmp7cajr7v8.py", line 7 if listN[len(listN) - 1] = "s": ^^^^^^^^^^^^^^^^^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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)
Traceback (most recent call last): File "/tmp/tmp6664a3x9/tmpxqjh3gko.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
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 = "")
File "/tmp/tmpbkye4stv/tmpy57z64o_.py", line 7 if listN[len(listN)] = "s": ^^^^^^^^^^^^^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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" )
File "/tmp/tmpcuga4pcb/tmpwwcy3r73.py", line 2 if S[-1] = "s" IndentationError: unexpected indent
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)
Traceback (most recent call last): File "/tmp/tmpmfh49y2j/tmp8ycfs8sx.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
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
File "/tmp/tmpb8q94iul/tmp0ulrs87f.py", line 2 if s[-1] == "s" ^ SyntaxError: expected ':'
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')
Traceback (most recent call last): File "/tmp/tmp_ou6kg3o/tmp6ccbbuez.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
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
File "/tmp/tmpl6s6dprt/tmpu03hd9sa.py", line 2 if input endswith(s) ^^^^^^^^ SyntaxError: invalid syntax
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)
Traceback (most recent call last): File "/tmp/tmpvbil7oww/tmpdcziagjf.py", line 1, in <module> N=int(input()) #縦2列 ^^^^^^^ EOFError: EOF when reading a line
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...
File "/tmp/tmpqzaqfybx/tmpx7h4cykh.py", line 17 else: ^ IndentationError: unindent does not match any outer indentation level
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" )
File "/tmp/tmp4qbfbqj8/tmp7yd0l9_0.py", line 2 if S[-1] = "s" ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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')
Traceback (most recent call last): File "/tmp/tmpmkg_ej1r/tmpdw04uifp.py", line 1, in <module> if S[-1:]=='s': ^ NameError: name 'S' is not defined
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...
File "/tmp/tmpm5bwl26a/tmpazc8cgrw.py", line 15 if s[-1] == "s": TabError: inconsistent use of tabs and spaces in indentation
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")
Traceback (most recent call last): File "/tmp/tmpzvr0hxka/tmpnprjtx5y.py", line 1, in <module> chr = input("") ^^^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp5fjxdl_s/tmpx1oa5l9d.py", line 1, in <module> if s[-1] == 's': ^ NameError: name 's' is not defined
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")
File "/tmp/tmpri3i63sy/tmplbrh4el7.py", line 2 if s[-1]=s: ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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")
Traceback (most recent call last): File "/tmp/tmp0j14pm95/tmp6_em5rm4.py", line 1, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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')
File "/tmp/tmp18wipkan/tmp6aynawsh.py", line 4 print(a end='es') ^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
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)
File "/tmp/tmpzdpg4521/tmp_tnj6lan.py", line 2 if s[-1]="s": ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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')
File "/tmp/tmpujfnyr13/tmpyleyvi57.py", line 3 if a[-1] = 's': ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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')
File "/tmp/tmpsunnizqu/tmp59g4x220.py", line 2 if re.findall('[a-z]+$', S) = 's' ^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: cannot assign to function call here. Maybe you meant '==' instead of '='?
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 = ...
File "/tmp/tmpo88c1v0p/tmp0d6_d23d.py", line 25 print(s + "es") else: ^^^^ SyntaxError: invalid syntax
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")
Traceback (most recent call last): File "/tmp/tmpy63_b4iw/tmphn1c6c06.py", line 1, in <module> x=input() ^^^^^^^ EOFError: EOF when reading a line
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....
File "/tmp/tmpxn_zhuoi/tmp4tgesbbf.py", line 2 const double PI = acos(-1); ^^^^^^ SyntaxError: invalid syntax
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)
File "/tmp/tmpvlhzgq0i/tmper9nqqge.py", line 2 if s[-1]=s: ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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')
File "/tmp/tmpvoc3bmzv/tmp1qroj6bz.py", line 3 if a(-1:) = 's': ^ SyntaxError: invalid syntax
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)
File "/tmp/tmpfaiedx2g/tmpc1g9m4zu.py", line 2 if s[-1]=s: ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
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)
Traceback (most recent call last): File "/tmp/tmp349hkpfm/tmprbns5emw.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
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')
File "/tmp/tmpx9mqdc_j/tmpyqeo3rse.py", line 3 if a(:1) = 's': ^ SyntaxError: invalid syntax
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')
Traceback (most recent call last): File "/tmp/tmpqiwn1kzs/tmpm0e6ndas.py", line 1, in <module> s= input() ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmphgzgpfa6/tmpp8ru3z8_.py", line 2 if x[-1]=='s' ^ SyntaxError: expected ':'
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")
File "/tmp/tmphyb5wguu/tmp_jb3tddj.py", line 1 singular = input() IndentationError: unexpected indent