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
s186732572
p00591
u662126750
1497282883
Python
Python3
py
Runtime Error
0
0
624
# coding: utf-8 import numpy as np while True: n = int(input()) flag=0 if n==0: break map = [[0 for i in range(100)] for j in range(100)] a = [[int(i) for i in input().split()] for i in range(n)] np.array(a) maxar = (np.argmax(a, axis = 0))#(X, 0.1.2)????????§ minar = (np.argmin(a, axis ...
Traceback (most recent call last): File "/tmp/tmpjt1cxbqr/tmpdhjonyv8.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s957691113
p00591
u590037228
1393939933
Python
Python
py
Runtime Error
0
0
527
#-*- coding:utf-8 -*- while 1: n = int(raw_input()) if not n: break length = n*n columns = [] for i in range(n): columns.append([]) rows = [0]*(length) #列の最小値となっている数 for i in range(n): row = [int(r) for r in raw_input().split(" ")] rows[min(row)] = 1 ...
File "/tmp/tmpv3g35nor/tmp6pfz8r34.py", line 24 print result ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s454582930
p00591
u590037228
1393940086
Python
Python
py
Runtime Error
0
0
529
#-*- coding:utf-8 -*- while 1: n = int(raw_input()) if not n: break length = n*n+1 columns = [] for i in range(n): columns.append([]) rows = [0]*(length) #列の最小値となっている数 for i in range(n): row = [int(r) for r in raw_input().split(" ")] rows[min(row)] = 1 ...
File "/tmp/tmpbw7hw3pz/tmpppv6emh_.py", line 24 print result ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s034037482
p00591
u590037228
1393983220
Python
Python
py
Runtime Error
0
0
529
#-*- coding:utf-8 -*- while 1: n = int(raw_input()) if not n: break length = n*n+1 columns = [] for i in range(n): columns.append([]) rows = [0]*(length) #列の最小値となっている数 for i in range(n): row = [int(r) for r in raw_input().split(" ")] rows[min(row)] = 1 ...
File "/tmp/tmpz5l215eo/tmp54khkony.py", line 24 print result ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s559331828
p00591
u633068244
1397011250
Python
Python
py
Runtime Error
0
0
211
while 1: n=input() if n==0:break s=[map(int,raw_input().split()) for i in range(n)] sh=set([min(s[i]) for i in range(n)]) tl=set([max([s[j][i] for j in range(n)]) for i in range(n)]) print list(sh&tl)[0]
File "/tmp/tmphlf9v0vi/tmpe4c3t4cv.py", line 7 print list(sh&tl)[0] ^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s103172098
p00591
u633068244
1397011305
Python
Python
py
Runtime Error
0
0
209
while 1: n=input() if n==0:break s=[map(int,raw_input().split()) for i in range(n)] sh=set([min(s[i]) for i in range(n)]) tl=set([max([s[j][i] for j in range(n)]) for i in range(n)]) print list(sh&tl)[0]
File "/tmp/tmpbwf3lugl/tmp57u27i8d.py", line 7 print list(sh&tl)[0] ^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s813561906
p00592
u703196441
1418468914
Python
Python
py
Runtime Error
0
0
310
def cv(t): return t/100*60+t%100 while 1: n=input(); p=input(); q=input() if n==0: break v=[0]*1440 for i in range(n): k=input() for j in range(k): a=input(); b=input(); for l in range(cv(a),cv(b)): v[l]+=1 m=c=0 for i in range(cv(p),cv(q)): c=c+1 if v[i]<n else 0 m=max(m,c) print m
File "/tmp/tmpnrg0s8jq/tmpxj9bkoc7.py", line 18 print m ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s011848005
p00592
u221679506
1467938953
Python
Python3
py
Runtime Error
0
0
706
while True: n,s,e = input().split() n = int(n) s = int(s) e = int (e) if not n+s+e: break s = s//100*60+s%100 e = e//100*60+e%100 t = [0]*60*24 for i in range(n): m = int(input()) for j in range(m): ss,ee = input().split() ss = int(...
Traceback (most recent call last): File "/tmp/tmp5a7jx_q8/tmprdtrwdj_.py", line 2, in <module> n,s,e = input().split() ^^^^^^^ EOFError: EOF when reading a line
s394619834
p00592
u221679506
1467939278
Python
Python3
py
Runtime Error
0
0
702
while True: a,b,c = input().split() n = int(a) s = int(b) e = int (c) if not n+s+e: break s = s//100*60+s%100 e = e//100*60+e%100 t = [0]*60*24 for i in range(n): m = int(input()) for j in range(m): a,b = input().split() ss = int(a)...
Traceback (most recent call last): File "/tmp/tmpnfe5l918/tmpph3t5y36.py", line 2, in <module> a,b,c = input().split() ^^^^^^^ EOFError: EOF when reading a line
s081585307
p00592
u221679506
1467939491
Python
Python3
py
Runtime Error
0
0
701
while True: a,b,c = input().split() n = int(a) s = int(b) e = int (c) if not n+s+e: break s = s//100*60+s%100 e = e//100*60+e%100 t = [0]*60*24 for i in range(n): m = int(input()) for j in range(m): a,b = input().split() ss = int(a)...
Traceback (most recent call last): File "/tmp/tmpj7biciyb/tmpoz9gbqkh.py", line 2, in <module> a,b,c = input().split() ^^^^^^^ EOFError: EOF when reading a line
s163785913
p00592
u221679506
1467939831
Python
Python3
py
Runtime Error
0
0
732
while True: n,s,e = input().split() n = int(n) s = int(s) e = int (e) if not n+s+e: break s = s//100*60+s%100 e = e//100*60+e%100 t = [0]*60*24 for i in range(n): m = int(input()) for j in range(m): ss,ee = input().split() ss = int(...
Traceback (most recent call last): File "/tmp/tmp8cw5ixic/tmpzi2cxdln.py", line 2, in <module> n,s,e = input().split() ^^^^^^^ EOFError: EOF when reading a line
s747701083
p00592
u221679506
1467939844
Python
Python3
py
Runtime Error
0
0
727
while True: n,s,e = input().split() n = int(n) s = int(s) e = int (e) if not n+s+e: break s = s//100*60+s%100 e = e//100*60+e%100 t = [0]*60*24 for i in range(n): m = int(input()) for j in range(m): ss,ee = input().split() ss = int(...
Traceback (most recent call last): File "/tmp/tmpcve7404p/tmp6otsdns3.py", line 2, in <module> n,s,e = input().split() ^^^^^^^ EOFError: EOF when reading a line
s114378346
p00592
u221679506
1467939957
Python
Python3
py
Runtime Error
0
0
735
while True: n,s,e = input().split() n = int(n) s = int(s) e = int (e) if not n+s+e: break s = (s//100)*60+s%100 e = (e//100)*60+e%100 t = [0]*60*24 for i in range(n): m = int(input()) for j in range(m): ss,ee = input().split() ss = ...
Traceback (most recent call last): File "/tmp/tmpqxlllmfv/tmpawqubaed.py", line 2, in <module> n,s,e = input().split() ^^^^^^^ EOFError: EOF when reading a line
s999395515
p00592
u797673668
1492411414
Python
Python3
py
Runtime Error
0
0
2040
from queue import deque def to_tv_times(cm_times): if cm_times[0] <= p: cm_times.popleft() else: cm_times.appendleft(p) if cm_times[-1] >= q: cm_times.pop() else: cm_times.append(q) return cm_times def to_minute(hhmm): return hhmm // 100 * 60 + hhmm % 100 wh...
Traceback (most recent call last): File "/tmp/tmp1eo053q6/tmp87r0k__d.py", line 21, in <module> n, p, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s762266937
p00592
u590037228
1393988460
Python
Python
py
Runtime Error
0
0
1612
#-*- coding:utf-8 -*- #入力数値を分単位に変更 def convert_time(n): return (n/100)*60 + n%100 #コマーシャルの共通部分を返す def kyotsu(cm1,cm2): result = [] for i in range(len(cm2)/2): #cm2の各CMとかぶっている部分を取得 for j in range(len(cm1)/2): st = max(cm2[i*2],cm1[j*2]) ed = min(cm2[i*2+1],cm1[j*2+1]...
File "/tmp/tmphwxy4at4/tmp3me4crtp.py", line 54 print max([cms[i*2+1]-cms[i*2] for i in range(len(cms)/2)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s819489705
p00592
u590037228
1393990765
Python
Python
py
Runtime Error
0
0
1612
#-*- coding:utf-8 -*- #入力数値を分単位に変更 def convert_time(n): return (n/100)*60 + n%100 #コマーシャルの共通部分を返す def kyotsu(cm1,cm2): result = [] for i in range(len(cm2)/2): #cm2の各CMとかぶっている部分を取得 for j in range(len(cm1)/2): st = max(cm2[i*2],cm1[j*2]) ed = min(cm2[i*2+1],cm1[j*2+1]...
File "/tmp/tmpr9dswsh6/tmpk_ugn0jq.py", line 54 print max([cms[i*2+1]-cms[i*2] for i in range(len(cms)/2)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s483036261
p00592
u590037228
1393991437
Python
Python
py
Runtime Error
0
0
1615
#-*- coding:utf-8 -*- #入力数値を分単位に変更 def convert_time(n): return (n/100)*60 + n%100 #コマーシャルの共通部分を返す def kyotsu(cm1,cm2): result = [] for i in range(len(cm2)/2): #cm2の各CMとかぶっている部分を取得 for j in range(len(cm1)/2): st = max(cm2[i*2],cm1[j*2]) ed = min(cm2[i*2+1],cm1[j*2+1]...
File "/tmp/tmpe5znfa0s/tmpu2zuxq1v.py", line 54 print max([cms[i*2+1]-cms[i*2] for i in range(len(cms)/2)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s168107122
p00594
u972901560
1499240580
Python
Python3
py
Runtime Error
0
0
345
while 1: nums = int(input()) if nums != 0: stars = list(map(int,input().split())) cnt = [0 for i in range((2*31)-1)] for x in stars: cnt[x] += 1 m = max(cnt) if m > nums/2: res = cnt.index(m) print(res) else: print("...
Traceback (most recent call last): File "/tmp/tmpj08fystb/tmp7pyig264.py", line 2, in <module> nums = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s202766969
p00594
u742505495
1513244875
Python
Python3
py
Runtime Error
0
0
292
while 1: size_a=int(input()) if size_a==0: break a = list(int(input().split())) check = [] cond=0 for i in range(size_a): if a[i] in check: pass elif a.count(a[i]) > int(size_a/2): print(a[i]) cond=1 break else: check.append(a[i]) if cond==0: print('NO COLOR')
Traceback (most recent call last): File "/tmp/tmpbhkrd5rr/tmpmpdiml4b.py", line 2, in <module> size_a=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s601044163
p00594
u742505495
1513244975
Python
Python3
py
Runtime Error
0
0
296
while 1: size_a=int(input()) if size_a==0: break a = list(map(int,input().split())) check = [] cond=0 for i in range(size_a): if a[i] in check: pass elif a.count(a[i]) > int(size_a/2): print(a[i]) cond=1 break else: check.append(a[i]) if cond==0: print('NO COLOR')
Traceback (most recent call last): File "/tmp/tmpraq0fldy/tmpfao0ow0n.py", line 2, in <module> size_a=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s835013680
p00594
u009288816
1520082234
Python
Python3
py
Runtime Error
0
0
604
import sys def count(i,data): res = 0 for x in data: if(x == i): res += 1 return res def print_color(size,data): data = sorted(data) for i in data: if(count(i,data) > int(size / 2)): print(i) return print("NO COLOR") l = [] for i in sys.stdi...
s361942866
p00594
u009288816
1520082393
Python
Python3
py
Runtime Error
0
0
604
import sys def count(i,data): res = 0 for x in data: if(x == i): res += 1 return res def print_color(size,data): data = sorted(data) for i in data: if(count(i,data) > int(size / 2)): print(i) return print("NO COLOR") l = [] for i in sys.stdi...
s222647014
p00594
u009288816
1521975183
Python
Python3
py
Runtime Error
0
0
659
import sys def count(i,data): res = 0 for x in data: if(x == i): res += 1 return res def print_color(size,data): data = sorted(data) for i in data: if(count(i,data) > int(size / 2)): print(i) return print("NO COLOR") l = [] for i in sys.stdi...
s734638488
p00594
u575065019
1345574607
Python
Python
py
Runtime Error
0
1008
377
ans = [] while True: n = input() n2 = n / 2 if n == 0: break lst = [0] * n col = map(int,raw_input().split()) for i in col: lst[i] += 1 flag = 0 for i in lst: if i > n2: flag = 1 ans.append(lst.index(i)) break if flag == 0: ...
File "/tmp/tmp3elwo3w5/tmpekrimwxg.py", line 21 print i ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s212879718
p00594
u104911888
1371009010
Python
Python
py
Runtime Error
20000
104172
207
while True: n=input() if n==0:break A=map(int,raw_input().split()) S=set(A) for c in S: if A.count(c)>n/2: print c break else: print "NO COLOR"
File "/tmp/tmpo2bknxiw/tmpfe5egjwc.py", line 8 print c ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s620224625
p00594
u633068244
1394198244
Python
Python
py
Runtime Error
0
0
268
while True: n = int(raw_input()) a = [] for i in range(n): a.append(int(raw_input()) b = list(set(a)) flag = 0 for i in b: if a.count(i) > n/2.0: ans = i flag = 1 print ans if flag = 1 else "NO COLOR"
File "/tmp/tmpo2ipm_8u/tmpatghtmem.py", line 5 a.append(int(raw_input()) ^ SyntaxError: '(' was never closed
s929520845
p00594
u633068244
1394198317
Python
Python
py
Runtime Error
0
0
285
while True: n = int(raw_input()) if n == 0: break a = map(int, raw_input().split()) b = list(set(a)) flag = 0 for i in b: if a.count(i) > n/2.0: ans = i flag = 1 break print ans if flag = 1 else "NO COLOR"
File "/tmp/tmpt1nyfy8c/tmpc0sb2p3r.py", line 13 print ans if flag = 1 else "NO COLOR" ^^^^^^^^^^^ SyntaxError: expected 'else' after 'if' expression
s716719312
p00595
u546285759
1484024495
Python
Python3
py
Runtime Error
0
0
132
from math import gcd while True: try: a, b= map(int, input().split()) print(gcd(a, b)) except: break
s455215084
p00596
u943441430
1545208650
Python
Python
py
Runtime Error
0
0
745
import sys import numpy as np def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) #print(xy) dominos = [[1 if [x, y] in xy or [y, x] in xy else 0 for x in range(0, 7)] for y in range(0, 7)] #print(dominos) return (dominos) l...
s393533563
p00596
u943441430
1545208708
Python
Python
py
Runtime Error
0
0
745
import sys import numpy as np def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) #print(xy) dominos = [[1 if [x, y] in xy or [y, x] in xy else 0 for x in range(0, 7)] for y in range(0, 7)] #print(dominos) return (dominos) l...
s551318911
p00596
u943441430
1545268446
Python
Python
py
Runtime Error
0
0
1124
import sys import numpy as np from functools import reduce def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in range(0, 7)] ...
s785025797
p00596
u943441430
1545268581
Python
Python
py
Runtime Error
0
0
1124
import sys import numpy as np from functools import reduce def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in range(0, 7)] ...
s801142526
p00596
u943441430
1545268591
Python
Python
py
Runtime Error
0
0
1124
import sys import numpy as np from functools import reduce def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in range(0, 7)] ...
s726722989
p00596
u943441430
1545268680
Python
Python
py
Runtime Error
0
0
1322
import sys import numpy as np from functools import reduce def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) #print(xy) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in...
Traceback (most recent call last): File "/tmp/tmpsqtk3ho9/tmpxcjbtl2s.py", line 29, in <module> f = open("python\input_1010.txt") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'python\\input_1010.txt'
s606874424
p00596
u943441430
1545268740
Python
Python3
py
Runtime Error
0
0
1322
import sys import numpy as np from functools import reduce def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) #print(xy) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in...
Traceback (most recent call last): File "/tmp/tmpzw1heisw/tmp4agih2bo.py", line 29, in <module> f = open("python\input_1010.txt") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'python\\input_1010.txt'
s543029351
p00596
u943441430
1545268815
Python
Python3
py
Runtime Error
0
0
1239
import sys import numpy as np from functools import reduce def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) #print(xy) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in...
s687494091
p00596
u943441430
1545268980
Python
Python3
py
Runtime Error
0
0
1110
import sys import numpy as np from functools import reduce def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in range(0, 7)] ...
s132880654
p00596
u943441430
1545269102
Python
Python3
py
Runtime Error
0
0
1110
import sys import numpy as np from functools import reduce def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in range(0, 7)] ...
s487286880
p00596
u943441430
1545270929
Python
Python3
py
Runtime Error
0
0
1649
import sys from functools import reduce def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) #print(xy) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in range(0, 7)] ...
s043522108
p00596
u943441430
1545271000
Python
Python3
py
Runtime Error
0
0
1612
import sys from functools import reduce def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in range(0, 7)] digits = list(...
s487709855
p00596
u943441430
1545271050
Python
Python3
py
Runtime Error
0
0
1612
import sys from functools import reduce def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in range(0, 7)] digits = list(...
s628362447
p00596
u943441430
1545271519
Python
Python3
py
Runtime Error
0
0
1615
import sys def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in range(0, 7)] digits = [] for i in xy: digits.e...
s359806190
p00596
u943441430
1545271576
Python
Python3
py
Runtime Error
0
0
1549
import sys def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in range(0, 7)] digits = [] for i in xy: digits.e...
s107731743
p00596
u943441430
1545271794
Python
Python
py
Runtime Error
0
0
1549
import sys def subset(line): l = line.strip().split(" ") a = list(map(int, l)) xy = list(map(lambda x: [x // 10, x % 10], a)) dominos = [[1 if x != y and ([x, y] in xy or [y, x] in xy) else 0 \ for x in range(0, 7)] for y in range(0, 7)] digits = [] for i in xy: digits.e...
s097512465
p00598
u943441430
1545295433
Python
Python3
py
Runtime Error
0
0
2403
import sys def rpn(str): r = [] stack = [] for i in range(0, len(str)): c = str[i] if c in "idsu": while len(stack) > 0: if stack[-1] in "idsuc": a = stack.pop() r.extend(a) else: break ...
s848190602
p00598
u104911888
1369183921
Python
Python
py
Runtime Error
0
0
1308
def convertC(r): s="" i=0 stack=[] while i<len(r): if r[i]=="c": if "A"<=r[i+1]<="E": s+="(U-"+r[i+1]+")" i+=2 elif r[i+1]=="(": s+="(U-"+r[i+1] stack.append(r[i+1]) j=2 while ...
File "/tmp/tmpnj4d4vmf/tmpsmw85cqi.py", line 14 while stack<>[]: ^^ SyntaxError: invalid syntax
s863436994
p00603
u262566745
1509329745
Python
Python3
py
Runtime Error
0
0
666
from collections import deque import sys def suffle(deck, c): l = len(deck) if l % 2 == 0: mid = l//2 else: mid = (l-1)//2 deckA = deck[mid:] deckB = deck[:mid] deckC = [] while(len(deckA) != 0 or len(deckB) != 0): deckC.extend(deckA[:c]) deckA = deckA[c:] deck...
Traceback (most recent call last): File "/tmp/tmpyjqh790u/tmp2fih50os.py", line 23, in <module> n, r = map(int, sys.stdin.readline()[:-1].split()) ^^^^ ValueError: not enough values to unpack (expected 2, got 0)
s122002754
p00604
u454358619
1378255079
Python
Python
py
Runtime Error
0
0
348
import sys def solve(): while True: try: n = input() except EOFError: break d = sorted(map(int,raw_input().split())) for i in range(1,n): d[i] += d[i-1] print sum(d) if __name__ == "__main__": ...
File "/tmp/tmpxo0ir3es/tmpr78nd_wp.py", line 14 print sum(d) ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s507418627
p00605
u073437081
1468998578
Python
Python3
py
Runtime Error
0
0
403
import numpy as np while True: N, K = [int(n) for n in input().split()] if (N == 0 and K == 0): quit() fridge = np.array([int(n) for n in input().split()]) vampires = [] for x in range(N): blood = np.array([int(n) for n in input().split()]) fridge -= blood if len([n ...
Traceback (most recent call last): File "/tmp/tmph92t4hei/tmpjyadzo7v.py", line 4, in <module> N, K = [int(n) for n in input().split()] ^^^^^^^ EOFError: EOF when reading a line
s345153840
p00605
u575065019
1345567168
Python
Python
py
Runtime Error
0
1008
578
ans = [] while True: tmp = raw_input() if tmp =='0 0': break tmp = tmp.split() n = int(tmp[0]) m = int(tmp[1]) p = 0 blood = raw_input().split() for i in range(m): blood[i] = int(blood[i]) flag = 0 while p != n: if flag == 1: break tmp ...
File "/tmp/tmph4ub4rg0/tmpd_zfdjmp.py", line 28 print i ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s306349446
p00605
u575065019
1345567785
Python
Python
py
Runtime Error
0
1008
579
ans = [] while True: tmp = raw_input() if tmp =='0 0': break tmp = tmp.split() n = int(tmp[0]) m = int(tmp[1]) p = 0 blood = raw_input().split() for i in range(m): blood[i] = int(blood[i]) flag = 0 while p != n: if flag == 1: break tmp ...
File "/tmp/tmph3yqckah/tmpo4xzqkuf.py", line 29 print i ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s383491993
p00605
u633068244
1398062959
Python
Python
py
Runtime Error
0
0
249
while 1: N,K = map(int,raw_input().split()) if N == 0: break S = map(int,raw_input().split()) for j in range(N): B = map(int,raw_input().split()) for i in range(K): S[i] -= B[i] if min(S) < 0: break print "Yes" if min(S) >= 0 else "No"
File "/tmp/tmpwisyme9a/tmpysvr3pxe.py", line 10 print "Yes" if min(S) >= 0 else "No" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s136968048
p00605
u633068244
1398062999
Python
Python
py
Runtime Error
0
0
249
while 1: N,K = map(int,raw_input().split()) if N == 0: break S = map(int,raw_input().split()) for j in range(N): B = map(int,raw_input().split()) for i in range(K): S[i] -= B[i] if min(S) < 0: break print "Yes" if min(S) >= 0 else "No"
File "/tmp/tmp7paporu0/tmpiaqx04v8.py", line 10 print "Yes" if min(S) >= 0 else "No" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s383940779
p00609
u847467233
1530788025
Python
Python3
py
Runtime Error
0
0
528
# AOJ 1023: Amazing Graze # Python3 2018.7.5 bal4u import sys from sys import stdin input = stdin.readline from bisect import bisect_left while True: AN, BN, R = map(int, input().split()) if AN == 0: break e = [0]*AN a = sorted([list(map(int, input().split())) for i in range(AN)]) aa = a[0:-1][0] r = R << 2 r2...
Traceback (most recent call last): File "/tmp/tmptw87vrou/tmpj1l9_gi1.py", line 10, in <module> AN, BN, R = map(int, input().split()) ^^^^^^^^^ ValueError: not enough values to unpack (expected 3, got 0)
s197119931
p00611
u827448139
1419260743
Python
Python3
py
Runtime Error
0
0
3110
code="""\ #include <bits/stdc++.h> using namespace std; #define dump(...) cout<<"# "<<#__VA_ARGS__<<'='<<(__VA_ARGS__)<<endl #define repi(i,a,b) for(int i=int(a);i<int(b);i++) #define peri(i,a,b) for(int i=int(b);i-->int(a);) #define rep(i,n) repi(i,0,n) #define per(i,n) peri(i,0,n) #define all(c) begin(c),end(c) #def...
sh: 1: a.exe: not found
s362437351
p00613
u633068244
1395162920
Python
Python
py
Runtime Error
0
0
85
while 1: k=input() if not k:stop print sum(map(int, raw_input().split()))/(k-1)
File "/tmp/tmprafrkr67/tmprkl__qix.py", line 4 print sum(map(int, raw_input().split()))/(k-1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s874161291
p00613
u633068244
1395163904
Python
Python
py
Runtime Error
0
0
83
while 1: k=input()-1 if k==0:break print sum(map(int, raw_input().split()))/k
File "/tmp/tmpovlbhutz/tmprfy2jhbf.py", line 4 print sum(map(int, raw_input().split()))/k ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s874023440
p00627
u778333573
1440453120
Python
Python
py
Runtime Error
0
0
88
while true: n=input() if n==0: break print sum(input() for i in xrange(n/4))
File "/tmp/tmpiz8m4t_9/tmpqd5o7h4x.py", line 4 print sum(input() for i in xrange(n/4)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s183248442
p00627
u778333573
1440453128
Python
Python
py
Runtime Error
0
0
91
while true: n =input() if n == 0: break print sum(input() for i in xrange(n/4))
File "/tmp/tmpvu7iv7l2/tmpked2jbez.py", line 4 print sum(input() for i in xrange(n/4)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s203557219
p00627
u778333573
1440453201
Python
Python
py
Runtime Error
0
0
87
while True: n=input() if n==0: break print ans(input() for i in range(n/4))
File "/tmp/tmpu1ukydoh/tmpwhkop45l.py", line 4 print ans(input() for i in range(n/4)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s710159257
p00627
u778333573
1440453208
Python
Python
py
Runtime Error
0
0
91
while True: n = input() if n == 0: break print ans(input() for i in range(n/4))
File "/tmp/tmp3pw26tze/tmpa9ybh_jc.py", line 4 print ans(input() for i in range(n/4)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s663477059
p00627
u546285759
1489471454
Python
Python3
py
Runtime Error
0
0
102
while True: n = int(input()) if n == 0: break print(sum([int(input()) for _ in range(n)]))
Traceback (most recent call last): File "/tmp/tmpk7dnszer/tmpga0urzga.py", line 2, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s279302484
p00627
u633068244
1395239181
Python
Python
py
Runtime Error
0
0
144
while True: n = int(raw_input()) if n == 0: break a = [] for i in range(n/4): a.append(int(raw_input()) print sum(a)
File "/tmp/tmphsauz298/tmp1_2at6on.py", line 6 a.append(int(raw_input()) ^ SyntaxError: '(' was never closed
s717580260
p00628
u633068244
1396526333
Python
Python
py
Runtime Error
0
0
141
while 1: a=map(str,raw_input().replace(" "," A ").split()) if a==["END"]:break print "".join(map(str,[len(a[i]) for i in range(len(a))]))
File "/tmp/tmp59ewud6p/tmpuvy9cajq.py", line 4 print "".join(map(str,[len(a[i]) for i in range(len(a))])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s717240798
p00629
u819979588
1513584461
Python
Python
py
Runtime Error
0
0
714
def sort_cmp(x, y): if x[2] == y[2]: return x[3] < y[3] else: return x[2] > x[2] def solve(n): teams = [] for i in range(n): teams.append(list(map(int, input().split()))) teams = sorted(teams, key=lambda x: -1e12 * x[2] + x[3] * 1e6 + x[0]) A = [] B = [] thres...
Traceback (most recent call last): File "/tmp/tmptatqkuir/tmpz6k4zone.py", line 36, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s318225176
p00630
u104911888
1371010798
Python
Python
py
Runtime Error
0
0
836
while True: name,typ=raw_input().split() if name=="EndOfInput" and typ=="X":break L=[] if "_" in name: L=name.split("_") elif name[0].islower(): temp="" for ch in name: if ch.islower(): temp+=ch else: L.append(temp) ...
File "/tmp/tmplbuik0__/tmp4y93hs0w.py", line 29 print "_".join(map(lambda s:s.lower(),L)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s823093620
p00630
u633068244
1398830614
Python
Python
py
Runtime Error
0
0
694
upp = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" low = "abcdefghijklmnopqrstuvwxyz" while 1: a,type = raw_input().split() if type == "X": break ans = "" if type == "U": if "_" in a: words = a.split("_") for word in words: ans += upp[low.index(word[0])] + word[1:] else: ans = upp[low.index(a[0])] + a[1:] elif t...
File "/tmp/tmpnq9toozf/tmpglyaj_uh.py", line 32 print ans ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s280862914
p00631
u633068244
1398152261
Python
Python
py
Runtime Error
0
0
250
import itertools while 1: n = input() if n == 0: break s = sorted(map(int,raw_input().split())) sm = sum(s) for i in range(1,n-1): ans = sorted(abs(sm - 2*sum(party)) for party in itertools.combinations(s,i))[0] if ans == 0: break print ans
File "/tmp/tmpxp37nu0t/tmp3acsc83n.py", line 10 print ans ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s871411676
p00631
u633068244
1398152289
Python
Python
py
Runtime Error
0
0
250
import itertools while 1: n = input() if n == 0: break s = sorted(map(int,raw_input().split())) sm = sum(s) for i in range(1,n-1): ans = sorted(abs(sm - 2*sum(party)) for party in itertools.combinations(s,i))[0] if ans == 0: break print ans
File "/tmp/tmp1rhswuyk/tmpjfihtg4x.py", line 10 print ans ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s947452582
p00631
u633068244
1399043880
Python
Python
py
Runtime Error
0
0
308
import itertools while 1: n = input() if n == 0: break a = sorted(map(int,raw_input().split())) all = sum(a) ans = all for i in range((n+1)/2+1): c = 0 for party in itertools.combinations(a,i): d = all-2*sum(party) if c == 0 and d < -ans break ans = min(ans,abs(d)) c = 1 print ans
File "/tmp/tmp9g0cn9vl/tmpt5ye8npd.py", line 12 if c == 0 and d < -ans ^ SyntaxError: expected ':'
s828435184
p00631
u633068244
1399059567
Python
Python
py
Runtime Error
0
0
179
while 1: n = input() if n == 0: break a = map(int,raw_input().split()) ref = [0] for i in a: ref += [i+j for j in ref if j < ans/2] print min(abs(sum(a)-2*i) for i in ref)
File "/tmp/tmpxqy_s54q/tmpu11hva44.py", line 8 print min(abs(sum(a)-2*i) for i in ref) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s062490110
p00631
u633068244
1399060520
Python
Python
py
Runtime Error
0
0
221
def S(i,x,y): for w in [x,y] if 2*w >= A: return 2*w-A return min(S(i+1,x+a[i],y),S(i+1,x,y+a[i])) while 1: n = input() if n == 0: break a = sorted(map(int,raw_input().split()))[::-1] A = sum(a) print S(1,a[0],0)
File "/tmp/tmp7iaudojk/tmprzsyzfdi.py", line 2 for w in [x,y] ^ SyntaxError: expected ':'
s143405147
p00637
u633068244
1397010339
Python
Python
py
Runtime Error
0
0
188
while 1: n=input() if n==0:break p=raw_input().split()+["end"] sp=p[0] for i in range(n): if str(int(p[i])+1)!=p[i+1]: print sp+"-"+p[i], if sp!=p[i] else sp, sp=p[i+1] print
File "/tmp/tmp2l8oxsci/tmp2uq67g6w.py", line 8 print sp+"-"+p[i], if sp!=p[i] else sp, ^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s932134072
p00638
u316268279
1432202022
Python
Python
py
Runtime Error
0
0
440
#!/usr/bin/env python # -*- coding: utf-8 -*- while True: n = int(raw_input()) island = [] if n == 0: break for i in range(n): g,b = map(int,input().split()) island.append((g,b,b-g)) sorted(island,key = lambda x:(x[2],[0],[1])) gem = 0 for g,b,c in island: ...
File "/tmp/tmpq29he9ok/tmpmlnhuyzi.py", line 20 print 'Yes' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s662441489
p00638
u552684347
1432204751
Python
Python3
py
Runtime Error
0
0
369
__author__ = 'admin' while True: count_shima=input() if count_shima==0: break A = [list(map(int,raw_input().split())) for i in xrange(count_shima)] A.sort() weight=0 frg=0 for takara,turi in A: weight +=takara if turi < weight: print "NO" frg=1 ...
File "/tmp/tmpsftr_tcr/tmpsq_js_22.py", line 16 print "NO" ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s091946507
p00638
u552684347
1432205144
Python
Python3
py
Runtime Error
0
0
347
while True: count_shima=input() if count_shima==0: break A = [list(map(int,raw_input().split())) for i in xrange(count_shima)] A.sort() weight=0 frg=0 for takara,turi in A: weight +=takara if turi < weight: print "NO" frg=1 break if ...
File "/tmp/tmpye7ywltc/tmpzvov016h.py", line 14 print "NO" ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s793704686
p00638
u970703099
1530007229
Python
Python3
py
Runtime Error
0
0
326
import sys n = 1 a = [] while(True): n = (int)(input()) if n == 0: break for i in range(n): a.append(int(input().split())) a.sort(key=lambda x:x[1]) nimo = 0 for i in range(n): if(a[i][1] >= nimo+a[i][0]): nimo += a[i][0] else: print("No") sys.exit() print("...
Traceback (most recent call last): File "/tmp/tmpta3_3tv3/tmp26llrv2y.py", line 5, in <module> n = (int)(input()) ^^^^^^^ EOFError: EOF when reading a line
s096358513
p00642
u827448139
1418379462
Python
Python3
py
Runtime Error
0
0
2103
code=""" #include <bits/stdc++.h> using namespace std; #define dump(...) cout<<"# "<<#__VA_ARGS__<<'='<<(__VA_ARGS__)<<endl #define repi(i,a,b) for(int i=int(a);i<int(b);i++) #define peri(i,a,b) for(int i=int(b);i-->int(a);) #define rep(i,n) repi(i,0,n) #define per(i,n) peri(i,0,n) #define all(c) begin(c),end(c) #defi...
s354697952
p00642
u631023380
1449934688
Python
Python
py
Runtime Error
0
0
471
# -*- coding:utf-8 -*- if __name__ == "__main__": import sys dp = [0.0] * 100001 dp[1] = 1.0 for i in xrange(2, 100001): p = 1.0 w = 0.5 for j in xrange(1,i): if p < 1e-13: break dp[i] += (p*(1-w))*(j+dp[max(0,i-j-1)]) p *= w ...
File "/tmp/tmpfd65haif/tmpj2ub53su.py", line 3 import sys ^ IndentationError: expected an indented block after 'if' statement on line 2
s767505449
p00642
u894114233
1473684069
Python
Python
py
Runtime Error
0
0
460
while 1: n=int(raw_input()) if n==0:break dp=[[0]*12 for _ in xrange(2)] dp[0][0]=1 ans=[0]*(n+1) for i in xrange(n): ans[i+1]+=ans[i] for j in xrange(12): if dp[i&1][j]==0:continue ans[i+1]+=dp[i&1][j]*pow(0.5,j) dp[(i+1)&1][j+1]=dp[i&1][j]*p...
Traceback (most recent call last): File "/tmp/tmpqotvk_0t/tmpdqma3yjc.py", line 2, in <module> n=int(raw_input()) ^^^^^^^^^ NameError: name 'raw_input' is not defined
s267841020
p00642
u078042885
1485031161
Python
Python3
py
Runtime Error
0
0
232
dp=[.0]*100001 dp[1]=1. for i in range(2,100001): a,b,j=.5,1,1 while j<i and b> 1e-5: dp[i]+=b*(1-a)*(j+dp[i-j-1]) b*=al;a/=2;j+=1 dp[i]+=i*b while 1: n=int(input()) if n==0:break print(dp[n])
Traceback (most recent call last): File "/tmp/tmp4ld6syjj/tmp0r1p0dbx.py", line 7, in <module> b*=al;a/=2;j+=1 ^^ NameError: name 'al' is not defined. Did you mean: 'a'?
s917083600
p00643
u650035614
1530806890
Python
Python3
py
Runtime Error
0
0
2657
T, S, E, W, N, B = range(6) class Dice: def __init__(self): self.state = list(range(1,7)) def copy(self): dice = Dice() dice.state = [x for x in self.state] return dice def _turn(self, turn): k = self.state[turn[-1]] for i in range(4): self.sta...
Traceback (most recent call last): File "/tmp/tmp487ist_v/tmp864d84sw.py", line 70, in <module> h, w = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s375305240
p00644
u798803522
1470370456
Python
Python3
py
Runtime Error
0
0
8
print(a)
Traceback (most recent call last): File "/tmp/tmpuw44svat/tmpks_l0250.py", line 1, in <module> print(a) ^ NameError: name 'a' is not defined
s385570963
p00644
u798803522
1470382057
Python
Python3
py
Runtime Error
0
0
2327
vertex,edge,children = (int(n) for n in input().split(' ')) while True: graph = [] child = [] for e in range(edge): graph.append([int(n) for n in input().split(' ')]) for c in range(children): child.append(int(input())) stack = [[0,0,[]]] root = [] destination = [] mindis...
Traceback (most recent call last): File "/tmp/tmpm6roykdy/tmpkq5_bvxn.py", line 1, in <module> vertex,edge,children = (int(n) for n in input().split(' ')) ^^^^^^^ EOFError: EOF when reading a line
s616325781
p00644
u798803522
1470382145
Python
Python3
py
Runtime Error
0
0
2327
vertex,edge,children = (int(n) for n in input().split(' ')) while True: graph = [] child = [] for e in range(edge): graph.append([int(n) for n in input().split(' ')]) for c in range(children): child.append(int(input())) stack = [[0,0,[]]] root = [] destination = [] mindis...
Traceback (most recent call last): File "/tmp/tmp_xsp4e49/tmpt89vf0j6.py", line 1, in <module> vertex,edge,children = (int(n) for n in input().split(' ')) ^^^^^^^ EOFError: EOF when reading a line
s245913442
p00644
u798803522
1470382463
Python
Python3
py
Runtime Error
0
0
2543
vertex,edge,children = (int(n) for n in input().split(' ')) while True: if children == 0: print(0) vertex,edge,children = (int(n) for n in input().split(' ')) if vertex == 0 and edge == 0 and children == 0: break else: continue graph = [] child = [] ...
Traceback (most recent call last): File "/tmp/tmpk1keq5b8/tmpk3_8jow9.py", line 1, in <module> vertex,edge,children = (int(n) for n in input().split(' ')) ^^^^^^^ EOFError: EOF when reading a line
s465417508
p00644
u798803522
1470382794
Python
Python3
py
Runtime Error
0
0
2420
vertex,edge,children = (int(n) for n in input().split(' ')) while True: if children == 0: print(0) vertex,edge,children = (int(n) for n in input().split(' ')) if vertex == 0 and edge == 0 and children == 0: break else: continue graph = [] child = [] ...
Traceback (most recent call last): File "/tmp/tmpb80lu_4k/tmpkgm0720x.py", line 1, in <module> vertex,edge,children = (int(n) for n in input().split(' ')) ^^^^^^^ EOFError: EOF when reading a line
s820163029
p00650
u827448139
1417617489
Python
Python3
py
Runtime Error
0
0
201
while True: n,m=map(int,input().split()) if (n|m)==0: break d={} for i in range(m): u,v,w=map(int,input().split()) if u>v: u,v=v,u d[(u,v)]=d.get((u,v),0)+w print(min(d.values()))
Traceback (most recent call last): File "/tmp/tmptw7dliyl/tmp468y3ybo.py", line 2, in <module> n,m=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s931697817
p00653
u829501316
1496091879
Python
Python3
py
Runtime Error
0
0
3309
from math import inf class segt2d: def __init__(self, m, n): self.m = 1 while self.m < m: self.m *= 2 self.n = 1 while self.n < n: self.n *= 2 self.dat = [segt(n) for _ in range(2 * self.m - 1)] # update (mk, nk) value to a def update(self, ...
Traceback (most recent call last): File "/tmp/tmpyxt9kk2t/tmpmyblc0tt.py", line 106, in <module> solve() File "/tmp/tmpyxt9kk2t/tmpmyblc0tt.py", line 87, in solve r, c, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s757597804
p00653
u829501316
1496092001
Python
Python3
py
Runtime Error
0
0
3195
from math import inf class segt2d: def __init__(self, m, n): self.m = 1 while self.m < m: self.m *= 2 self.n = 1 while self.n < n: self.n *= 2 self.dat = [segt(n) for _ in range(2 * self.m - 1)] # update (mk, nk) value to a def update(self, ...
Traceback (most recent call last): File "/tmp/tmpyqajdui_/tmpev9tvsff.py", line 86, in <module> r, c, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s538361206
p00653
u829501316
1496092251
Python
Python3
py
Runtime Error
0
0
2389
from math import inf class segt2d: def __init__(self, m, n): self.m = 1 while self.m < m: self.m *= 2 self.n = 1 while self.n < n: self.n *= 2 self.dat = [segt(n) for _ in range(2 * self.m - 1)] def update(self, mk, nk, a): mk += self.m ...
Traceback (most recent call last): File "/tmp/tmp5qoyy_t3/tmp4s0hiqaf.py", line 72, in <module> r, c, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s687659227
p00653
u829501316
1496093364
Python
Python3
py
Runtime Error
0
0
2389
from math import inf class segt2d: def __init__(self, m, n): self.m = 1 while self.m < m: self.m *= 2 self.n = 1 while self.n < n: self.n *= 2 self.dat = [segt(n) for _ in range(2 * self.m - 1)] def update(self, mk, nk, a): mk += self.m ...
Traceback (most recent call last): File "/tmp/tmpbebk1c95/tmpmafi3zjv.py", line 72, in <module> r, c, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s238880694
p00655
u546285759
1492588886
Python
Python3
py
Runtime Error
0
0
3092
from collections import deque def mid(qs): m = len(qs)//2 if len(qs)%2 else len(qs)//2-1 return m while True: q = int(input()) if not q: break d = deque() for _ in range(q): query = input() q1 = int(query[0]) # 0 if not q1: d.append(...
Traceback (most recent call last): File "/tmp/tmpaukitack/tmpmdup_bnq.py", line 7, in <module> q = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s181278049
p00655
u546285759
1492589060
Python
Python3
py
Runtime Error
0
0
3122
from collections import deque def mid(qs): m = len(qs)//2 if len(qs)%2 else len(qs)//2-1 return m while True: q = int(input()) if not q: break d = deque() for _ in range(q): query = input() q1 = int(query[0]) # 0 if not q1: d.append(...
Traceback (most recent call last): File "/tmp/tmpt4t0xhjq/tmp3hd8rmce.py", line 7, in <module> q = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s961213014
p00655
u546285759
1492589169
Python
Python3
py
Runtime Error
0
0
3122
from collections import deque def mid(qs): m = len(qs)//2 if len(qs)%2 else len(qs)//2-1 return m while True: q = int(input()) if not q: break d = deque() for _ in range(q): query = input() q1 = int(query[0]) # 0 if not q1: d.append(...
Traceback (most recent call last): File "/tmp/tmph4j1q7u0/tmpgv2h3cxf.py", line 7, in <module> q = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s574846031
p00655
u546285759
1492589256
Python
Python3
py
Runtime Error
0
0
3091
from collections import deque def mid(qs): m = len(qs)//2 if len(qs)%2 else len(qs)//2-1 return m while True: q = int(input()) if not q: break d = deque() for _ in range(q): query = input() q1 = int(query[0]) # 0 if not q1: d.append(...
Traceback (most recent call last): File "/tmp/tmptpyaj35f/tmpll6v6g66.py", line 7, in <module> q = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s701257849
p00657
u633068244
1395163556
Python
Python
py
Runtime Error
0
0
97
while True: r, c = input(),input() if not r: break print "yes" if not r*c%2 else "no"
File "/tmp/tmpzg2qrg5a/tmprnsnxmpl.py", line 4 print "yes" if not r*c%2 else "no" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s430698420
p00657
u633068244
1395163564
Python
Python
py
Runtime Error
0
0
89
while True: r, c = input() if not r: break print "yes" if not r*c%2 else "no"
File "/tmp/tmpune06n0u/tmpkcth0tdu.py", line 4 print "yes" if not r*c%2 else "no" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s643205008
p00659
u957028788
1502067976
Python
Python3
py
Runtime Error
0
0
810
while True: player_nun = int(input()) if player_nun == 0: break whole_data = [] xel = {} for i in (0, player_nun): dat = input().split() p_data = [] p_data.append(dat[0]) for x in dat[1:]: p_data.append(int(x)) whole_data.append(p_data) for x in p_data[2:p_data[1]]: if xel.has_key(x) == Fals...
File "/tmp/tmpsc4bf298/tmpj9j_gkuz.py", line 17 0 = xel[x] ^ SyntaxError: cannot assign to literal here. Maybe you meant '==' instead of '='?
s556263130
p00659
u957028788
1502073370
Python
Python3
py
Runtime Error
0
0
1014
while True: #player_nun = int(input()) player_nun = 4 if player_nun == 0: break #????????????????????? whole_data = [] for i in (0, player_nun): #dat = input().split() #p_data = [] #p_data.append(dat[0]) for x in dat[1:]: p_data.append(int(x)) whole_data.append(p_data) #????????????????????...
Traceback (most recent call last): File "/tmp/tmprucipf8c/tmp4d1mx54d.py", line 13, in <module> for x in dat[1:]: ^^^ NameError: name 'dat' is not defined