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
s691181321
p00491
u587821863
1416489370
Python
Python3
py
Runtime Error
0
0
916
#f = open("input.txt") #N, K = [int(x) for x in f.readline().split(' ')] #lines = f.readlines() import sys N, K = [int(x) for x in sys.stdin.readline().split(' ')] lines = sys.stdin.readlines() f.close() schedule = [0]*N for line in lines: strs = line.split(' ') schedule[int(strs[0])-1] = int(strs[1]) number...
Traceback (most recent call last): File "/tmp/tmpt5s3dt94/tmpal048jww.py", line 6, in <module> N, K = [int(x) for x in sys.stdin.readline().split(' ')] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpt5s3dt94/tmpal048jww.py", line 6, in <listcomp> N, K = [int(x) for x in sys.stdin...
s566400070
p00491
u811434779
1441372861
Python
Python
py
Runtime Error
40000
6408
491
n, k = map(int, raw_input().split()) d = {} for i in range(k): a, b = map(int, raw_input().split()) d[a] = b dp =[[[[0]*(n+1) for i in range(4)] for j in range(4)] for k in range(4)] def solve(a, b, c, i): if a == b == c: return 0 if i in d and d[i] != c: return 0 if i == n: return 1 dp[a][b][c]...
File "/tmp/tmpqjsotz3x/tmp9o1ahp19.py", line 14 print ans ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s726058122
p00491
u150984829
1527638800
Python
Python3
py
Runtime Error
20
5604
467
N,K=map(int,input().split()) S=[0]*N for _ in[0]*K: a,b=map(int,input().split()) S[a-1]=b dp=[0]*9 st,nd=S[:2] if st: if nd:dp[~-st*3+~-nd]=1 else:dp[~-st*3:st*3]=[1]*3 elif nd:dp[~-st::3]=[1]*3 else:dp=[1]*9 for i in range(2,N): cur=S[i];tmp=[0]*9 if cur: cur-=1 for k in range(3):tmp[k*3+cur]=sum(dp[k::3])-d...
Traceback (most recent call last): File "/tmp/tmphd41okso/tmpm67da5zo.py", line 1, in <module> N,K=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s745630072
p00492
u621997536
1419685371
Python
Python3
py
Runtime Error
30
6768
801
W, H = map(int, input().split()) m = [list(map(int, input().split())) for i in range(H)] dx = [[1, 1, 1, 0, -1, 0], [0, 1, 0, -1, -1, -1]] dy = [-1, 0, 1, 1, 0, -1] def dfs(x, y): if m[y][x] != 0: return m[y][x] = 2 for xx, yy in zip(dx[y % 2], dy): tx, ty = x + xx, y + yy if 0 <= tx...
Traceback (most recent call last): File "/tmp/tmpjgysy3fq/tmpnrsm_4l1.py", line 1, in <module> W, H = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s203972415
p00492
u352394527
1526831225
Python
Python3
py
Runtime Error
30
5620
1509
WALL = 100 w, h = map(int,input().split()) lst = [[WALL] + list(map(int,input().split())) + [WALL] for i in range(h)] lst.insert(0, [WALL] * (w + 2)) lst.append([WALL] * (w + 2)) visited = [[0] * (w + 2) for _ in range(h + 2)] hold = [] def search(x, y): if lst[x][y] == WALL: visited[x][y] = 3 return 3 ...
Traceback (most recent call last): File "/tmp/tmpmw1ss12x/tmpkhrlceoq.py", line 2, in <module> w, h = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s955277059
p00493
u235282710
1476626626
Python
Python
py
Runtime Error
40000
6540
517
#!/usr/bin/env python A = int(raw_input()) B = int(raw_input()) M = int(raw_input()) ans = 0 def is_zig_zag(d): s = str(d) if len(s) == 1: return True if s[0] < s[1]: b = True elif s[0] > s[1]: b = False else: return False for i in xrange(1, len(s)): if not b and s[i-1] <= s[i]: return ...
File "/tmp/tmp49aicivg/tmproi6gu0a.py", line 36 print ans ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s908988709
p00494
u489809100
1448359353
Python
Python
py
Runtime Error
40000
7544
281
JOI = raw_input() JJOOII = ["J", "O", "I"] max = 0 now = 1 while len(JJOOII) <= len(JOI): if "".join(JJOOII) in JOI : max = now JJOOII.insert(JJOOII.index("J") + 1, "J") JJOOII.insert(JJOOII.index("O") + 1, "O") JJOOII.insert(JJOOII.index("I") + 1, "I") now += 1 print max
File "/tmp/tmpxsgb8q2r/tmplr62kup2.py", line 14 print max ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s229644468
p00494
u489809100
1448359679
Python
Python
py
Runtime Error
40000
7364
201
JOI = raw_input() JJOOII = "JOI" max = 0 n = 1 while len(JJOOII) <= len(JOI): if JJOOII in JOI : max = n JJOOII = JJOOII[0:n] + "J" + JJOOII[n:n*2] + "O" + JJOOII[n*2:n*3] + "I" n += 1 print max
File "/tmp/tmpztlmbwrw/tmpi4k4zfhk.py", line 12 print max ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s994418514
p00494
u266872031
1521366885
Python
Python
py
Runtime Error
0
4660
318
S=raw_input()+"n" A=[] M="JOI" i=0 m=M[0] c=S[0] n=0 for s in S: if c==s: n+=1 else: if c==m: A.append(n) i+=1 else: A.append(0) i=0 m=M[i%3] c=s n=1 ans= max([min(A[x:x+3]) for x in range(len(A)-2) ]) print ans
File "/tmp/tmp1c3ruk03/tmpzwt4uhjr.py", line 23 print ans ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s424827939
p00494
u104911888
1368109019
Python
Python
py
Runtime Error
20000
19348
141
S=raw_input() N=len(S) for k in range(N/3,0,-1): s="J"*k+"O"*k+"I"*k if S.count(s)>0: print k break else: print 0
File "/tmp/tmp43s6lqso/tmp1sjnnc52.py", line 6 print k ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s548457522
p00494
u572424947
1376558571
Python
Python
py
Runtime Error
10
4224
213
import re string = raw_input() mutch = re.findall("J*O*I*", string) max = 0 for s in mutch: if s.count("O") == min([s.count(c) for c in ("J", "O", "I")]): k = s.count("O") if k > max: max = k print max
File "/tmp/tmpyfkqoh1c/tmplpmj2r5z.py", line 14 print max ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s510346947
p00494
u572424947
1376558845
Python
Python
py
Runtime Error
10
4224
213
import re string = raw_input() match = re.findall("J+O+I+", string) max = 0 for s in match: if s.count("O") == min([s.count(c) for c in ("J", "O", "I")]): k = s.count("O") if k > max: max = k print max
File "/tmp/tmp8s2e0tc0/tmpjff6kotb.py", line 14 print max ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s281808562
p00494
u572424947
1376558930
Python
Python
py
Runtime Error
20000
8248
220
import re string = raw_input() match = re.findall("J+O+I+", string) max = 0 for s in match: k = 0 if s.count("O") == min([s.count(c) for c in ("J", "O", "I")]): k = s.count("O") if k > max: max = k print max
File "/tmp/tmp0hepo0xf/tmpspke07hp.py", line 15 print max ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s482497921
p00494
u547057305
1381076448
Python
Python
py
Runtime Error
20000
5296
305
s = raw_input() k = x = 0 while 1: x += 1 if "J"*x+"O"*x+"I"*x in s: k = x elif "J"*x in s: pass elif "O"*x in s: pass elif "I"*x in s: pass else: print(k) break
Traceback (most recent call last): File "/tmp/tmpyxig1k_y/tmpapwo_rd1.py", line 1, in <module> s = raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s317142529
p00494
u547057305
1381076789
Python
Python
py
Runtime Error
20000
5300
334
s = raw_input() k = x = 0 while 1: x += 1 if "J"*x+"O"*x+"I"*x in s: k = x elif not "J"*x in s: print(k) break elif not "O"*x in s: print(k) break elif not "I"*x in s: print(k) ...
Traceback (most recent call last): File "/tmp/tmpm94suo40/tmpulva3scg.py", line 1, in <module> s = raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s131578647
p00494
u547057305
1381077512
Python
Python
py
Runtime Error
20000
5324
347
s = raw_input() k = x = 0 while x < len(s)*0.4: x += 1 if "J"*x+"O"*x+"I"*x in s: k = x elif not "J"*x in s: print(k) break elif not "O"*x in s: print(k) break elif not "I"*x in s: pri...
Traceback (most recent call last): File "/tmp/tmp6ajthc3s/tmpw8520dgy.py", line 1, in <module> s = raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s474026355
p00494
u093607836
1390065939
Python
Python
py
Runtime Error
39860
17388
120
s = raw_input() for i in reversed(range(1,len(s)/3+1)): if 'J' * i + 'O' * i + 'I' * i in s: print i exit() print 0
File "/tmp/tmptyay5os6/tmpjdw8csp2.py", line 4 print i ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s027559567
p00494
u633068244
1397473749
Python
Python
py
Runtime Error
39860
19228
115
a=raw_input() for k in range(len(a)//3,0,-1): joi="J"*k+"O"*k+"I"*k if joi in a: print k break else: print 0
File "/tmp/tmpwvxmdeo3/tmpuk8w5s0f.py", line 5 print k ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s456599446
p00494
u633068244
1397473901
Python
Python
py
Runtime Error
39860
19212
155
a=raw_input() sp=min(a.count("J"),a.count("I"),a.count("O")) for k in range(sp,0,-1): joi="J"*k+"O"*k+"I"*k if joi in a: print k break else: print 0
File "/tmp/tmp4wgqe72a/tmp6lu53muq.py", line 6 print k ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s396466644
p00495
u811434779
1443440948
Python
Python
py
Runtime Error
4770
6780
342
a, b = map(int, raw_input().split()) p = map(int, raw_input().split()) q = map(int, raw_input().split()) ans = 0 for i in range(a): if b - i <= ans: break j = 0; k = i cnt = 0 while 1: if p[j] == q[k]: cnt += 1; j += 1; k += 1 else: j += 1 if j == a: break ans = m...
File "/tmp/tmpp15inl7p/tmptcc9htjx.py", line 15 print ans ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s583093234
p00495
u811434779
1443441756
Python
Python
py
Runtime Error
0
0
441
l = map(int, raw_input().split()) if len(l) == 2: a = l[0]; b = l[1] else: a = l[0]; b = input() p = map(int, raw_input().split()) q = map(int, raw_input().split()) ans = 0 #?°?????????? for i in range(a): if b - i <= ans or a - i <= ans: break j = 0; k = i cnt = 0 while 1: if p[j] == q[...
File "/tmp/tmpo4flibnp/tmpuig3hyir.py", line 20 print ans ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s432954913
p00495
u078042885
1485184682
Python
Python3
py
Runtime Error
5160
8224
215
c,d=map(int,input().split()) a=list(map(int,input().split())) b=list(map(int,input().split())) e=0;i=0 while i<d-e: p=i;q=0 for j in range(c): if a[j]==b[p]:q+=1;p+=1 e=max(e,q) i+=1 print(e)
Traceback (most recent call last): File "/tmp/tmpwatymzm9/tmpkzdzsohg.py", line 1, in <module> c,d=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s383995171
p00495
u078042885
1485198334
Python
Python3
py
Runtime Error
0
0
267
s=map(int,input().split()) if len(s)==2:c=s[0];d=s[1] else:c=s[0];d=int(input()) a=list(map(int,input().split())) b=list(map(int,input().split())) e=0;i=0 while i<d-e: p=i;q=0 for j in range(c): if a[j]==b[p]:q+=1;p+=1 e=max(e,q) i+=1 print(e)
Traceback (most recent call last): File "/tmp/tmpfbur8r27/tmpayscgb9t.py", line 1, in <module> s=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s922854014
p00495
u078042885
1485207716
Python
Python3
py
Runtime Error
0
0
237
try:c,d=int(input().split()) except:d=int(input()) a=list(map(int,input().split())) b=list(map(int,input().split())) e=0;i=0 while i<d-e: p=i;q=0 for j in range(c): if a[j]==b[p]:q+=1;p+=1 e=max(e,q) i+=1 print(e)
Traceback (most recent call last): File "/tmp/tmp4il2kye4/tmpo2feeh6m.py", line 1, in <module> try:c,d=int(input().split()) ^^^^^^^ EOFError: EOF when reading a line During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/tmp4il2kye4/tm...
s800005462
p00495
u078042885
1485207816
Python
Python3
py
Runtime Error
5300
8184
241
try:c,d=map(int,input().split()) except:d=int(input()) a=list(map(int,input().split())) b=list(map(int,input().split())) e=0;i=0 while i<d-e: p=i;q=0 for j in range(c): if a[j]==b[p]:q+=1;p+=1 e=max(e,q) i+=1 print(e)
Traceback (most recent call last): File "/tmp/tmpn_zn50pp/tmp98_homyh.py", line 1, in <module> try:c,d=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/tmpn_z...
s867638355
p00495
u078042885
1485238453
Python
Python3
py
Runtime Error
5170
8092
243
try:c,d=map(int,input().split()) except:c,d=5000;input() a=list(map(int,input().split())) b=list(map(int,input().split())) e=0;i=0 while i<d-e: p=i;q=0 for j in range(c): if a[j]==b[p]:q+=1;p+=1 e=max(e,q) i+=1 print(e)
Traceback (most recent call last): File "/tmp/tmp4sqrpwkd/tmp1s7y_88g.py", line 1, in <module> try:c,d=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/tmp4sq...
s463633224
p00495
u197615397
1508941526
Python
Python3
py
Runtime Error
0
0
511
def solve(): A, B = map(int, input().split()) s1 = tuple(map(int, input().split())) s2 = tuple(map(int, input().split())) result = 0 for i in range(B): k = 0 cnt = 0 for j, n in enumerate(s2[i:]): while k < A and n != s1[k]: k += 1 if ...
Traceback (most recent call last): File "/tmp/tmposzj79v4/tmpm30yc9re.py", line 24, in <module> solve() File "/tmp/tmposzj79v4/tmpm30yc9re.py", line 2, in solve A, B = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s274303308
p00496
u317901693
1415174351
Python
Python
py
Runtime Error
19930
92200
876
# coding: utf-8 import sys sys.setrecursionlimit(10000) input_lines = [] input_lines.append(raw_input()) N,T,S = [int(x) for x in input_lines[0].split(' ')] data = [] for i in range(N): input_lines.append(raw_input()) a,b = [int(x) for x in input_lines[i+1].split(' ')] data.append([a,b]) dp = [[0 for i in range(T+1...
File "/tmp/tmpwvmhk3ce/tmpacbdt3zr.py", line 37 print rec(0,T) ^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s864622899
p00496
u317901693
1415174547
Python
Python
py
Runtime Error
19930
92200
876
# coding: utf-8 import sys sys.setrecursionlimit(10000) input_lines = [] input_lines.append(raw_input()) N,T,S = [int(x) for x in input_lines[0].split(' ')] data = [] for i in range(N): input_lines.append(raw_input()) a,b = [int(x) for x in input_lines[i+1].split(' ')] data.append([a,b]) dp = [[0 for i in range(T+1...
File "/tmp/tmpy9hn1pp6/tmppiwh1hos.py", line 37 print rec(0,T) ^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s392680110
p00496
u647766105
1391502277
Python
Python
py
Runtime Error
39860
76400
485
N, T, S = map(int, raw_input().split()) L = [map(int, raw_input().split()) for _ in xrange(N)] dp = [[0] * (T + 1) for _ in xrange(N)] for n in xrange(N): for t, c in L[:n + 1]: for i in xrange(S - c - 1, -1, -1): dp[n][i + c] = max(dp[n][i + c], dp[n][i] + t) for n in xrange(N): dp[n][S + ...
File "/tmp/tmpd8nj5pg0/tmp3_toqxi1.py", line 15 print max(map(max, dp)) ^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s472993350
p00496
u647766105
1391503267
Python
Python
py
Runtime Error
40
4320
344
N, T, S = map(int, raw_input().split()) L = [map(int, raw_input().split()) for _ in xrange(N)] dp = [0] * (T + 1) for t, c in L: for i in xrange(T - c, -1, -1): if i > S or (i + c) < S: dp[i + c] = max(dp[i + c], dp[i] + t) ma = max(dp[:S]) for i in xrange(T, S, -1): dp[i] = max(...
File "/tmp/tmpa_14xndr/tmpv2yy71s7.py", line 11 print max(dp) ^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s508558890
p00499
u814278309
1559481297
Python
Python3
py
Runtime Error
0
0
287
while True: l=int(input()) a=int(input()) b=int(input()) c=int(input()) d=int(input()) if a%c==0 and b%d==0: if a/c>=b/d: print(l-(a//c)) else: print(l-(b//d)) else: x=(a//c)+1 y=(b//d)+1 if x>=y: print(l-x) else: print(l-y)
Traceback (most recent call last): File "/tmp/tmp07r0z0la/tmpv1hfkcei.py", line 2, in <module> l=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s366247740
p00503
u985367427
1414733611
Python
Python3
py
Runtime Error
0
0
1388
input_str = raw_input() N, K = [int(x) for x in input_str[0].split(' ')] x_grid = set() y_grid = set() d_grid = set() for line in input_str[1:]: x1, y1, d1, x2, y2, d2 = [int(x) for x in line.split(' ')] x_grid.add(x1) x_grid.add(x2) y_grid.add(y1) y_grid.add(y2) d_grid.add(d1) d_grid.add(...
File "/tmp/tmpcknfm8ji/tmp6rns8akn.py", line 46 print volume ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s179799236
p00503
u985367427
1414733687
Python
Python
py
Runtime Error
0
0
1388
input_str = raw_input() N, K = [int(x) for x in input_str[0].split(' ')] x_grid = set() y_grid = set() d_grid = set() for line in input_str[1:]: x1, y1, d1, x2, y2, d2 = [int(x) for x in line.split(' ')] x_grid.add(x1) x_grid.add(x2) y_grid.add(y1) y_grid.add(y2) d_grid.add(d1) d_grid.add(...
File "/tmp/tmphtm6_lbx/tmpo9uyh5jz.py", line 46 print volume ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s836942353
p00503
u985367427
1414734620
Python
Python3
py
Runtime Error
0
0
1498
import numpy as np input_str = raw_input() N, K = [int(x) for x in input_str.split(' ')] input_lines = [] for n in range(N): input_str = raw_input() input_lines.append(input_str) x_grid = set() y_grid = set() d_grid = set() for line in input_lines: x1, y1, d1, x2, y2, d2 = [int(x) for x in line.split(' ')]...
Traceback (most recent call last): File "/tmp/tmpz6q6v69a/tmp8014iqln.py", line 3, in <module> input_str = raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s076436822
p00503
u985367427
1414742586
Python
Python3
py
Runtime Error
0
0
1839
import sys import array input_lines = sys.stdin.read().splitlines() N, K = [int(x) for x in input_lines[0].split(' ')] x_grid = set() y_grid = set() d_grid = set() for line in input_lines[1:]: x1, y1, d1, x2, y2, d2 = [int(x) for x in line.split(' ')] x_grid.add(x1) x_grid.add(x2) y_grid.add(y1) y_...
Traceback (most recent call last): File "/tmp/tmpbxsv90zn/tmp6ogn0h3i.py", line 5, in <module> N, K = [int(x) for x in input_lines[0].split(' ')] ~~~~~~~~~~~^^^ IndexError: list index out of range
s207316810
p00504
u894114233
1484654879
Python
Python
py
Runtime Error
40000
6576
2041
import sys sys.setrecursionlimit(10**8) def check(y,x): if 0<=x<=w-1 and 0<=y<=h-1 and g[y][x]!="#": return True return False def dfs(y,x,cnt,v): global ans if cnt>k:return -1 if y==h-1 and x==w-1 and cnt==k: return v if cnt==k: for i in xrange(4): if i==2 o...
Traceback (most recent call last): File "/tmp/tmpnk46c_e_/tmp1qn49gio.py", line 67, in <module> h,w,k=map(int,raw_input().split()) ^^^^^^^^^ NameError: name 'raw_input' is not defined
s426919599
p00504
u352394527
1526982125
Python
Python3
py
Runtime Error
110
5616
1843
INF = 9 h, w, k = map(int,input().split()) maps = [list("#" * (w + 2))] for i in range(h): maps.append(list("#" + input() + "#")) maps.append(list("#" * (w + 2))) #スタートからそのマスまでに何度逆走する必要があるかのマップ #root_map = [[INF] * (w + 2) for i in range(h + 2)] #そのマスからゴールまでに何度逆走する必要があるかのマップ reverse_map = [[INF] * (w + 2) for i in...
Traceback (most recent call last): File "/tmp/tmpnibq0h62/tmprvfd5910.py", line 3, in <module> h, w, k = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s068297383
p00504
u352394527
1526982198
Python
Python3
py
Runtime Error
100
5624
1885
import sys sys.setrecursionlimit(1000000) INF = 9 h, w, k = map(int,input().split()) maps = [list("#" * (w + 2))] for i in range(h): maps.append(list("#" + input() + "#")) maps.append(list("#" * (w + 2))) #スタートからそのマスまでに何度逆走する必要があるかのマップ #root_map = [[INF] * (w + 2) for i in range(h + 2)] #そのマスからゴールまでに何度逆走する必要があるかのマ...
Traceback (most recent call last): File "/tmp/tmp8rr40con/tmpeq5i66u7.py", line 5, in <module> h, w, k = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s403630988
p00505
u504401399
1531325339
Python
Python3
py
Runtime Error
0
0
513
lista=[] t=0 ch=0 e=0 d=0 tflag=1 while True: try: lista.append(list(map(int,input().split()))) except: break; def func01(a,b,c): global t global ch global e global d if a+b>c: t+=1 if a**2+b**2==c**2: ch+=1 elif a**2+b**2>c**2: ...
File "/tmp/tmpqetgkrhz/tmpmpe1sg42.py", line 26 else tflag=0 ^^^^^ SyntaxError: expected ':'
s308070244
p00505
u504401399
1531325374
Python
Python3
py
Runtime Error
0
0
514
lista=[] t=0 ch=0 e=0 d=0 tflag=1 while True: try: lista.append(list(map(int,input().split()))) except: break; def func01(a,b,c): global t global ch global e global d if a+b>c: t+=1 if a**2+b**2==c**2: ch+=1 elif a**2+b**2>c**2: ...
File "/tmp/tmpwak629ld/tmpq4npmudl.py", line 26 else tflag==0 ^^^^^ SyntaxError: expected ':'
s422832058
p00505
u504401399
1531325410
Python
Python3
py
Runtime Error
0
0
523
lista=[] t=0 ch=0 e=0 d=0 tflag=1 while True: try: lista.append(list(map(int,input().split()))) except: break; def func01(a,b,c): global t global ch global e global d if a+b>c: t+=1 if a**2+b**2==c**2: ch+=1 elif a**2+b**2>c**2: ...
s641800820
p00505
u504401399
1531325569
Python
Python3
py
Runtime Error
0
0
522
lista=[] t=0 ch=0 e=0 d=0 tflag=1 while True: try: lista.append(list(map(int,input().split()))) except: break; def func01(a,b,c): global t global ch global e global d if a+b>c: t+=1 if a**2+b**2==c**2: ch+=1 elif a**2+b**2>c**2: ...
s544672734
p00505
u668055645
1545266364
Python
Python3
py
Runtime Error
0
0
365
f = True cnt = 0 l = [0,0,0] while f: t = [] t.append(int(input())) t.append(int(input())) t.append(int(input())) t.sort() if t[0]+t[1] <= t[2]: f = False continue if t[0]**2+t[1]**2 > t[2]**2: l[0]+=1 elif t[0]**2+t[1]**2 == t[2]**2: l[1]+=1 else: ...
File "/tmp/tmp3cyx3dl6/tmpw5__3157.py", line 19 print(sum(l),s for s in l) ^^^^^^^^^^^^ SyntaxError: Generator expression must be parenthesized
s824507020
p00505
u668055645
1545266461
Python
Python3
py
Runtime Error
0
0
367
f = True cnt = 0 l = [0,0,0] while f: t = [] t.append(int(input())) t.append(int(input())) t.append(int(input())) t.sort() if t[0]+t[1] <= t[2]: f = False continue if t[0]**2+t[1]**2 > t[2]**2: l[0]+=1 elif t[0]**2+t[1]**2 == t[2]**2: l[1]+=1 else: ...
Traceback (most recent call last): File "/tmp/tmp6ekceyp8/tmp2cmqk8jy.py", line 6, in <module> t.append(int(input())) ^^^^^^^ EOFError: EOF when reading a line
s626386581
p00505
u471400255
1511192168
Python
Python3
py
Runtime Error
0
0
598
import sys num = 0 triangle = {"chokkaku":0,"eikaku":0,"donkaku":0} henn = sys.stdin.readlines() for i in henn: hen = list(map(int,i)) hen.sort() if (hen[0] + hen[1] <= hen[2]) or (hen[1] + hen[2] <= hen[0]) or (hen[2] + hen[0] <= hen[1]): break else: num += 1 if hen[0]**2 + hen[...
0 0 0 0
s452365205
p00505
u234387950
1519107645
Python
Python3
py
Runtime Error
0
0
810
#input_f = "3 4 5\n2 1 2\n6 3 4\n1 1 1\n1 2 3" input_f = input() counter = [0, 0, 0] def t_check(a,b,c): if a + b > c: if b + c > a: if a + c > b: return True return False def f_check(a_, b_, c_): tmp = [] tmp.append(a_) tmp.append(b_) tmp.append(c_) sqrts = [] f...
Traceback (most recent call last): File "/tmp/tmpedpku5gu/tmp0oc17eyr.py", line 2, in <module> input_f = input() ^^^^^^^ EOFError: EOF when reading a line
s228577235
p00505
u234387950
1519107685
Python
Python3
py
Runtime Error
0
0
810
#input_f = "3 4 5\n2 1 2\n6 3 4\n1 1 1\n1 2 3" input_f = input() counter = [0, 0, 0] def t_check(a,b,c): if a + b > c: if b + c > a: if a + c > b: return True return False def f_check(a_, b_, c_): tmp = [] tmp.append(a_) tmp.append(b_) tmp.append(c_) sqrts = [] f...
Traceback (most recent call last): File "/tmp/tmpefxk4qcq/tmp7c59u20p.py", line 2, in <module> input_f = input() ^^^^^^^ EOFError: EOF when reading a line
s583143452
p00505
u234387950
1519107894
Python
Python3
py
Runtime Error
0
0
851
#input_f = "3 4 5\n2 1 2\n6 3 4\n1 1 1\n1 2 3" while(): input_f = input() counter = [0, 0, 0] def t_check(a,b,c): if a + b > c: if b + c > a: if a + c > b: return True return False def f_check(a_, b_, c_): tmp = [] tmp.append(a_) t...
Traceback (most recent call last): File "/tmp/tmpvlqs0o1o/tmp9ty7g7o4.py", line 40, in <module> print(sum(counter),counter[0], counter[1], counter[2]) ^^^^^^^ NameError: name 'counter' is not defined
s133077489
p00505
u234387950
1519108071
Python
Python3
py
Runtime Error
0
0
786
#input_f = "3 4 5\n2 1 2\n6 3 4\n1 1 1\n1 2 3" def t_check(a,b,c): if a + b > c: if b + c > a: if a + c > b: return True return False def f_check(a_, b_, c_): tmp = [] tmp.append(a_) tmp.append(b_) tmp.append(c_) sqrts = [] for i in range(3): sqrts.append(t...
Traceback (most recent call last): File "/tmp/tmp_x4i5b3d/tmpggqk8tsk.py", line 32, in <module> input_f = input() ^^^^^^^ EOFError: EOF when reading a line
s392399280
p00505
u234387950
1519108139
Python
Python3
py
Runtime Error
0
0
770
#input_f = "3 4 5\n2 1 2\n6 3 4\n1 1 1\n1 2 3" def t_check(a,b,c): if a + b > c: if b + c > a: if a + c > b: return True return False def f_check(a_, b_, c_): tmp = [] tmp.append(a_) tmp.append(b_) tmp.append(c_) sqrts = [] for i in range(3): sqrts.append(t...
Traceback (most recent call last): File "/tmp/tmpgin4doef/tmpgw_kdzmc.py", line 30, in <module> input_f = input() ^^^^^^^ EOFError: EOF when reading a line
s992582301
p00505
u234387950
1519108246
Python
Python3
py
Runtime Error
0
0
770
#input_f = "3 4 5\n2 1 2\n6 3 4\n1 1 1\n1 2 3" def t_check(a,b,c): if a + b > c: if b + c > a: if a + c > b: return True return False def f_check(a_, b_, c_): tmp = [] tmp.append(a_) tmp.append(b_) tmp.append(c_) sqrts = [] for i in range(3): sqrts.append(t...
Traceback (most recent call last): File "/tmp/tmp8_xt89rb/tmppn9nz1rb.py", line 30, in <module> input_f = input() ^^^^^^^ EOFError: EOF when reading a line
s661768871
p00505
u234387950
1519108323
Python
Python3
py
Runtime Error
0
0
770
#input_f = "3 4 5\n2 1 2\n6 3 4\n1 1 1\n1 2 3" def t_check(a,b,c): if a + b > c: if b + c > a: if a + c > b: return True return False def f_check(a_, b_, c_): tmp = [] tmp.append(a_) tmp.append(b_) tmp.append(c_) sqrts = [] for i in range(3): sqrts.append(t...
Traceback (most recent call last): File "/tmp/tmp_wxqqn79/tmp6a9xi_gd.py", line 30, in <module> input_f = input() ^^^^^^^ EOFError: EOF when reading a line
s687575487
p00505
u234387950
1519108691
Python
Python3
py
Runtime Error
0
0
695
def t_check(a,b,c): if a + b > c: if b + c > a: if a + c > b: return True return False def f_check(a_, b_, c_): tmp = [] tmp.append(a_) tmp.append(b_) tmp.append(c_) sqrts = [] for i in range(3): sqrts.append(tmp[i]**2) m = max(sqrts) s = sum(sqrts) ...
Traceback (most recent call last): File "/tmp/tmp9zysha7f/tmpw1p628ha.py", line 25, in <module> input_f = input() ^^^^^^^ EOFError: EOF when reading a line
s596865458
p00505
u899891332
1521759034
Python
Python3
py
Runtime Error
0
0
347
ans = [,,,] while True: sides = [,,] for i in range(3): side[i] = int(input()) sides = sorted(sides) if sides[2] >= sides[1] + sides[0]: print(ans[0], ans[1], ans[2], ans[3]) break if sides[2]**2 >= sides[1]**2 + sides[0]**2: ans[3]+=1 elif sides[2]**2 == sides[1]**2 + sides[0]**2: ans[2...
File "/tmp/tmpvcytvq_f/tmpjnofgr5q.py", line 1 ans = [,,,] ^ SyntaxError: invalid syntax
s711553672
p00505
u899891332
1521759201
Python
Python3
py
Runtime Error
0
0
327
ans = [0 for i in range(4)] while True: sides = sorted([int(input()) for i in range(3)]) if sides[2] >= sides[1] + sides[0]: print(ans[0], ans[1], ans[2], ans[3]) break if sides[2]**2 >= sides[1]**2 + sides[0]**2: ans[3]+=1 elif sides[2]**2 == sides[1]**2 + sides[0]**2: ans[2]+=1 else: ans...
Traceback (most recent call last): File "/tmp/tmpcpcpppht/tmp1wwnpvo0.py", line 3, in <module> sides = sorted([int(input()) for i in range(3)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpcpcpppht/tmp1wwnpvo0.py", line 3, in <listcomp> sides = sorted([int(input()) for i in range(3)]) ...
s200477577
p00505
u346907393
1522138621
Python
Python3
py
Runtime Error
0
0
501
def checkTriangle(a, b, c): if a + b > c and a + c > b and b + c > a: return True return False def checkOct(a, b, c): a, b, c = [i * i for i in [a, b, c]] if a + b == c or a + c == b or b + c == a: return 0 elif c < a + b or b < a + c or a < b + c: return 1 else: ...
Traceback (most recent call last): File "/tmp/tmpioh7w50m/tmpkrlda1_s.py", line 17, in <module> a, b, c = map(int, input()) ^^^^^^^ EOFError: EOF when reading a line
s693791271
p00505
u346907393
1522138868
Python
Python3
py
Runtime Error
0
0
502
def checkTriangle(a, b, c): if a + b > c and a + c > b and b + c > a: return True return False def checkOct(a, b, c): a, b, c = [i * i for i in [a, b, c]] if a + b == c or a + c == b or b + c == a: return 0 elif c < a + b or b < a + c or a < b + c: return 1 else: ...
Traceback (most recent call last): File "/tmp/tmpuhtu_he_/tmp4qrvuxjl.py", line 19, in <module> if checkTriangle(a, b, c): ^ NameError: name 'a' is not defined
s065697169
p00505
u346907393
1522138879
Python
Python3
py
Runtime Error
0
0
501
def checkTriangle(a, b, c): if a + b > c and a + c > b and b + c > a: return True return False def checkOct(a, b, c): a, b, c = [i * i for i in [a, b, c]] if a + b == c or a + c == b or b + c == a: return 0 elif c < a + b or b < a + c or a < b + c: return 1 else: ...
Traceback (most recent call last): File "/tmp/tmp_s_6y54c/tmpbm06luqd.py", line 17, in <module> a, b, c = map(int, input()) ^^^^^^^ EOFError: EOF when reading a line
s794692025
p00505
u346907393
1522139276
Python
Python3
py
Runtime Error
0
0
303
result = [0] * 3 while 1: a, b, c = sorted(list(map(int, input().split()))) if a + b > c: flag = c * c - b * b - a * a if flag == 0: result[0] += 1 elif flag > 0: result[1] += 1 else: result[2] += 1 print(sum(result), *result)
Traceback (most recent call last): File "/tmp/tmpduvnz7e5/tmp3pgm6eow.py", line 3, in <module> a, b, c = sorted(list(map(int, input().split()))) ^^^^^^^ EOFError: EOF when reading a line
s907101015
p00505
u346907393
1522139316
Python
Python3
py
Runtime Error
0
0
303
result = [0] * 3 while 1: a, b, c = sorted(list(map(int, input().split()))) if a + b > c: flag = c * c - b * b - a * a if flag == 0: result[0] += 1 elif flag > 0: result[1] += 1 else: result[2] += 1 print(sum(result), *result)
Traceback (most recent call last): File "/tmp/tmpws8j3ncw/tmpfec9n5_a.py", line 3, in <module> a, b, c = sorted(list(map(int, input().split()))) ^^^^^^^ EOFError: EOF when reading a line
s121923702
p00505
u346907393
1522139344
Python
Python3
py
Runtime Error
0
0
71
result = [0] * 3 while 1: a = input() #print(sum(result), *result)
Traceback (most recent call last): File "/tmp/tmpakfydxjo/tmpqex03ags.py", line 3, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s806572879
p00505
u346907393
1522139348
Python
Python3
py
Runtime Error
0
0
71
result = [0] * 3 while 1: a = input() #print(sum(result), *result)
Traceback (most recent call last): File "/tmp/tmp4ao0_c5g/tmp9qnn5dfw.py", line 3, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s099339134
p00505
u346907393
1522139358
Python
Python3
py
Runtime Error
0
0
71
result = [0] * 3 while 1: a = input() #print(sum(result), *result)
Traceback (most recent call last): File "/tmp/tmpxdkwayhu/tmp__yjjymm.py", line 3, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s751525035
p00505
u346907393
1522139405
Python
Python3
py
Runtime Error
0
0
71
result = [0] * 3 while 1: a = input() #print(sum(result), *result)
Traceback (most recent call last): File "/tmp/tmpp7f4qbap/tmpubelyu1j.py", line 3, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s014459241
p00505
u346907393
1522139490
Python
Python3
py
Runtime Error
0
0
303
result = [0] * 3 while 1: a, b, c = sorted(list(map(int, input().split()))) if a + b > c: flag = c * c - b * b - a * a if flag == 0: result[0] += 1 elif flag > 0: result[1] += 1 else: result[2] += 1 print(sum(result), *result)
Traceback (most recent call last): File "/tmp/tmpcyayd5on/tmpimwjqgc7.py", line 3, in <module> a, b, c = sorted(list(map(int, input().split()))) ^^^^^^^ EOFError: EOF when reading a line
s838784809
p00505
u346907393
1522139821
Python
Python3
py
Runtime Error
0
0
276
result = [0]*3 while True: a, b, c = sorted(map(int, input().split())) if a + b <= c: print(sum(result),*result) flag = a ** 2 + b ** 2 - c*c if flag == 0: result[0] +=1 elif flag >0: result[1] += 1 else: result[2] += 1
Traceback (most recent call last): File "/tmp/tmpvlowiag4/tmp916tgguf.py", line 3, in <module> a, b, c = sorted(map(int, input().split())) ^^^^^^^ EOFError: EOF when reading a line
s062899260
p00505
u346907393
1522139832
Python
Python3
py
Runtime Error
0
0
277
result = [0]*3 while True: a, b, c = sorted(map(int, input().split())) if a + b <= c: #print(sum(result),*result) flag = a ** 2 + b ** 2 - c*c if flag == 0: result[0] +=1 elif flag >0: result[1] += 1 else: result[2] += 1
File "/tmp/tmpoe5lh93x/tmp7kyt_9fm.py", line 6 flag = a ** 2 + b ** 2 - c*c ^ IndentationError: expected an indented block after 'if' statement on line 4
s482554150
p00505
u150984829
1524907031
Python
Python3
py
Runtime Error
0
0
158
r=a=o=0 while 1: l,m,n=sorted(list(map(int,input().split()))) if l+m<=n:break c=l*l+m*m-n*n if c>0:a+=1 elif c<0:o+=1 else:r+=1 print(sum(r,a,o),r,a,o)
Traceback (most recent call last): File "/tmp/tmp_jgpf4fv/tmpc76997u9.py", line 3, in <module> l,m,n=sorted(list(map(int,input().split()))) ^^^^^^^ EOFError: EOF when reading a line
s961556581
p00505
u742505495
1525161905
Python
Python3
py
Runtime Error
0
0
283
a,b,c,d = 0,0,0,0 while 1: lng=list(int(input().split())) lng.sort() if lng[0] + lng[1] <= lng[2]: print('%d %d %d %d' % (a,b,c,d)) break else: a += 1 if lng[0]**2 + lng[1]**2 == lng[2]**2: b += 1 elif lng[0]**2 + lng[1]**2 >= lng[2]**2: d += 1 else: c += 1
Traceback (most recent call last): File "/tmp/tmpnzibobmz/tmpx4d8r32r.py", line 3, in <module> lng=list(int(input().split())) ^^^^^^^ EOFError: EOF when reading a line
s901300024
p00505
u126478680
1527366341
Python
Python3
py
Runtime Error
0
0
747
import sys from enum import Enum, auto class Triangle(Enum): NOTRIANGLE = 0 ACUTE = 1 RIGHT = 2 OBTUSE = 3 def triangle_check(a, b, c): e1, e2, e3 = sorted([a, b, c], reverse=True) if e1 <= 0 or e2 <= 0 or e3 <= 0: return Triangle.NOTRIANGLE if e1 < e2 + e3: return Triangle.NOTRIANGLE ...
s523440060
p00505
u126478680
1527366374
Python
Python3
py
Runtime Error
0
0
752
import sys from enum import Enum, auto class Triangle(Enum): NOTRIANGLE = 0 ACUTE = 1 RIGHT = 2 OBTUSE = 3 def triangle_check(a, b, c): e1, e2, e3 = sorted([a, b, c], reverse=True) if e1 <= 0 or e2 <= 0 or e3 <= 0: return Triangle.NOTRIANGLE if e1 < e2 + e3: return Triangle.NOTRIANGLE ...
s983414582
p00505
u717754242
1528951760
Python
Python3
py
Runtime Error
0
0
496
import numpy import re import math def main(): """ テストコード実行 :return: """ tri = acu = obt = rig = 0 while True: a, b, c = sorted(map(int, input().split()), reverse=True) if abs(b - c) < a < b + c: tri += 1 if (b ** 2 + c ** 2 - a ** 2) > 0: acu += 1 elif (b ** 2 + c ** 2 - a ** 2) == 0: rig += 1 e...
Traceback (most recent call last): File "/tmp/tmpeglpov1g/tmpp81lfhgq.py", line 22, in <module> main() File "/tmp/tmpeglpov1g/tmpp81lfhgq.py", line 12, in main a, b, c = sorted(map(int, input().split()), reverse=True) ^^^^^^^ EOFError: EOF when reading a line
s686588843
p00505
u872428181
1529465587
Python
Python3
py
Runtime Error
0
0
592
sankaku = 0 tyokkaku = 0 eikaku = 0 donkaku = 0 inputed_line = input() data_str = inputed_line.split(' ') data = [int(i) for i in data_str] while True: if data[-1] < data[0] + data[1]: sankaku += 1 if data[-1] ** 2 == data[0] ** 2 + data[1] ** 2: tyokkaku += 1 elif data[-1] *...
File "/tmp/tmpk2mwqyqj/tmpdp56a583.py", line 11 if data[-1] ** 2 == data[0] ** 2 + data[1] ** 2: ^ IndentationError: unindent does not match any outer indentation level
s269309774
p00505
u872428181
1529465684
Python
Python3
py
Runtime Error
0
0
620
sankaku = 0 tyokkaku = 0 eikaku = 0 donkaku = 0 while True: inputed_line = input() data_str = inputed_line.split(' ') data = [int(i) for i in data_str] data.sort() if data[-1] < data[0] + data[1]: sankaku += 1 if data[-1] ** 2 == data[0] ** 2 + data[1] ** 2: tyokkaku ...
File "/tmp/tmpnslogr0g/tmpbj317yrx.py", line 12 if data[-1] ** 2 == data[0] ** 2 + data[1] ** 2: ^ IndentationError: unindent does not match any outer indentation level
s348482076
p00505
u872428181
1529465887
Python
Python3
py
Runtime Error
0
0
616
sankaku = 0 tyokkaku = 0 eikaku = 0 donkaku = 0 while True: inputed_line = input() data_str = inputed_line.split(' ') data = [int(i) for i in data_str] data.sort() if data[-1] < data[0] + data[1]: sankaku += 1 if data[-1] ** 2 == data[0] ** 2 + data[1] ** 2: tyokkaku += 1...
Traceback (most recent call last): File "/tmp/tmpxgbeuu8x/tmp4_g2b_d2.py", line 6, in <module> inputed_line = input() ^^^^^^^ EOFError: EOF when reading a line
s207296169
p00505
u596145152
1530373794
Python
Python
py
Runtime Error
0
0
959
A =[] while True: try: A.append(sorted(list(map(int,input().split())),reverse=True)) except: break #または、quit(),os.exit()をして止める。 def triangle_types(X): print(X) num_of_acute = 0 num_of_right = 0 num_of_obtuse = 0 num_of_normal = 0 for i in range(len(X)): ...
[]
s667322025
p00505
u596145152
1530374058
Python
Python
py
Runtime Error
0
0
959
A =[] while True: try: A.append(sorted(list(map(int,input().split())),reverse=True)) except: break #または、quit(),os.exit()をして止める。 def triangle_types(X): print(X) num_of_acute = 0 num_of_right = 0 num_of_obtuse = 0 num_of_normal = 0 for i in range(len(X)): ...
[]
s825538093
p00505
u596145152
1530408287
Python
Python
py
Runtime Error
0
0
1124
A =[] while True: try: A.append(sorted(list(map(int,input().split())),reverse=True)) except: break #または、quit(),os.exit()をして止める。 def triangle_types(X): print(X) num_of_acute = 0 num_of_right = 0 num_of_obtuse = 0 num_of_normal = 0 for i in range(len(X)): ...
[] 0 0 0 0
s483598771
p00506
u546285759
1490677915
Python
Python3
py
Runtime Error
0
0
426
n = int(input()) values = list(map(int, input().split())) minv = min(vs)+1 print(1) i = 2 ng_value = [1]*minv while i < minv: if not 0 in [1 if values[k] % i == 0 else 0 for k in range(n)]: print(i) else: for j in range(i, minv, i): ng_value[j] = 0 b = True for j in range(i+1...
Traceback (most recent call last): File "/tmp/tmpo22ia343/tmpoumhcirb.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s056677593
p00506
u110280195
1522410303
Python
Python3
py
Runtime Error
70
5600
195
if __name__ == '__main__' : n = int(input()) a,b = [int(i) for i in input().split(" ")] for i in range(1,min(a,b)+1): if((a % i == 0) and (b % i == 0)): print(i)
Traceback (most recent call last): File "/tmp/tmp03d_sc7a/tmpl8an__pv.py", line 2, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s637477260
p00506
u269391636
1523285442
Python
Python3
py
Runtime Error
0
0
468
def gcd(x,y): if x % y: return(c(y,x%y)) else: return(y) def n = int(input()) lis = list(map(int, input().split())) if n == 2: a, b = lis[0],lis[1] an = gcd(a,b) else: a, b ,c = lis[0],lis[1], lis[2] an = gcd(gcd(a,b),c) anlis = [an] while(True): for i in range(2,an+1): if an % i == 0: ...
File "/tmp/tmp_07bbsb9/tmpzale3epe.py", line 7 def ^ SyntaxError: invalid syntax
s688331041
p00506
u150984829
1524922665
Python
Python3
py
Runtime Error
0
0
204
input() n=sorted(list(map(int,input().split()))) m=n[0] a={} for x in range(1,int(m**.5)+1): if m%x==0:a|={x,m//x} for c in sorted(list(a)): for k in n[1:]: if k%c:break else:print(c)
Traceback (most recent call last): File "/tmp/tmpy4vmu7h5/tmp6qkq2kwa.py", line 1, in <module> input() EOFError: EOF when reading a line
s235275616
p00507
u898097781
1518748126
Python
Python3
py
Runtime Error
0
0
233
import sys inputs = sys.stdin.readlines() datum = [] for i, x in enumerate(inputs[1:]): for y in inputs[i+2:]: datum.append(int('{}{}'.format(x, y))) datum.append(int('{}{}'.format(y, x))) print sorted(datum)[2]
File "/tmp/tmpul2vxjhd/tmpicpdmlm5.py", line 9 print sorted(datum)[2] ^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s789659567
p00507
u898097781
1518748521
Python
Python3
py
Runtime Error
0
0
233
import sys inputs = sys.stdin.readlines() datum = [] for i, x in enumerate(inputs[1:]): for y in inputs[i+2:]: datum.append(int('{}{}'.format(x, y))) datum.append(int('{}{}'.format(y, x))) print sorted(datum)[2]
File "/tmp/tmph1ps4lns/tmpwi25m68f.py", line 9 print sorted(datum)[2] ^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s409428017
p00507
u898097781
1518748521
Python
Python3
py
Runtime Error
0
0
233
import sys inputs = sys.stdin.readlines() datum = [] for i, x in enumerate(inputs[1:]): for y in inputs[i+2:]: datum.append(int('{}{}'.format(x, y))) datum.append(int('{}{}'.format(y, x))) print sorted(datum)[2]
File "/tmp/tmpn74zpgwr/tmpxe42wpu4.py", line 9 print sorted(datum)[2] ^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s981312621
p00507
u234387950
1519109903
Python
Python3
py
Runtime Error
13940
7996
423
order = 0 nums = [] g_len = int(input()) for i in range(g_len): nums.append(input()) str_list = [] for i in range((g_len)): for j in range((g_len)): if i != j: this = int(nums[i]+nums[j]) str_list.append(this) x = [] c =0 for t in str_list: c += 1 if c > 3...
Traceback (most recent call last): File "/tmp/tmpv8shpnlo/tmp3s0eef0x.py", line 3, in <module> g_len = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s599428635
p00507
u859637829
1519319489
Python
Python3
py
Runtime Error
930
5720
550
def get_n(): return int(input()) def get_ns(): return [int(a) for a in input().split()] import math def main(): n = get_n() ns = sorted(set([get_n() for _ in range(n)])) top3 = [9999999999,9999999999,9999999999] for i,a in enumerate(ns): for j,b in enumerate(ns): if i==j: ...
Traceback (most recent call last): File "/tmp/tmpt8i3_1l5/tmpbdhiw3ks.py", line 25, in <module> main() File "/tmp/tmpt8i3_1l5/tmpbdhiw3ks.py", line 7, in main n = get_n() ^^^^^^^ File "/tmp/tmpt8i3_1l5/tmpbdhiw3ks.py", line 2, in get_n return int(input()) ^^^^^^^ EOFError: EOF w...
s459615159
p00507
u273843182
1521347560
Python
Python3
py
Runtime Error
0
0
187
import itertools n = int(input()) a = sorted([int(input()) for i in range(n)])[:4] b = [] for c,d in intertools.permutations(a,2): b += [c * 10**len(str(d)) + d] print(sorted(b)[2])
Traceback (most recent call last): File "/tmp/tmpk1x8hum0/tmpakde176s.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s908138922
p00507
u269391636
1523269709
Python
Python3
py
Runtime Error
0
0
195
n = input() a = [] for i in range(n): a.append(input()) a = a.sort()[:3] b = [] for i in [0,1,2]: for j in [0,1,2]: if i != j: b.append(int(str(a[i] + a[j]))) b.sort() return(b[2])
File "/tmp/tmpsiou9ak7/tmpntzaubie.py", line 12 return(b[2]) ^^^^^^^^^^^^ SyntaxError: 'return' outside function
s515980748
p00507
u269391636
1523270024
Python
Python
py
Runtime Error
0
0
194
n = input() a = [] for i in range(n): a.append(input()) a = a.sort()[:3] b = [] for i in [0,1,2]: for j in [0,1,2]: if i != j: b.append(int(str(a[i] + a[j]))) b.sort() print(b[2])
Traceback (most recent call last): File "/tmp/tmpalx2nme1/tmps169r3i8.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s932623829
p00507
u269391636
1523270084
Python
Python3
py
Runtime Error
0
0
205
n = int(input()) a = [] for i in range(n): a.append(int(input())) a = a.sort()[:3] b = [] for i in [0,1,2]: for j in [0,1,2]: if i != j: b.append(int(str(a[i] + a[j]))) b.sort() print(b[2])
Traceback (most recent call last): File "/tmp/tmp5xbc9ggs/tmp8dev1pb0.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s120695585
p00507
u269391636
1523270146
Python
Python3
py
Runtime Error
0
0
211
n = int(input()) a = [] for i in range(n): a.append(int(input())) a = a.sort() a = a[:3] b = [] for i in [0,1,2]: for j in [0,1,2]: if i != j: b.append(int(str(a[i] + a[j]))) b.sort() print(b[2])
Traceback (most recent call last): File "/tmp/tmp9zdm_gz8/tmp9d8tfjue.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s476448816
p00507
u150984829
1524909120
Python
Python3
py
Runtime Error
0
0
161
a=sorted([int(input())for _ in[0]*int(input())])[:4] b=[] for i in range(3): for d in a[i:4]: c=a[i] b+=[c*10**len(d)+d,d*10**len(c)+c] print(sorted(b)[2])
Traceback (most recent call last): File "/tmp/tmp5mhbo66h/tmpr05nbcag.py", line 1, in <module> a=sorted([int(input())for _ in[0]*int(input())])[:4] ^^^^^^^ EOFError: EOF when reading a line
s372457940
p00507
u104911888
1367975383
Python
Python
py
Runtime Error
20000
144296
798
def permutations(iterable, r=None): pool = tuple(iterable) n = len(pool) r = n if r is None else r if r > n: return indices = range(n) cycles = range(n, n-r, -1) yield tuple(pool[i] for i in indices[:r]) while n: for i in reversed(range(r)): cycles[i] -= 1 ...
File "/tmp/tmp2qjwoddy/tmp8l5jdzbv.py", line 29 print sorted(S)[2] ^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s801927325
p00507
u104911888
1367975810
Python
Python
py
Runtime Error
20000
5040
842
def permutations(iterable, r=None): pool = tuple(iterable) n = len(pool) r = n if r is None else r if r > n: return indices = range(n) cycles = range(n, n-r, -1) yield tuple(pool[i] for i in indices[:r]) while n: for i in reversed(range(r)): cycles[i] -= 1 ...
File "/tmp/tmpadpyf0eb/tmpdnij_m17.py", line 30 print S[2] ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s525296473
p00507
u104911888
1367975927
Python
Python
py
Runtime Error
20000
4924
197
import itertools L=[input() for i in range(input())] S=[1000000000,1000000000,1000000000] for i in itertools.permutations(L,2): S.append(int("".join(map(str,i)))) S=sorted(S)[:3] print S[2]
File "/tmp/tmpfedayk21/tmp_jrm8up2.py", line 7 print S[2] ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s987994495
p00508
u324811972
1531905113
Python
Python3
py
Runtime Error
0
0
460
n = input() i = 0 pointList = [] while(i<n): point0 = input().split() point = [int(point0[0]),int(point0[1])] pointList.append(point) i+=1 dist = 0 minX_diff = 2000000 minY_diff = 20000000 for i,point1 in enumerate(pointList): for j,point2 in enumerate(pointList): if(i!=j): x_diff = abs(point1[0] - point2[0])...
Traceback (most recent call last): File "/tmp/tmp0ggnkxka/tmplyvhqo2_.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s574769248
p00508
u324811972
1531905124
Python
Python3
py
Runtime Error
0
0
460
n = input() i = 0 pointList = [] while(i<n): point0 = input().split() point = [int(point0[0]),int(point0[1])] pointList.append(point) i+=1 dist = 0 minX_diff = 2000000 minY_diff = 20000000 for i,point1 in enumerate(pointList): for j,point2 in enumerate(pointList): if(i!=j): x_diff = abs(point1[0] - point2[0])...
Traceback (most recent call last): File "/tmp/tmpfcqmi497/tmp1sxbmp9i.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s334533766
p00508
u324811972
1531905194
Python
Python3
py
Runtime Error
0
0
477
n = input() i = 0 pointList = [] while(i<n): point0 = input().split() point = [int(point0[0]),int(point0[1])] pointList.append(point) i+=1 dist = 0 print(dist,'\n') minX_diff = 2000000 minY_diff = 20000000 for i,point1 in enumerate(pointList): for j,point2 in enumerate(pointList): if(i!=j): x_diff = abs(point...
Traceback (most recent call last): File "/tmp/tmpxwp7v3yx/tmpzr7p1ub6.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line