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
s861982488
p02547
u302789073
1600543191
Python
Python (3.8.2)
py
Runtime Error
30
9168
243
n=int(input()) count=0 c_list=[] for i in range(n): d1, d2=map(int, input().split()) if d1==d2: count+=1 c_list.append(count) else: count=0 if max(c_list)>=3: print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmply34407n/tmp74tgyvxg.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s466627417
p02547
u965937045
1600543176
Python
Python (3.8.2)
py
Runtime Error
29
9188
259
N=int(input()) sum=0 for _ in range(N): a,b=map(int,input().split()) if(a==b): sum+=1 if(sum==3): name=[] name.append("Yes") else: sum=0 if name[0]=="Yes": print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmpz7ffevrh/tmpnfbhycxb.py", line 1, in <module> N=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s929466088
p02547
u847075829
1600543111
Python
Python (3.8.2)
py
Runtime Error
28
9100
207
n = int(input) count = 0 ans = 'No' for i in range(n): a , b = map(int,input().split(' ')) if a!=b: count = 0 else: count += 1 if count == 3: ans = 'Yes' print(ans)
Traceback (most recent call last): File "/tmp/tmpv3lamlfm/tmphf8s0u2c.py", line 1, in <module> n = int(input) ^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
s537442087
p02547
u813042907
1600543100
Python
Python (3.8.2)
py
Runtime Error
27
9016
211
n=int(input()) count=0 ren=0 for i in range(n): a,b=map(int,input().split()) if a==b: if count<3: count+=1 ren=1 else if count<3: count=0 if count>=3: print("Yes") else: print("No")
File "/tmp/tmppj3pv565/tmpanxw3it5.py", line 10 else if count<3: ^^ SyntaxError: expected ':'
s468772613
p02547
u087590461
1600543100
Python
Python (3.8.2)
py
Runtime Error
21
9012
180
N= int(input()) count=0 for i in range(N): p,q=list(map(int,input().split(' '))) if p==q: count+=1 else: count=0 if count>=3: print('Yes') else: print('No')
File "/tmp/tmp5a5_4r_7/tmpk30c5imo.py", line 5 if p==q: ^ IndentationError: unindent does not match any outer indentation level
s798180989
p02547
u438070303
1600543088
Python
Python (3.8.2)
py
Runtime Error
26
8932
361
doubletCount = 0 cases = int(input()) for roll in range(cases): d1, d2 = map(int, input().split()) if d1 == d2: doubletCount += 1 else: doubletCount = 0 if doubletCount >= 3: print("Yes") break if r...
File "/tmp/tmprsww1nxl/tmpe0vu3hmm.py", line 1 doubletCount = 0 IndentationError: unexpected indent
s373866091
p02547
u936988827
1600543075
Python
Python (3.8.2)
py
Runtime Error
28
9200
263
n = int(input()) z = [] y = 0 for i in range(n): line = input().split(" ") if int(line[0])==int(line[1]): z.append(int(line[0])) for i in range(n-3): if z[i]==z[i+1]-1: if z[i+1]==z[i+2]-1: y += 1 if y > 0: print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmp5et43flr/tmpahgyqr_9.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s879214783
p02547
u790867486
1600543075
Python
Python (3.8.2)
py
Runtime Error
27
8932
257
n =int(input()) l1 = [] for i in range(n): l2=[] k = int(input()) l = int(input()) l2.append(k) l2.append(l) l1.append(l2) for i in range(n): if l1[i][0]==l1[i][1]: res+=1 if res>=3: print("Yes") else: print("No")
File "/tmp/tmpttx30d6i/tmpigwvf4di.py", line 5 k = int(input()) IndentationError: unexpected indent
s914511718
p02547
u235792800
1600543073
Python
PyPy3 (7.3.0)
py
Runtime Error
103
68664
337
from sys import stdin def ip(): return [int(i) for i in stdin.readline().split()] def sp(): return [str(i) for i in stdin.readline().split()] n = int(input()) row = False cnt = 0 for _ in range(n): x,y = ip() if x == y: cnt += 1 else: cnt += 1 if cnt == 3: row = True if row: print("Yes") ...
File "/tmp/tmp6qg7f4u9/tmpbhdx_zsm.py", line 15 row = True ^ IndentationError: expected an indented block after 'if' statement on line 14
s349488142
p02547
u847075829
1600543054
Python
Python (3.8.2)
py
Runtime Error
27
8960
205
n = int(input) count = 0 ans = 'No' for i in range(n): a , b = map(int,input().split(' ')) if a!=b: count = 0 else: count += 1 if count == 3: ans = 'Yes' print(ans)
Traceback (most recent call last): File "/tmp/tmp6uyb71fw/tmpwwtou97n.py", line 1, in <module> n = int(input) ^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
s888406669
p02547
u817247382
1600543038
Python
Python (3.8.2)
py
Runtime Error
25
9192
206
n = int(input()) num_of_double = 0 for i in range(n): d1 = int(input()) d2 = int(input()) if d1 == d2: num_of_double += 1 if num_of_double >= 3: print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmpd_b48jkv/tmp2axahl6k.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s816939799
p02547
u087590461
1600543031
Python
Python (3.8.2)
py
Runtime Error
30
9016
173
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')
File "/tmp/tmporn69tw3/tmptm1nzuzb.py", line 5 if p==q: ^ IndentationError: unindent does not match any outer indentation level
s280242050
p02547
u461480622
1600543004
Python
PyPy3 (7.3.0)
py
Runtime Error
97
74556
201
n=int(input()) a = 0 for i in range(n): li = input().split() a+=1 elif(a<3): a=0 else: print("Yes") exit() if(a>2): print("Yes") exit() print("No")
File "/tmp/tmp48pujfte/tmp9_9cnibw.py", line 6 a+=1 IndentationError: unexpected indent
s470572297
p02547
u657818166
1600542989
Python
Python (3.8.2)
py
Runtime Error
27
9172
238
n = int(input()) t = [] i = 0 for _ in range(n): x, y = map(int, input().split()) if x == y: i += 1 else: i = 0 t.append(i) if(len(filter(lambda x: x >= 3, t)) == 0): print("No") else: print("Yes")
Traceback (most recent call last): File "/tmp/tmpt_tu1iny/tmpr8s7ohtl.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s381430888
p02547
u239228953
1600542986
Python
Python (3.8.2)
py
Runtime Error
26
9036
266
n = int(input()) l=[] for i in range(n): a,b = list(map(int,list(input().split()))) l.append([a,b]) def fn(n,l): for i in range(n-2): if l[i][0]==l[i][1] and l[i+1][0]==l[i+1][1] andl[i+2][0]==l[i+2][1]: return 'Yes' return 'No' print(fn(n,l))
File "/tmp/tmplvkeyp77/tmp4bj866op.py", line 8 if l[i][0]==l[i][1] and l[i+1][0]==l[i+1][1] andl[i+2][0]==l[i+2][1]: ^^^^ SyntaxError: invalid syntax
s290773496
p02547
u207582576
1600542980
Python
Python (3.8.2)
py
Runtime Error
31
9200
271
N = int(input()) xy = [map(int, input().split()) for _ in range(5)] x, y = [list(i) for i in zip(*xy)] flag = 0 for i in range(N-3): if x[i] == y[i]: if x[i+1] == y[i+1]: if x[i+2] == y[i+2]: flag = 1 if flag == 1: print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmph192zss5/tmp6_p8_kdy.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s885753119
p02547
u889405092
1600542980
Python
Python (3.8.2)
py
Runtime Error
27
9072
275
N=int(input()) x = [list(map(int, input().split())) for i in range(N)] count=0 for i in range(N-2): if x[i][0]==x[i][1] and x[i+1][0]==x[i+1][1] and x[i+2][0]==x[i+2][1]: count=count+1 else: count=count else: if count>0 : print'Yes' else : print'No'
File "/tmp/tmp56nii2tl/tmpp4mhmks4.py", line 11 print'Yes' ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s092480990
p02547
u936988827
1600542970
Python
Python (3.8.2)
py
Runtime Error
32
9148
252
n = int(input()) z = [] y = 0 for i in range(n): line = input().split(" ") if int(line[0])==int(line[1]): z.append(i) for i in range(n-3): if z[i]==z[i+1]-1: if z[i+1]==z[i+2]-1: y += 1 if y > 0: print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmpkulbsxo4/tmpzgn5nd6k.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s109840446
p02547
u050103839
1600542959
Python
Python (3.8.2)
py
Runtime Error
31
9016
224
i = input() idx = 0 while idx < i: cnt = 0 for _ in range(3): d1, d2 = list(map(int, input.split(' '))) if d1 == d2: cnt += 1 if cnt == 3: print('Yes') else: idx += 1 print('No')
File "/tmp/tmpz_615n70/tmpne7lfsju.py", line 6 for _ in range(3): TabError: inconsistent use of tabs and spaces in indentation
s573536776
p02547
u958482966
1600542939
Python
Python (3.8.2)
py
Runtime Error
24
9192
309
n = int(input()) a = [] for i in n: x,y = map(int,input().split()) a.append([x,y]) count = 0 flag = True for x in a: if x[0] == x[1]: count += 1 if count == 3: print('Yes') flag = False break else: count = 0 if flag: print('No')
Traceback (most recent call last): File "/tmp/tmp6b210a1e/tmp4q690ui9.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s152497573
p02547
u847075829
1600542920
Python
Python (3.8.2)
py
Runtime Error
28
9012
202
n = int(input) count = 0 ans = 'No' for _ in range(n): a , b = map(int,input().split(' ')) if a!=b: count = 0 else: count += 1 if count == 3: ans = 'Yes' print(ans)
File "/tmp/tmppsjelk03/tmpn8ofk3gw.py", line 6 if a!=b: ^ IndentationError: unindent does not match any outer indentation level
s682250507
p02547
u207582576
1600542920
Python
Python (3.8.2)
py
Runtime Error
26
9192
270
N = int(input()) xy = [map(int, input().split()) for _ in range(5)] x, y = [list(i) for i in zip(*xy)] flag = 0 for i in range(N-2): if x[i] == y[i]: if x[i+1] == y[i+1]: if x[i+2] == y[i+2]: flag = 1 if flag == 1: print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmpnmkihqut/tmp7p3xdpyo.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s423648781
p02547
u936988827
1600542916
Python
Python (3.8.2)
py
Runtime Error
29
9180
252
n = int(input()) z = [] y = 0 for i in range(n): line = input().split(" ") if int(line[0])==int(line[1]): z.append(i) for i in range(n-3): if z[i]==z[i+1]-1: if z[i+1]==z[i+2]-1: y += 1 if y > 0: print("yes") else: print("no")
Traceback (most recent call last): File "/tmp/tmp06ynqoht/tmp85jf0e8a.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s678131774
p02547
u050103839
1600542900
Python
Python (3.8.2)
py
Runtime Error
27
9004
224
i = input() idx = 0 while idx < i: cnt = 0 for _ in range(3): d1, d2 = list(map(int, input.split(' '))) if d1 == d2: cnt += 1 if cnt == 3: return 'Yes' else: idx += 3 print('No')
File "/tmp/tmps37gu3uy/tmp0uh087a_.py", line 6 for _ in range(3): TabError: inconsistent use of tabs and spaces in indentation
s772585196
p02547
u414050834
1600542900
Python
Python (3.8.2)
py
Runtime Error
32
9224
252
n=int(input()) l=[] j=0 for i in range(n): a=list(map(int,input().split())) l.append(a) for k in range(n-2): if l[k+2][0]==l[k+2][1] and l[k+3][0]==l[k+1][1] and l[k+4][0]==l[k+4][1]: j+=1 break if j==1: print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmp5i5vnjfp/tmpvu0h6abr.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s793073670
p02547
u958482966
1600542897
Python
Python (3.8.2)
py
Runtime Error
25
9212
301
n = int(input()) a = [] for i in n: x,y = map(int,input()) a.append([x,y]) count = 0 flag = True for x in a: if x[0] == x[1]: count += 1 if count == 3: print('Yes') flag = False break else: count = 0 if flag: print('No')
Traceback (most recent call last): File "/tmp/tmp8s9_b_ba/tmpyslxmw25.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s350680684
p02547
u224392054
1600542842
Python
Python (3.8.2)
py
Runtime Error
24
8984
501
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): n = int(input()) cnt=0 for i in range(n): a,b = map(int,input().split()) if a==b: ...
File "/tmp/tmp8kd_uq7i/tmp7ky_e0oi.py", line 27 a,b = map(int,input().split()) if a==b: ^ SyntaxError: invalid syntax
s563895843
p02547
u936988827
1600542831
Python
Python (3.8.2)
py
Runtime Error
31
9184
248
n = int(input()) z = [] y = o for i in range(n): line = input().split(" ") if int(line[0])==int(line[1]): z.append(i) for i in range(n-3): if z[i]==z[i+1]: if z[i+1]==z[i+2]: y += 1 if y > 0: print("yes") else: print("no")
Traceback (most recent call last): File "/tmp/tmpy2nz3vky/tmp1cwnjaun.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s611207506
p02547
u070257479
1600542828
Python
Python (3.8.2)
py
Runtime Error
28
8948
142
n=int(input()) c=0 for i in range(n): a,b=[(int x) for x in input().split()] if a==b: c+=1 if c>=3: print('Yes') else: print('No')
File "/tmp/tmpa80v5sa4/tmpv4px7fos.py", line 4 a,b=[(int x) for x in input().split()] ^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s749715068
p02547
u865119809
1600542737
Python
Python (3.8.2)
py
Runtime Error
28
9192
359
n = int(input()) a = [] for i in range(n): d,e = map(int,input().split()) a.append([d,e]) b = [] for i in range(n): if a[i][0] == a[i][1]: b.append(1) else: b.append(0) c = 0 for i in range(n): if b[i] == 1 and b[i+1] == 1 and b[i+2] == 1: c = 1 break if c == 1: ...
Traceback (most recent call last): File "/tmp/tmpp3zqrf00/tmpmc85cwgb.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s649740467
p02547
u790867486
1600542727
Python
Python (3.8.2)
py
Runtime Error
24
9168
155
n = int(input()) res =0 for i in range(n): p = int(input()) k = int(input()) if p==k: res+=1 if res>=3: print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmp6kieaxp5/tmplwf7pjsp.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s286164768
p02547
u304612256
1600542710
Python
Python (3.8.2)
py
Runtime Error
24
9112
274
input = stdin.readline N = int(input()) b = False cnt = 0 for i in range(N): D1, D2 = map(int, input().split()) if D1 == D2: cnt += 1 if cnt == 3: b = True else: cnt = 0 if b == False: print('No') else: print('Yes')
Traceback (most recent call last): File "/tmp/tmpq7n8yiiw/tmp20dro5k0.py", line 1, in <module> input = stdin.readline ^^^^^ NameError: name 'stdin' is not defined
s730970932
p02547
u882950355
1600542707
Python
PyPy3 (7.3.0)
py
Runtime Error
156
68680
281
n = int(input()) d = [map(int, input().split()) for _ in range(5)] d1, d2 = [list(i) for i in zip(*d)] count = 0 flag = 0 for i in range(n): if d1[i]==d2[i]: count += 1 else: count = 0 if count == 3: flag = 1 print('Yes') break if flag==0: print('No')
Traceback (most recent call last): File "/tmp/tmpazhw_2mf/tmptn7qospl.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s004635820
p02547
u847075829
1600542693
Python
Python (3.8.2)
py
Runtime Error
25
8952
193
n = int(input) count = 0 ans = 'No' for _ in range(n): a,b = map(int,input().split(' ')) if a!=b: count = 0 else: count+=1 if count ==3: ans = 'Yes' print(ans)
File "/tmp/tmps5gmcvqz/tmpk2agop45.py", line 6 if a!=b: ^ IndentationError: unindent does not match any outer indentation level
s306110661
p02547
u953855545
1600542691
Python
Python (3.8.2)
py
Runtime Error
31
9164
210
n = int(input()) count = 0 result = "No" for i in range(n): d1, d2 = " ".split(input()) if d1 == d2: count = count + 1 if count >= 3: result = "Yes" else: count = 0 print(result)
Traceback (most recent call last): File "/tmp/tmp84xjzy5o/tmpkaye2949.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s748079814
p02547
u845847173
1600542688
Python
Python (3.8.2)
py
Runtime Error
25
9176
326
n = int(input()) xy = [map(int, input().split()) for _ in range(n)] x, y = [list(i) for i in zip(*xy)] for i in range(n - 1): if x[i] == y[i]: ans += 1 if ans == 3: print("Yes") break else: ans = 0 if ans == 0 or ans == 1 or ans == 2: print("N...
Traceback (most recent call last): File "/tmp/tmpouvs5dhn/tmp2sb3bne7.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s584333239
p02547
u793981991
1600542683
Python
Python (3.8.2)
py
Runtime Error
27
9184
278
rolls = int(input()) dices = [] for _ in range(rolls): dices.append(list(map(int, input().split()))) doubles = [d1 == d2 for d1,d2 in dices] for i in range(1,rolls): doubles[i] *= (doubles[i] + doubles[i-1]) if double[i] == 3: print('Yes') exit() print('No')
Traceback (most recent call last): File "/tmp/tmp4gqphq8z/tmppd4c4ces.py", line 1, in <module> rolls = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s775836976
p02547
u968431218
1600542675
Python
Python (3.8.2)
py
Runtime Error
26
9156
169
#python for _ in range(int(input())): n1,n2=map(int,input().split()) if n1==n2: c+=1 m=max(m,c) else: m=max(m,c) c=0 if m>=3: print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmpx3quppxj/tmputfqhtlj.py", line 2, in <module> for _ in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s418009639
p02547
u060505280
1600542673
Python
Python (3.8.2)
py
Runtime Error
25
8888
251
N = int(input()) cnt = 0 ans = False for i in range(N): a, b = input().split() print(a, b) if a == b: cnt += 1 else: cnt = 0 if cnt == 3: ans True break print(cnt) print('Yes' if ans else 'No')
File "/tmp/tmpnycwndxk/tmptwzcgl6l.py", line 12 ans True ^^^^ SyntaxError: invalid syntax
s495170981
p02547
u953855545
1600542649
Python
Python (3.8.2)
py
Runtime Error
25
9040
212
n = input() count = 0 result = "No" for i in range(n): d1, d2 = " ".split(input()) if d1 == d2: count = count + 1 if count >= 3: result = "Yes" else: count = 0 print(result)
Traceback (most recent call last): File "/tmp/tmpxywvqkhz/tmp5nfdvj54.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s735585649
p02547
u092061507
1600542645
Python
Python (3.8.2)
py
Runtime Error
31
9196
266
N = int(input()) D = [map(int, input().split()) for i in range(N)] seq = 0 for i in range(len(D)): if D[i][0] == D[i][1]: if D[i+1][0] == D[i+1][1]: if D[i+2][0] == D[i+2][1]: print('Yes') exit() print('No')
Traceback (most recent call last): File "/tmp/tmpw6mwhkl2/tmpwy48mdeg.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s214552704
p02547
u742260762
1600542639
Python
Python (3.8.2)
py
Runtime Error
23
9104
170
N == int(input()) count = 0 for i in range(N-1): s = list(map(int, input().split())) if s[0] == s[1]: count += 1 if count >= 3: print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmpnr9zars1/tmpp1htqn9y.py", line 1, in <module> N == int(input()) ^ NameError: name 'N' is not defined
s888229858
p02547
u968431218
1600542634
Python
Python (3.8.2)
py
Runtime Error
30
9196
161
for _ in range(int(input())): n1,n2=map(int,input().split()) if n1==n2: c+=1 m=max(m,c) else: m=max(m,c) c=0 if m>=3: print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmprhmugfxj/tmp3myno3fb.py", line 1, in <module> for _ in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s443399241
p02547
u987846648
1600542623
Python
PyPy3 (7.3.0)
py
Runtime Error
84
68688
275
n = int(input()) cnt =0 def dice(): for i in range(n): d = list(map(int, input().split())) if d[0] == d[1]: cnt += 1 if cnt == 3: return "Yes" else: cnt = 0 ans = dice() print(ans)
Traceback (most recent call last): File "/tmp/tmpjhtfqbgi/tmpp0b1brk2.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s441138587
p02547
u847075829
1600542622
Python
Python (3.8.2)
py
Runtime Error
31
9016
196
n = int(input) count = 0 ans = 'No' for _ in range(n): a,b = map(int,input().split(' ') if a!=b: count = 0 else: count+=1 if count ==3: ans = 'Yes' print(ans)
File "/tmp/tmpipefvs2m/tmphlviv0jv.py", line 5 a,b = map(int,input().split(' ') ^ SyntaxError: '(' was never closed
s000345555
p02547
u054471580
1600542620
Python
Python (3.8.2)
py
Runtime Error
25
8952
189
n=input() c=0 flag=0 for i in range(n): a,b = map(int(),input().split()) if(a==b): c+=1 else: c=0 if(c==3): print("Yes") flag=1 break if(flag==0): print("No")
Traceback (most recent call last): File "/tmp/tmpg9zwfx9x/tmp6y33govw.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s223687760
p02547
u739843002
1600542601
Python
Python (3.8.2)
py
Runtime Error
33
9224
493
def main(): N = int(input()) z = [] for i in range(N): d1, d2 = [int(d) for d in input().split(" ")] if d1 == d2: z.append(1) else: z.append(0) zc = [] now = 2 c = 0 for i in range(len(z)): if i == 0: now = z[i] c += 1 elif now == z[i]: c += 1 elif now == 1 and z[i] == 0: zc.append(...
Traceback (most recent call last): File "/tmp/tmp5_1hwj8i/tmp9eedwk3p.py", line 32, in <module> main() File "/tmp/tmp5_1hwj8i/tmp9eedwk3p.py", line 2, in main N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s087516435
p02547
u955248595
1600542600
Python
Python (3.8.2)
py
Runtime Error
26
9200
380
N = int(input()) Flag = False MAXC = 0 Cont = 0 for TN in range(0,N): D1,D2 = (int(T) for T in input().split()) if Flag==False and D1==D2: Flag = True Cout = 1 elif Flag==True and D1==D2: Cout += 1 elif Flag==True and D1!=D2: Flag = False MAXC = max(MAXC,Cout) MAX...
Traceback (most recent call last): File "/tmp/tmpdvx9j0w5/tmpz0cr_dk1.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s310223412
p02547
u473234868
1600542591
Python
Python (3.8.2)
py
Runtime Error
29
9168
210
n = int(input()) total = 0 for i in range(n): a,b = map(int,split().input()) if a == b: total += 1 if total == 3: break else: total = 0 if total == 3: print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmp2nc0y3kx/tmpvwgooccv.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s875149161
p02547
u813590793
1600542587
Python
PyPy3 (7.3.0)
py
Runtime Error
132
68772
200
n=int(input()) count=0 counts=[] for i in range(n): i,j=list(map(int,input().split())) if i==j: count+=1 else: counts.append(count) count=0 if max(counts)>=3: print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmplwb198pf/tmpqhvc8o1h.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s217908966
p02547
u054471580
1600542569
Python
Python (3.8.2)
py
Runtime Error
21
9112
187
n=input() c=0 flag=0 for i in range(n): a,b = map(int,input().split()) if(a==b): c+=1 else: c=0 if(c==3): print("Yes") flag=1 break if(flag==0): print("No")
Traceback (most recent call last): File "/tmp/tmp_0sojb03/tmp3kk2obxc.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s962381708
p02547
u440608859
1600542560
Python
Python (3.8.2)
py
Runtime Error
31
9164
210
n=int(input()) c=1 for i in range(n): a,b=map(int,input().split()) if a==b: count+=1 else: count=0 if count==3: c=1 if c==1: print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmphj9g2r1f/tmpcdy62gbd.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s452135815
p02547
u955248595
1600542553
Python
Python (3.8.2)
py
Runtime Error
34
9200
371
N = int(input()) Flag = False MAXC = 0 for TN in range(0,N): D1,D2 = (int(T) for T in input().split()) if Flag==False and D1==D2: Flag = True Cout = 1 elif Flag==True and D1==D2: Cout += 1 elif Flag==True and D1!=D2: Flag = False MAXC = max(MAXC,Cout) MAXC = [MAXC...
Traceback (most recent call last): File "/tmp/tmphi3vew2s/tmpcxgltyqw.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s252824291
p02547
u847075829
1600542552
Python
Python (3.8.2)
py
Runtime Error
28
8956
193
n = int(input) count = 0 ans = 'No' for _ in range(n): a,b = map(int,input().split(' ') if a!=b: ans = 0 else: count+=1 if count ==3: ans = 'Yes' print(ans)
File "/tmp/tmp7kyo0a4y/tmpfrwcu3wa.py", line 5 a,b = map(int,input().split(' ') ^ SyntaxError: '(' was never closed
s019844052
p02547
u380791283
1600542550
Python
Python (3.8.2)
py
Runtime Error
31
9020
304
#B n = int(input()) count=0 mcount=0 for i in range(n): a,b = list(map(int, input().split())) if a==b: count+=1 if mcount<count: mcount = count if mcount=3: break else: count=0 if mcount=3: print("Yes") else: print("No")
File "/tmp/tmp26e7yfqk/tmpaew9r527.py", line 11 if mcount=3: ^^^^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s782264588
p02547
u968431218
1600542528
Python
Python (3.8.2)
py
Runtime Error
24
9104
172
for _ in range(int(input())): n1,n2=map(int,input().split()) if n1==n2: c+=1 m=max(m,c) else: m=max(m,c) c=0 #print(c) if m>=3: print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmp_uigmwrh/tmpnj8f5guq.py", line 1, in <module> for _ in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s130229687
p02547
u077948085
1600542518
Python
Python (3.8.2)
py
Runtime Error
26
9016
138
i = int(input()) count = 0 for i in range(i): a, b = input().split(' ') if a == b: count += 1 print('Yes' if count >= 3 else 'No'
File "/tmp/tmp6yys14y5/tmp__0lar41.py", line 7 print('Yes' if count >= 3 else 'No' ^ SyntaxError: '(' was never closed
s245651080
p02547
u627600101
1600542506
Python
Python (3.8.2)
py
Runtime Error
22
9256
1458
#from collections import deque #from heapq import heapify, heappop, heappush #from bisect import insort #from math import gcd #mod = 10**9 + 7 N = int(input()) #N, K = map(int, input().split()) #A = list(map(int, input().split())) flag1 = False flag2 = False flag3 = False c, d = map(int, input().split()) if c == d: fl...
Traceback (most recent call last): File "/tmp/tmpajhr0_49/tmpmhtn25if.py", line 6, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s269542089
p02547
u856636328
1600542493
Python
Python (3.8.2)
py
Runtime Error
29
9020
203
n = int(input()) c = 0 c1=0 for x in range(n): a,b = map(int,input().split()) if a==b: c+=1 if c==3: c1 = 1 print('Yes') break else: c=0 if c1==0: print('No')
File "/tmp/tmp5s84w4kn/tmp3lp1b6ry.py", line 10 print('Yes') TabError: inconsistent use of tabs and spaces in indentation
s308624300
p02547
u947664173
1600542459
Python
Python (3.8.2)
py
Runtime Error
25
9188
264
n=int(input()) xy = [map(int, input().split()) for _ in range(5)] x, y = [list(i) for i in zip(*xy)] zoro=0 for i in range(n): if x[i]==y[i]: zoro+=1 if zoro==3: print("Yes") exit() else: zoro=0 print("No")
Traceback (most recent call last): File "/tmp/tmp97ea5k9g/tmpovgoie8c.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s103832121
p02547
u769095634
1600542453
Python
Python (3.8.2)
py
Runtime Error
25
9172
268
n = int(input()) count = 0 flag = False for i in range(n): a, b = map(int, input().split()) if a == b: if count == 2: flag = True else: count += 1 else: count = 0 if flag: print(Yes) else: print("No")
Traceback (most recent call last): File "/tmp/tmplcip7s2z/tmpevwvy4pz.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s753076228
p02547
u062691227
1600542444
Python
PyPy3 (7.3.0)
py
Runtime Error
98
68672
195
cnt = 0 ans = False for i in range(n): a,b = dd[i] if a == b: cnt += 1 else: cnt = 0 if cnt >= 3: ans = True if ans: print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmpg4mvfeza/tmpg0u4vtsd.py", line 3, in <module> for i in range(n): ^ NameError: name 'n' is not defined
s179232316
p02547
u879866069
1600542433
Python
Python (3.8.2)
py
Runtime Error
25
9164
205
N = int(input()) count = 0 for i in range(N): di_1, di_2 = int(input().split()) if di_1 == di_2: count += 1 else: count = 0 if count >= 3: print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmp6098jety/tmp17uzaqua.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s920940101
p02547
u856636328
1600542432
Python
Python (3.8.2)
py
Runtime Error
24
8956
200
n = int(input()) c = 0 c1=0 for x in range(n): a,b = map(int,input().split()) if a==b: c+=1 if c==3: c1 = 1 print('Yes') break else: c=0 if c1==0: print('No')
File "/tmp/tmpxavsbrk1/tmpus7ebnng.py", line 10 print('Yes') ^ IndentationError: unindent does not match any outer indentation level
s881639224
p02547
u408148811
1600542431
Python
Python (3.8.2)
py
Runtime Error
26
9024
237
n=int(input()) a=[] for i in range(n): x,y=map(int,input().split()) a.append([x,y]) f=0; for i in range(n-2): if (a[i][0]=a[i][1]and a[i+1][0]=a[i+1][1] and a[i+2][0]=a[i+2][1]): f=1 if f: print("Yes") else : print("No")
File "/tmp/tmpp20funw0/tmpeq3ek5vd.py", line 8 if (a[i][0]=a[i][1]and a[i+1][0]=a[i+1][1] and a[i+2][0]=a[i+2][1]): ^^^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s593452277
p02547
u106778233
1600542417
Python
Python (3.8.2)
py
Runtime Error
32
9032
199
n = input() temp = 0 for i in range(n): d,w = map(int,input().split()) if d==w: temp += 1 if temp == 3 : print("Yes") exit() else: temp = 0 print("No")
Traceback (most recent call last): File "/tmp/tmpyw4m_aua/tmpb9z9na_o.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s603673593
p02547
u546853743
1600542402
Python
Python (3.8.2)
py
Runtime Error
28
9180
198
n=int(input()) for i in range(n): a,b=list(map(int,input().split())) for i in range(n-2): if a[i]==b[i] and a[i+1]==b[i+1] and a[i+2]==b[i+2]: print('Yes') exit() print('No')
Traceback (most recent call last): File "/tmp/tmpsbut0x9r/tmpmfy428cg.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s982393423
p02547
u693048766
1600542394
Python
Python (3.8.2)
py
Runtime Error
40
9928
242
import re n=int(input()) s = "" for _ in range(n): d1,d2 = input().split() if d1==d2: s+="1" else: s+="0" #print(s) a = max([len(x) for x in re.findall(r"1+", s)]) if a >= 3: print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmpea9z3zf8/tmph4lngqqa.py", line 2, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s361741315
p02547
u330728443
1600542390
Python
PyPy3 (7.3.0)
py
Runtime Error
151
68600
232
#B N=int(input()) cnt=0 flag=False for i in range(N): a,b=map(int,input().split()) if a==b: cnt+=1 else: cnt=0 if cnt=3: flag=True break if flag: print("Yes") else: print("No")
File "/tmp/tmpchxgiezi/tmp4lus752w.py", line 11 if cnt=3: ^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s292695457
p02547
u145915236
1600542384
Python
PyPy3 (7.3.0)
py
Runtime Error
160
68520
260
from sys import exit N = int(input()) cnt = 0 for i in range(N): x,y = map(int,input().split()) if cnt == 3: print("Yes") exit(0) if x == y: cnt += 1 else: cnt = 0 if cnt == 3: print("Yes" print("No")
File "/tmp/tmp8q7w0r56/tmpzo1uvhko.py", line 16 print("Yes" ^ SyntaxError: '(' was never closed
s355570326
p02547
u458967973
1600542379
Python
Python (3.8.2)
py
Runtime Error
28
9004
289
num = input() d = [] for n in range(num): t, s = input().split() d.append([t,s]) flag = 0 for n in range(num): if(n<num-2): if(d[n][0]==d[n][1] and d[n+1][0]==d[n+1][1] and d[n+2][0]==d[n+2][1]): flag = 1 if flag == 1: print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmpabwxtqox/tmpiyb30m9y.py", line 1, in <module> num = input() ^^^^^^^ EOFError: EOF when reading a line
s631553109
p02547
u766734191
1600542309
Python
Python (3.8.2)
py
Runtime Error
27
9176
264
N = int(input()) nums = [] for a in range(N): ci = [] ci.append(int(input())) ci.append(int(input())) nums.append(ci) zoro = maximum = 0 for a in range(N): if nums[a][0] == nums[a][1]: zoro += 1 maximum = max(maximum, zoro) else: zoro = 0
Traceback (most recent call last): File "/tmp/tmpsmahfeq_/tmp51bfx3mp.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s667253307
p02547
u760961723
1600542252
Python
Python (3.8.2)
py
Runtime Error
35
9480
700
import sys import math import itertools import collections from collections import deque from collections import defaultdict sys.setrecursionlimit(1000000) MOD = 10 ** 9 + 7 MOD2 = 998244353 INF = float('inf') input = lambda: sys.stdin.readline().strip() NI = lambda: int(input()) NMI = lambda: map(int, input().split(...
Traceback (most recent call last): File "/tmp/tmpe8rh2o82/tmpfgq43q5d.py", line 36, in <module> main() File "/tmp/tmpe8rh2o82/tmpfgq43q5d.py", line 20, in main N = NI() ^^^^ File "/tmp/tmpe8rh2o82/tmpfgq43q5d.py", line 14, in <lambda> NI = lambda: int(input()) ^^^^^^^^^^^^ Val...
s748286396
p02547
u860829879
1600542221
Python
PyPy3 (7.3.0)
py
Runtime Error
84
68728
162
n=int(input()) *a,=map(int,open(0).read().split()) for i in range(2,2*n): if a[i-2]==a[i-1]==a[i]: print('Yes') break else: print('No')
Traceback (most recent call last): File "/tmp/tmpk3elokp7/tmpdw2fa3y0.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s691202308
p02547
u297651868
1600542206
Python
Python (3.8.2)
py
Runtime Error
35
9112
200
s=int(input()) for i in range(s): p= list(map(int, input().split())) if p[0]==p[1]: z+=1 if z==3: print("Yes") exit() else: z=0 print("No")
Traceback (most recent call last): File "/tmp/tmpctrhm81b/tmpiru0l9mv.py", line 1, in <module> s=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s635204165
p02547
u693974737
1600542138
Python
PyPy3 (7.3.0)
py
Runtime Error
145
68500
216
n = int(input()) cur = 0 best = 0 for _ in range(n): a, b = input().split() if a == b: cur += 1 best = max(best, cur) else: cur = 0 if best >= 3: print("Yes") else: print("No")
File "/tmp/tmpnao9l97q/tmpyklaozbr.py", line 6 if a == b: ^ IndentationError: unindent does not match any outer indentation level
s346714890
p02547
u667024514
1600542110
Python
Python (3.8.2)
py
Runtime Error
30
9148
197
n = int(input()) lis = list(map(int,input().split())) ans = 0 for i in range(n): if lis[i][0] == lis[i][1]: ans += 1 else: ans = 0 if ans == 3: print("Yes") exit() print("No")
Traceback (most recent call last): File "/tmp/tmp8_fbjwgv/tmp6xh865i3.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s588509049
p02548
u653041271
1600727695
Python
PyPy3 (7.3.0)
py
Runtime Error
97
75236
1325
import sys, bisect, math, itertools, string, queue, copy import numpy as np import scipy from collections import Counter,defaultdict,deque from itertools import permutations, combinations from heapq import heappop, heappush # input = sys.stdin.readline sys.setrecursionlimit(10**8) mod = 10**9+7 def inp(): return int(in...
Traceback (most recent call last): File "/tmp/tmpja_1swhg/tmpjiow2c1b.py", line 21, in <module> n,k = inpm() ^^^^^^ File "/tmp/tmpja_1swhg/tmpjiow2c1b.py", line 11, in inpm def inpm(): return map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s024855028
p02548
u175590965
1600724283
Python
Python (3.8.2)
py
Runtime Error
25
9096
75
n = int(input()) ans =0 for i in range(1,n): ans +=(n-1)//a print(ans)
Traceback (most recent call last): File "/tmp/tmp111wjqgv/tmpdbwf2n1h.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s759306023
p02548
u740157634
1600724251
Python
Python (3.8.2)
py
Runtime Error
28
9016
127
import sympy N = int(input()) K = 0 cnt = 0 for i in range(1, N): K = N - i cnt += sympy.divisor_count(K) print(cnt)
Traceback (most recent call last): File "/tmp/tmpq3cv1bs2/tmpjm89sazw.py", line 2, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s254355354
p02548
u345356200
1600702534
Python
Python (3.8.2)
py
Runtime Error
29
8860
80
import math n=int(intput()) sum=0 for i in range(1,n): sum+=(n-1)/i print(sum)
Traceback (most recent call last): File "/tmp/tmpnh4dnqac/tmp2upaggww.py", line 2, in <module> n=int(intput()) ^^^^^^ NameError: name 'intput' is not defined. Did you mean: 'input'?
s576525054
p02548
u509150616
1600700690
Python
PyPy3 (7.3.0)
py
Runtime Error
88
74632
119
N = int(input()) nd = [0] * (N+1) for i in range(1, N): for j in range(i, N, i): nd[j] += 1 print(sum(nd))
File "/tmp/tmpvd9xtr76/tmpnk8ft8p2.py", line 1 N = int(input()) IndentationError: unexpected indent
s369022746
p02548
u654571388
1600697151
Python
Python (3.8.2)
py
Runtime Error
28
9108
139
import sympy val=int(input()) sum=0 newval=val-1 for i in range(val-1): sum+=sympy.divisor_count(newval) newval=newval-1 print(sum)
Traceback (most recent call last): File "/tmp/tmpdsn7x5qs/tmpczrbp3ez.py", line 2, in <module> val=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s631913820
p02548
u654571388
1600696733
Python
Python (3.8.2)
py
Runtime Error
30
9068
91
import sympy val=input() sum=0 for i in (val-1): sum+=sympy.divisor_count(val) print(sum)
Traceback (most recent call last): File "/tmp/tmps6t8p5b6/tmpi4y85j9a.py", line 2, in <module> val=input() ^^^^^^^ EOFError: EOF when reading a line
s019768627
p02548
u921156673
1600683519
Python
PyPy3 (7.3.0)
py
Runtime Error
102
74700
104
N = int(input()) count = 0 for a in range(1,N+1): for b in range(a,N/a+1): count += 2 print(count)
Traceback (most recent call last): File "/tmp/tmpnv5vzc6n/tmpy44tq0fi.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s953038727
p02548
u921156673
1600683468
Python
PyPy3 (7.3.0)
py
Runtime Error
92
74788
104
N = int(input()) count = 0 for a in range(1,N+1): for b in range(a,N/a+1): count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmp0apvbg2x/tmprykcaz5g.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s640562019
p02548
u543000780
1600646934
Python
Python (3.8.2)
py
Runtime Error
24
8972
203
N = int(input()) ls = [0]*(N) n = 1 while n <= N-1: k = 1 tmp = 0 while k**2 <= n: if n % k == 0: if k ** 2 = n: tmp += 1 else: tmp += 2 ls[n] = tmp print(sum(ls))
File "/tmp/tmp6hro6i93/tmpx1l1pwfa.py", line 9 if k ** 2 = n: ^^^^^^ SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
s464903189
p02548
u762469320
1600639972
Python
Python (3.8.2)
py
Runtime Error
28
8956
116
import sympy n = int(input()) cnt = 0 for c in range(1,n): x = n - c cnt += len(sympy.divisors(x)) print(cnt)
Traceback (most recent call last): File "/tmp/tmpcb1xus3p/tmpzth01sbx.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s190714668
p02548
u762469320
1600639769
Python
Python (3.8.2)
py
Runtime Error
29
9076
139
import sympy #sympy.divisors(10**9) n = int(input()) cnt = 0 for c in range(1,n): x = n - c cnt += len(sympy.divisors(x)) print(cnt)
Traceback (most recent call last): File "/tmp/tmp4_t_ucaj/tmpugleo3zw.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s085000348
p02548
u492660436
1600638975
Python
Python (3.8.2)
py
Runtime Error
32
8880
5315
#include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for (int i = (a); i < (int)(b); ++i) #define endl "\n" typedef long long ll; typedef string str; const double pi=3.14159265358979323846; const long long inf = 1LL << 60; typedef pair<int, int> P; const int dx[8] = { 1, 0, -1, 0, 1, -1, -1, 1 }; const int ...
File "/tmp/tmp6f0gexsr/tmpguk9xjji.py", line 8 const long long inf = 1LL << 60; ^ SyntaxError: invalid decimal literal
s858148401
p02548
u797550216
1600637608
Python
PyPy3 (7.3.0)
py
Runtime Error
95
74444
138
n = int(input()) c = 0 for i in range(n): for j in range(n): for k in range(n): if i*J+k == n: c += 1 print(c)
Traceback (most recent call last): File "/tmp/tmpd7ytf9w6/tmpxppcxe6y.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s701186702
p02548
u797550216
1600637567
Python
PyPy3 (7.3.0)
py
Runtime Error
94
74492
136
n = int(input()) c = 0 for i i range(n): for j in range(n): for k in range(n): if i*J+k == n: c += 1 print(c)
File "/tmp/tmprtnn0luy/tmpoe7aac3m.py", line 3 for i i range(n): ^ SyntaxError: invalid syntax
s069908134
p02548
u556571816
1600637532
Python
Python (3.8.2)
py
Runtime Error
26
9108
68
n = int(input()) for i in range(1,n): ans += (n-1)//i print(ans)
Traceback (most recent call last): File "/tmp/tmpfn702f10/tmpjekfdn5r.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s718878380
p02548
u556571816
1600637437
Python
Python (3.8.2)
py
Runtime Error
26
9148
67
n = int(input()) for i in range(1,n): ans += (n-1)//a print(ans)
Traceback (most recent call last): File "/tmp/tmpa2669i10/tmpd9r4ny0x.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s325525138
p02548
u945065638
1600636158
Python
Python (3.8.2)
py
Runtime Error
28
8960
109
= int(input()) ans = 0 for i in range(1,n): s = (n-1)//i if 0< s < n: ans += s print(ans)
File "/tmp/tmp59frktsx/tmp8375yf_t.py", line 1 = int(input()) IndentationError: unexpected indent
s983821669
p02548
u167908302
1600631504
Python
Python (3.8.2)
py
Runtime Error
26
9128
96
# coding:utf-8 n = int(input()) ans = 0 for a in range(n): ans += (n - 1) // a print(ans)
Traceback (most recent call last): File "/tmp/tmpn46j0g_s/tmpgifi4pvz.py", line 2, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s872276698
p02548
u738831737
1600631162
Python
PyPy3 (7.3.0)
py
Runtime Error
100
74488
389
import collections def prime_factorize(n): a = [] while n % 2 == 0: a.append(2) n //= 2 f = 3 while f * f <= n: if n % f == 0: a.append(f) n //= f else: f += 2 if n != 1: a.append(n) return a s=input() for i in r...
File "/tmp/tmpwx51wqth/tmp6s9xxg_a.py", line 22 for i in range(s-1) ^ SyntaxError: expected ':'
s672055488
p02548
u016302627
1600630054
Python
Python (3.8.2)
py
Runtime Error
26
9088
117
import sympy n = int(input()) ans = 0 for c in range(1, n): ab = n - c ans += sympy.divisor_count(ab) print(ans)
Traceback (most recent call last): File "/tmp/tmp8w3s9vtf/tmp9__w0hzz.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s490266791
p02548
u303711501
1600626981
Python
Python (3.8.2)
py
Runtime Error
29
8976
318
n=int(input()) #d = [list(map(int,input().split())) for _ in range(s)] def p(val): print(val) count = 0 #cは1以上で、問題文からN-1 a*b <=N-1のものをもとめる #aを1からふやしてく、cはaとbが決まれば自動歴に決まるので、 for i in range(1,n): p(count)
File "/tmp/tmpu044h5d9/tmpyb4pypzt.py", line 18 p(count) ^ IndentationError: expected an indented block after 'for' statement on line 12
s448566517
p02548
u123756661
1600620336
Python
PyPy3 (7.3.0)
py
Runtime Error
93
74696
219
#include<bits/stdc++.h> using namespace std; #define sl1(a) scanf("%lld",&a) int main(){ long long n,ans=0ll; sl1(n); for (long long i=1;i<=n;i++) ans+=(n-1)/a; printf("%lld\n",ans); return 0; }
File "/tmp/tmpvosiq6ns/tmp17g_p83o.py", line 7 long long n,ans=0ll; ^ SyntaxError: invalid decimal literal