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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s041607742 | p00207 | u227162786 | 1490018860 | Python | Python3 | py | Runtime Error | 0 | 0 | 1085 | def dfs(x, y, m, v, W, H, xg, yg):
'''
'''
v[y][x] = True
for dx, dy in [(-1, 0), (1, 0), (0, -1), (0, 1)]:
nx = x + dx
ny = y + dy
if nx in range(W) and ny in range(H) and m[ny][nx] == m[y][x] and v[ny][nx] == False:
dfs(nx, ny, m, v, W, H, xg, yg)
while True:
H... | Traceback (most recent call last):
File "/tmp/tmpb6q5sgbe/tmp19yqbvxj.py", line 12, in <module>
H, W = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s092698653 | p00207 | u227162786 | 1490019105 | Python | Python3 | py | Runtime Error | 0 | 0 | 1216 | def dfs(x, y, m, v, W, H, xg, yg):
'''
'''
v[y][x] = True
for dx, dy in [(-1, 0), (1, 0), (0, -1), (0, 1)]:
nx = x + dx
ny = y + dy
if nx in range(W) and ny in range(H) and m[ny][nx] == m[y][x] and v[ny][nx] == False:
dfs(nx, ny, m, v, W, H, xg, yg)
if __name__ == '_... | Traceback (most recent call last):
File "/tmp/tmp53zghb4n/tmptpcqh3ql.py", line 13, in <module>
H, W = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s090657938 | p00207 | u510797278 | 1504579063 | Python | Python3 | py | Runtime Error | 0 | 0 | 1349 | BLOCK_WIDTH = 4
BLOCK_HEIGHT = 2
field = []
dx = [-1, 0, 1, 0]
dy = [0, 1, 0, -1]
w = 0
h = 0
xg = 0
yg = 0
def main():
global field, w, h, xg, yg
while True:
w, h = map(int, input().split())
if w == 0 and h == 0:
break
xs, ys = map(int, input().split())
xg, yg = map... | Traceback (most recent call last):
File "/tmp/tmpr62bg3bf/tmp1exjv86r.py", line 63, in <module>
main()
File "/tmp/tmpr62bg3bf/tmp1exjv86r.py", line 14, in main
w, h = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s408923606 | p00207 | u510797278 | 1504582808 | Python | Python3 | py | Runtime Error | 0 | 0 | 1349 | BLOCK_WIDTH = 4
BLOCK_HEIGHT = 2
field = []
dx = [-1, 0, 1, 0]
dy = [0, 1, 0, -1]
w = 0
h = 0
xg = 0
yg = 0
def main():
global field, w, h, xg, yg
while True:
w, h = map(int, input().split())
if w == 0 and h == 0:
break
xs, ys = map(int, input().split())
xg, yg = map... | Traceback (most recent call last):
File "/tmp/tmpd1297_t2/tmp347rlf6u.py", line 63, in <module>
main()
File "/tmp/tmpd1297_t2/tmp347rlf6u.py", line 14, in main
w, h = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s789657511 | p00207 | u510797278 | 1504589441 | Python | Python3 | py | Runtime Error | 0 | 0 | 1359 | BLOCK_WIDTH = 4
BLOCK_HEIGHT = 2
field = []
dx = [-1, 0, 1, 0]
dy = [0, 1, 0, -1]
w = 0
h = 0
xg = 0
yg = 0
def main():
global field, w, h, xg, yg
while True:
w, h = map(int, input().split())
if w == 0 and h == 0:
break
xs, ys = map(int, input().split())
xg, yg = map... | Traceback (most recent call last):
File "/tmp/tmpjvp25h7t/tmpj00y9r85.py", line 62, in <module>
main()
File "/tmp/tmpjvp25h7t/tmpj00y9r85.py", line 14, in main
w, h = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s983644866 | p00207 | u633068244 | 1398939558 | Python | Python | py | Runtime Error | 0 | 0 | 84 | B[y][x] = -1
check(B,x-1,y,c);check(B,x,y-1,c);check(B,x+1,y,c);check(B,x,y+1,c) | File "/tmp/tmpqv5pul9i/tmpsvdx6x3q.py", line 1
B[y][x] = -1
IndentationError: unexpected indent
| |
s802672130 | p00207 | u633068244 | 1398939570 | Python | Python | py | Runtime Error | 0 | 0 | 641 | global B
def check(B,x,y,c):
if 0 < x < w+2 and 0 < y < h+2 and B[y][x] == c:
B[y][x] = -1
check(B,x-1,y,c);check(B,x,y-1,c);check(B,x+1,y,c);check(B,x,y+1,c)
while 1:
w,h = map(int,raw_input().split())
if w == 0: break
B = [[0]*(w+2) for i in range(h+2)]
xs,ys = map(int,raw_input().split())
xg,yg = map(int,... | File "/tmp/tmpyub2307b/tmpcco8nooo.py", line 22
print "NG"
^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s700452548 | p00207 | u633068244 | 1398939596 | Python | Python | py | Runtime Error | 0 | 0 | 641 | global B
def check(B,x,y,c):
if 0 < x < w+2 and 0 < y < h+2 and B[y][x] == c:
B[y][x] = -1
check(B,x-1,y,c);check(B,x,y-1,c);check(B,x+1,y,c);check(B,x,y+1,c)
while 1:
w,h = map(int,raw_input().split())
if w == 0: break
B = [[0]*(w+2) for i in range(h+2)]
xs,ys = map(int,raw_input().split())
xg,yg = map(int,... | File "/tmp/tmphku9llsj/tmpxi7nhout.py", line 22
print "NG"
^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s165896795 | p00208 | u566872786 | 1512379166 | Python | Python3 | py | Runtime Error | 0 | 0 | 67 | while(1):print(oct(n)[2:].translate(str.maketrans('4567', '5789'))) | Traceback (most recent call last):
File "/tmp/tmpfdn5hff5/tmp97jp1pwq.py", line 1, in <module>
while(1):print(oct(n)[2:].translate(str.maketrans('4567', '5789')))
^
NameError: name 'n' is not defined
| |
s656682715 | p00208 | u531592024 | 1528988557 | Python | Python3 | py | Runtime Error | 0 | 0 | 282 | def ge(arr):
for i in range(len(arr)):
tmp = int(arr[i])
if tmp >= 4:
tmp += 1
if tmp >= 6:
tmp += 1
arr[i] = str(tmp)
while True:
n = int(input)
if n == 0:
break
print("".join(ge(list(oct(n))[2:])))
| Traceback (most recent call last):
File "/tmp/tmprwyizlw2/tmpt7jbxxuk.py", line 12, in <module>
n = int(input)
^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
| |
s775166019 | p00208 | u870370075 | 1389355786 | Python | Python | py | Runtime Error | 0 | 0 | 700 | inputlist=[]
while 1:
inputnum=int(raw_input())
if(inputnum==0):break
inputlist.append(inputnum)
def octnpower(num):
flag=0
maxi=0
maxj=0
if(num<8):
temp[0]=num
return
for i in range(1,11):
for j in range(1,8):
if(num>=(8**i)*j):
flag=(8**i)*j
maxi=i
maxj=j
else:
temp[maxi]=maxj
... | File "/tmp/tmpyjhcuypv/tmp9rqri0sd.py", line 37
print ansstr
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s080357072 | p00209 | u633068244 | 1399116113 | Python | Python | py | Runtime Error | 0 | 0 | 776 | while 1:
n,m = map(int,raw_input().split())
if n == 0: break
scene = [map(int,raw_input().split()) for i in range(n)]
pic = [map(int,raw_input().split()) for i in range(m)]
ans = "NA"
for rot in range(4):
for y in range(n-m):
for x in range(n-m):
flag = 0
for dy in range(m):
for dx in range(m):
... | File "/tmp/tmpm42x0jlm/tmpv_r7_mg7.py", line 29
print ans
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s461542242 | p00209 | u633068244 | 1399116320 | Python | Python | py | Runtime Error | 0 | 0 | 832 | def getxy(pic):
flag = 0
for dy in range(m):
for dx in range(m):
if pic[dy][dx] > -1:
ans = str(x+dx+1)+" "+str(y+dy+1)
flag = 1
break
if flag == 1: break
return ans
while 1:
n,m = map(int,raw_input().split())
if n == 0: break
scene = [map(int,raw_input().split()) for i in range(n)]
pic = [m... | File "/tmp/tmpptppv02z/tmphnjuq93q.py", line 35
print ans
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s804027091 | p00210 | u858885710 | 1404010356 | Python | Python | py | Runtime Error | 0 | 0 | 1877 | direction = {'N' : 0, 'E' : 1, 'S' : 2, 'W' : 3}
step = [(-1, 0), (0, 1), (1, 0), (0, -1)]
while True:
W, H = map(int, raw_input().split())
if W == 0 and H == 0: break
m = [None] * H
for i in xrange(H):
m[i] = list(raw_input())
people = []
for i in xrange(H):
for j in xrange(W):... | File "/tmp/tmp6iaijpzp/tmprrpbl1m7.py", line 51
print c,
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s537808120 | p00210 | u858885710 | 1404017337 | Python | Python | py | Runtime Error | 0 | 0 | 1772 | direction = {'N' : 0, 'E' : 1, 'S' : 2, 'W' : 3}
step = [( -1, 0 ), ( 0, 1 ), ( 1, 0 ), ( 0, -1 )]
while True:
W, H = map( int, raw_input().split() )
if W == 0 and H == 0: break
m = [ list( raw_input().split() ) for i in xrange( H ) ]
people = [ ( i, j, direction[ m[i][j] ] ) for i in xrange( H ) for j... | File "/tmp/tmpjk3rs8zi/tmp2xl4u0ad.py", line 36
break
TabError: inconsistent use of tabs and spaces in indentation
| |
s016028281 | p00210 | u858885710 | 1404022377 | Python | Python | py | Runtime Error | 0 | 0 | 1907 | import sys
direction = {'N' : 0, 'E' : 1, 'S' : 2, 'W' : 3}
step = [( -1, 0 ), ( 0, 1 ), ( 1, 0 ), ( 0, -1 )]
vv = []
while True:
W, H = map( int, sys.stdin.readline().rstrip().split() )
if W == 0 and H == 0: break
m = [ list( sys.stdin.readline().strip() ) for i in xrange( H ) ]
people = [ ( i, j, di... | File "/tmp/tmp1cabis23/tmp11roco6r.py", line 40
break
TabError: inconsistent use of tabs and spaces in indentation
| |
s535338685 | p00210 | u673933691 | 1404029626 | Python | Python | py | Runtime Error | 0 | 0 | 4995 | import copy
def hinan():
ans = []
while True:
n = raw_input().split(" ")
if n == ["0" ,"0"]:
for an in ans:
print an
break
elif len(n) == 2:
xs = []
k = int(n[1])
for m in range(k):
n = map(str,ra... | File "/tmp/tmpeo6u9mlr/tmpg588i1ne.py", line 8
print an
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s909267724 | p00210 | u673933691 | 1404029800 | Python | Python | py | Runtime Error | 0 | 0 | 4995 | import copy
def hinan():
ans = []
while True:
n = raw_input().split(" ")
if n == ["0" ,"0"]:
for an in ans:
print an
break
elif len(n) == 2:
xs = []
k = int(n[1])
for m in range(k):
n = map(str,ra... | File "/tmp/tmp966cpa3p/tmpban5957o.py", line 8
print an
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s730907477 | p00210 | u673933691 | 1404029861 | Python | Python | py | Runtime Error | 0 | 0 | 4995 | import copy
def hinan():
ans = []
while True:
n = raw_input().split(" ")
if n == ["0" ,"0"]:
for an in ans:
print an
break
elif len(n) == 2:
xs = []
k = int(n[1])
for m in range(k):
n = map(str,ra... | File "/tmp/tmpm7hmv373/tmpy2zk5e3k.py", line 8
print an
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s254610284 | p00210 | u673933691 | 1404031789 | Python | Python | py | Runtime Error | 0 | 0 | 5532 | import copy
def hinan():
ans = []
while True:
n = raw_input().split(" ")
if n == ["0" ,"0"]:
for an in ans:
print an
break
elif len(n) == 2:
xs = []
k = int(n[1])
for m in range(k):
n = map(str,ra... | File "/tmp/tmpbxyefssy/tmpx_2lvik9.py", line 8
print an
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s087371571 | p00210 | u673933691 | 1404244109 | Python | Python | py | Runtime Error | 0 | 0 | 2173 | def add(x ,y): return x + y
def hinan():
ans ,houi ,vector = [] ,[[0 ,1] ,[-1 ,0] ,[0 ,-1] ,[1 ,0] ,[0 ,1] ,[-1 , 0] ,[1 ,0]] ,["E" ,"N" ,"W" ,"S"]
while True:
n = raw_input().split(" ")
if n == ["0" ,"0"]:
for an in ans:
print an
break
else:
... | File "/tmp/tmpgauqsaz8/tmphn3xe8e7.py", line 8
print an
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s762415947 | p00210 | u673933691 | 1404307505 | Python | Python | py | Runtime Error | 0 | 0 | 2038 | def hinan():
ans ,houi ,vector = [] ,[[0 ,1] ,[-1 ,0] ,[0 ,-1] ,[1 ,0] ,[0 ,1] ,[-1 , 0] ,[1 ,0]] ,["E" ,"N" ,"W" ,"S"]
while True:
n = raw_input().split(" ")
if n == ["0" ,"0"]:
for an in ans:
print an
break
else:
xs =[[] ,[] ,[]]
... | File "/tmp/tmp5007_s_0/tmp5iuj4xpk.py", line 7
print an
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s202528482 | p00210 | u673933691 | 1404390349 | Python | Python | py | Runtime Error | 0 | 0 | 2030 | def hinan():
ans ,houi ,vector = [] ,[[0 ,1] ,[-1 ,0] ,[0 ,-1] ,[1 ,0] ,[0 ,1] ,[-1 , 0] ,[1 ,0]] ,["E" ,"N" ,"W" ,"S"]
while True:
n = raw_input().split(" ")
if n == ["0" ,"0"]:
for an in ans:
print an
break
else:
xs =[[] ,[] ,[]]
... | File "/tmp/tmpwb8r7lsd/tmpkzmf2k0o.py", line 7
print an
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s894867641 | p00210 | u673933691 | 1404390464 | Python | Python | py | Runtime Error | 0 | 0 | 2005 | def hinan():
ans ,houi ,vector = [] ,[[0 ,1] ,[-1 ,0] ,[0 ,-1] ,[1 ,0] ,[0 ,1] ,[-1 , 0] ,[1 ,0]] ,["E" ,"N" ,"W" ,"S"]
while True:
n = raw_input().split(" ")
if n == ["0" ,"0"]:
for an in ans:
print an
break
else:
xs =[[] ,[] ,[]]
... | File "/tmp/tmpphtp6pcr/tmp5dir1248.py", line 7
print an
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s747172782 | p00210 | u567380442 | 1429154503 | Python | Python3 | py | Runtime Error | 0 | 0 | 2453 | from sys import stdin
readline = stdin.readline
from itertools import product
N, W, S, E = (0, -1), (-1, 0), (0, 1), (1, 0)
BLANK = ('.', 'X')
DIRECTION = {
'N': N,
'W': W,
'S': S,
'E': E,
}
check_priority = {
N: (E, N, W, S),
W: (N, W, S, E),
S: (W, S, E, N),
E: (S, E, N, W),
}
s... | Traceback (most recent call last):
File "/tmp/tmp42cej4sc/tmpzcfi5k81.py", line 80, in <module>
w, h = map(int, readline().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s666059391 | p00210 | u567380442 | 1429154746 | Python | Python3 | py | Runtime Error | 0 | 0 | 2480 | from sys import stdin
readline = stdin.readline
from itertools import product
N, W, S, E = (0, -1), (-1, 0), (0, 1), (1, 0)
BLANK = ('.', 'X')
DIRECTION = {
'N': N,
'W': W,
'S': S,
'E': E,
}
check_priority = {
N: (E, N, W, S),
W: (N, W, S, E),
S: (W, S, E, N),
E: (S, E, N, W),
}
st... | Traceback (most recent call last):
File "/tmp/tmpdnahgavv/tmpf0ic84d3.py", line 80, in <module>
w, h = map(int, readline().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s986576441 | p00211 | u873482706 | 1437133552 | Python | Python | py | Runtime Error | 0 | 0 | 926 | import copy
def main():
_data = copy.deepcopy(data)
while 1 < len(_data):
d1, v1 = _data[0]
d2, v2 = _data[1]
l = f1(v1, v2)
v = l
m1, m2 = list(f2(l, v1, v2))
d = f1(d1*m1, d2*m2)
for i in range(2): del _data[0]
_data.append([d, v])
else:
... | File "/tmp/tmpylz3x0ow/tmpgqjx04yr.py", line 30
print int(ans[:-2])
^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s163643900 | p00211 | u755162050 | 1475596406 | Python | Python3 | py | Runtime Error | 0 | 0 | 992 | def gcd(x, y):
while y:
x, y = y, x % y
return x
def lcm(x, y):
l_lcm = (x * y) // gcd(x, y)
return l_lcm
def mul_lcm(array):
l = lcm(array[0], array[1])
if len(array) > 3:
for i in range(2, len(array)):
l = lcm(array[i], l)
return l
def algorithm(students)... | Traceback (most recent call last):
File "/tmp/tmp9f81tlvb/tmp0yfa1vhx.py", line 50, in <module>
main()
File "/tmp/tmp9f81tlvb/tmp0yfa1vhx.py", line 46, in main
input_sample()
File "/tmp/tmp9f81tlvb/tmp0yfa1vhx.py", line 33, in input_sample
n = int(input())
^^^^^^^
EOFError: EOF when readin... | |
s001230172 | p00211 | u755162050 | 1475596738 | Python | Python3 | py | Runtime Error | 0 | 0 | 1185 | """ Created by Jieyi on 10/4/16. """
import io
import sys
if len(sys.argv) > 1:
filename = sys.argv[1]
inp = ''.join(open(filename, "r").readlines())
sys.stdin = io.StringIO(inp)
def gcd(x, y):
while y:
x, y = y, x % y
return x
def lcm(x, y):
l_lcm = (x * y) // gcd(x, y)
return... | Traceback (most recent call last):
File "/tmp/tmptn736q1s/tmp0avz269i.py", line 59, in <module>
main()
File "/tmp/tmptn736q1s/tmp0avz269i.py", line 55, in main
input_sample()
File "/tmp/tmptn736q1s/tmp0avz269i.py", line 42, in input_sample
n = int(input())
^^^^^^^
EOFError: EOF when readin... | |
s285909499 | p00211 | u755162050 | 1476538609 | Python | Python3 | py | Runtime Error | 0 | 0 | 890 | def lcm(x, y):
return (x * y) / gcd(x, y)
def mul_lcm(array):
l = array[0]
if len(array) > 1:
for i in range(1, len(array)):
l = lcm(array[i], l)
return l
def algorithm(students):
denominator_lcm = mul_lcm([y for _, y in students])
for i in range(len(students)):
... | Traceback (most recent call last):
File "/tmp/tmpuo39mzo9/tmp72_nm1_4.py", line 42, in <module>
main()
File "/tmp/tmpuo39mzo9/tmp72_nm1_4.py", line 38, in main
input_sample()
File "/tmp/tmpuo39mzo9/tmp72_nm1_4.py", line 25, in input_sample
n = int(input())
^^^^^^^
EOFError: EOF when readin... | |
s218161754 | p00211 | u755162050 | 1476539075 | Python | Python3 | py | Runtime Error | 0 | 0 | 1166 | """ Created by Jieyi on 10/4/16. """
import io
import sys
from fractions import gcd
if len(sys.argv) > 1:
filename = sys.argv[1]
inp = ''.join(open(filename, "r").readlines())
sys.stdin = io.StringIO(inp)
def lcm(x, y):
return (x * y) / gcd(x, y)
def mul_lcm(array):
l = array[0]
if len(arra... | Traceback (most recent call last):
File "/tmp/tmpihos1y9x/tmpjakg3luz.py", line 4, in <module>
from fractions import gcd
ImportError: cannot import name 'gcd' from 'fractions' (/root/miniconda3/envs/sandbox-runtime/lib/python3.11/fractions.py)
| |
s193297547 | p00211 | u755162050 | 1476573933 | Python | Python3 | py | Runtime Error | 0 | 0 | 1166 | """ Created by Jieyi on 10/4/16. """
import io
import sys
from fractions import gcd
if len(sys.argv) > 1:
filename = sys.argv[1]
inp = ''.join(open(filename, "r").readlines())
sys.stdin = io.StringIO(inp)
def lcm(x, y):
return (x * y) / gcd(x, y)
def mul_lcm(array):
l = array[0]
if len(arra... | Traceback (most recent call last):
File "/tmp/tmp3fw7fglv/tmpk_dpd55j.py", line 4, in <module>
from fractions import gcd
ImportError: cannot import name 'gcd' from 'fractions' (/root/miniconda3/envs/sandbox-runtime/lib/python3.11/fractions.py)
| |
s860012703 | p00211 | u755162050 | 1476573989 | Python | Python3 | py | Runtime Error | 0 | 0 | 973 | from fractions import gcd
def lcm(x, y):
return (x * y) / gcd(x, y)
def mul_lcm(array):
l = array[0]
if len(array) > 1:
for i in range(1, len(array)):
l = lcm(array[i], l)
return l
def algorithm(students, n):
denominator_lcm = mul_lcm([y for _, y in students])
for i in ... | Traceback (most recent call last):
File "/tmp/tmpzeydugg6/tmp11ciqgur.py", line 1, in <module>
from fractions import gcd
ImportError: cannot import name 'gcd' from 'fractions' (/root/miniconda3/envs/sandbox-runtime/lib/python3.11/fractions.py)
| |
s349390968 | p00211 | u755162050 | 1476574085 | Python | Python3 | py | Runtime Error | 0 | 0 | 1104 | import math
if len(sys.argv) > 1:
filename = sys.argv[1]
inp = ''.join(open(filename, "r").readlines())
sys.stdin = io.StringIO(inp)
def lcm(x, y):
return int((x * y) / math.gcd(x, y))
def mul_lcm(array):
l = array[0]
if len(array) > 1:
for i in range(1, len(array)):
l =... | Traceback (most recent call last):
File "/tmp/tmpze_j5eyk/tmpfr1k3z1i.py", line 3, in <module>
if len(sys.argv) > 1:
^^^
NameError: name 'sys' is not defined
| |
s858854226 | p00211 | u755162050 | 1476574123 | Python | Python3 | py | Runtime Error | 0 | 0 | 969 | import math
def lcm(x, y):
return int((x * y) / math.gcd(x, y))
def mul_lcm(array):
l = array[0]
if len(array) > 1:
for i in range(1, len(array)):
l = lcm(array[i], l)
return l
def algorithm(students, n):
denominator_lcm = mul_lcm([y for _, y in students])
for i in rang... | Traceback (most recent call last):
File "/tmp/tmph2dvl2fh/tmp8ke2ug7c.py", line 45, in <module>
main()
File "/tmp/tmph2dvl2fh/tmp8ke2ug7c.py", line 41, in main
input_sample()
File "/tmp/tmph2dvl2fh/tmp8ke2ug7c.py", line 27, in input_sample
n = int(input())
^^^^^^^
EOFError: EOF when readin... | |
s040075929 | p00211 | u755162050 | 1476575309 | Python | Python3 | py | Runtime Error | 0 | 0 | 974 | import math
def lcm(x, y):
return int((x * y) / math.gcd(x, y))
def mul_lcm(array):
l = array[0]
if len(array) > 1:
for i in range(1, len(array)):
l = lcm(array[i], l)
return l
def algorithm(students, n):
den = [students[i][1] for i in range(n)]
denominator_lcm = mul_lc... | Traceback (most recent call last):
File "/tmp/tmphbnexilk/tmp5sevt0f1.py", line 48, in <module>
main()
File "/tmp/tmphbnexilk/tmp5sevt0f1.py", line 44, in main
input_sample()
File "/tmp/tmphbnexilk/tmp5sevt0f1.py", line 30, in input_sample
n = int(input())
^^^^^^^
EOFError: EOF when readin... | |
s873117096 | p00211 | u755162050 | 1476575540 | Python | Python3 | py | Runtime Error | 0 | 0 | 1247 | """ Created by Jieyi on 10/4/16. """
import io
import sys
import math
if len(sys.argv) > 1:
filename = sys.argv[1]
inp = ''.join(open(filename, "r").readlines())
sys.stdin = io.StringIO(inp)
def lcm(x, y):
return int((x * y) / math.gcd(x, y))
def mul_lcm(array):
l = array[0]
if len(array) >... | Traceback (most recent call last):
File "/tmp/tmp7jt2l41s/tmpu9oj2m4w.py", line 58, in <module>
main()
File "/tmp/tmp7jt2l41s/tmpu9oj2m4w.py", line 54, in main
input_sample()
File "/tmp/tmp7jt2l41s/tmpu9oj2m4w.py", line 39, in input_sample
n = int(input())
^^^^^^^
EOFError: EOF when readin... | |
s031195889 | p00212 | u874172052 | 1435216996 | Python | Python | py | Runtime Error | 0 | 0 | 1409 | def express_bus(coupon,city,route,start,end):
fare = {}
adjacent = []
for i in range(route):
s,t,cost = map(int,raw_input().split())
fare[s,t] = cost
fare[t,s] = cost
for i in range(1,city+1):
adjacent.append([])
for j in fare:
if i == j[0]:
... | File "/tmp/tmp8um_7nxh/tmp3s26pre2.py", line 47
print express_bus(coupon,city,route,start,end)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s184500826 | p00212 | u685815919 | 1473841700 | Python | Python | py | Runtime Error | 0 | 0 | 1403 | import sys
def dijkstra(nodes, start, matrix):
defnode = [False] * (nodes)
cost = [sys.maxint] * (nodes)
cost[start] = 0
node = start
counter = 0
while True:
counter += 1
if counter == nodes:
return cost
defnode[node] = True
for i in xrange(1, nodes):
if defnode[i]:
cont... | File "/tmp/tmpx9hom3e5/tmp97nx8jll.py", line 52
print mincost
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s322100692 | p00212 | u672443148 | 1516968867 | Python | Python3 | py | Runtime Error | 0 | 0 | 1074 | from heapq import *
while True:
#input c,n,m,s,d & creating G
#G[to,cost]
c,n,m,s,d=map(int,input().split())
if c==n==m==s==d==0:
break
G=[[]]
for i in range(n):
G.append([])
for i in range(m):
a,b,f=map(int,input().split())
G[a].append([b,f])
... | File "/tmp/tmpygtdifym/tmpq2enhwtk.py", line 3
while True:
IndentationError: unexpected indent
| |
s741676712 | p00213 | u567380442 | 1429189625 | Python | Python3 | py | Runtime Error | 0 | 0 | 1871 | from sys import stdin
readline = stdin.readline
from copy import deepcopy
from collections import namedtuple
Point = namedtuple('Point', ['x', 'y'])
Memo = namedtuple('Memo', 'buyer lot x y')
from itertools import product
def placeable(lots, buyer, x, y, w, h):
if x < 0 or len(lots[0]) < x + w or y < 0 or len(... | Traceback (most recent call last):
File "/tmp/tmpyxmom3ne/tmpbp8t_610.py", line 72, in <module>
main()
File "/tmp/tmpyxmom3ne/tmpbp8t_610.py", line 57, in main
w, h, n = map(int, readline().split())
^^^^^^^
ValueError: not enough values to unpack (expected 3, got 0)
| |
s559337702 | p00214 | u319725914 | 1535467594 | Python | Python3 | py | Runtime Error | 0 | 0 | 1447 | from sys import stdin
from itertools import product
def chk_in_rect(xy1,xy2):
for i,j in product(range(4),repeat=2):
a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
if a > b: return False
else:
... | Traceback (most recent call last):
File "/tmp/tmpq1x83wq4/tmpmeum1esg.py", line 22, in <module>
n = int(stdin.readline())
^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
| |
s768443463 | p00214 | u319725914 | 1535467670 | Python | Python3 | py | Runtime Error | 0 | 0 | 1491 | from sys import stdin
from itertools import product
def chk_in_rect(xy1,xy2):
for i,j in product(range(4),repeat=2):
a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
if a > b: return False
else:
... | ||
s497681735 | p00214 | u319725914 | 1535506184 | Python | Python3 | py | Runtime Error | 0 | 0 | 1564 | from sys import stdin
from itertools import product
def chk_in_rect(xy1,xy2):
for i in range(4):
chk = True
for j in range(4):
a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
... | ||
s739026374 | p00214 | u319725914 | 1535506356 | Python | Python3 | py | Runtime Error | 0 | 0 | 1563 | from sys import stdin
from itertools import product
def chk_in_rect(xy1,xy2):
for i in range(4):
chk = True
for j in range(4):
a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
... | ||
s386195314 | p00214 | u319725914 | 1535507903 | Python | Python3 | py | Runtime Error | 0 | 0 | 1600 | from sys import stdin
from itertools import product
def chk_in_rect(xy1,xy2):
for i in range(4):
chk = True
for j in range(4):
a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
... | ||
s278349724 | p00214 | u319725914 | 1535508304 | Python | Python3 | py | Runtime Error | 0 | 0 | 1602 | from sys import stdin
from itertools import product
def chk_in_rect(xy1,xy2):
for i in range(4):
chk = True
for j in range(4):
a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
... | ||
s046042068 | p00214 | u319725914 | 1535517046 | Python | Python3 | py | Runtime Error | 0 | 0 | 1689 | from sys import stdin
from itertools import product
def chk_in_rect(xy1,xy2):
chk = True
for i in range(4):
for j in range(4):
a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
... | ||
s068660280 | p00214 | u319725914 | 1535525918 | Python | Python3 | py | Runtime Error | 0 | 0 | 2024 | from sys import stdin
from itertools import product
def chk_in_rect(xy1,xy2):
chk2in1 = True
for i in range(4):
for j in range(4):
a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
... | ||
s674044506 | p00214 | u319725914 | 1535525984 | Python | Python3 | py | Runtime Error | 0 | 0 | 2021 | from sys import stdin
def chk_in_rect(xy1,xy2):
chk2in1 = True
for i in range(4):
for j in range(4):
a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
if a > b: chk2in1 = False;... | ||
s942080519 | p00214 | u319725914 | 1535526027 | Python | Python3 | py | Runtime Error | 0 | 0 | 1972 |
def chk_in_rect(xy1,xy2):
chk2in1 = True
for i in range(4):
for j in range(4):
a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
if a > b: chk2in1 = False; break
chk1in2 = T... | ||
s518550928 | p00214 | u319725914 | 1535526064 | Python | Python3 | py | Runtime Error | 0 | 0 | 2052 |
# def chk_in_rect(xy1,xy2):
# chk2in1 = True
# for i in range(4):
# for j in range(4):
# a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
# b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
# if a > b: chk2in1 = False; break
#... | ||
s237613453 | p00214 | u319725914 | 1535526113 | Python | Python3 | py | Runtime Error | 0 | 0 | 2009 |
# def chk_in_rect(xy1,xy2):
# chk2in1 = True
# for i in range(4):
# for j in range(4):
# a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
# b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
# if a > b: chk2in1 = False; break
#... | Traceback (most recent call last):
File "/tmp/tmprpu2yydi/tmprz6vbi0n.py", line 30, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s616130422 | p00214 | u319725914 | 1535526155 | Python | Python3 | py | Runtime Error | 0 | 0 | 2011 |
# def chk_in_rect(xy1,xy2):
# chk2in1 = True
# for i in range(4):
# for j in range(4):
# a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
# b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
# if a > b: chk2in1 = False; break
#... | Traceback (most recent call last):
File "/tmp/tmpn58ru3xb/tmpsji9m0ie.py", line 30, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s373926588 | p00214 | u319725914 | 1535526188 | Python | Python3 | py | Runtime Error | 0 | 0 | 233 | while(True):
n = int(input())
if not n: break
for _ in range(n):
m = int(input())
# p = list(range(m))
xys = [ list(map(int, input().split())) for i in range(m) ]
print(1)
continue
| Traceback (most recent call last):
File "/tmp/tmp5evclice/tmp1qvp2v4d.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s078351720 | p00214 | u319725914 | 1535526456 | Python | Python3 | py | Runtime Error | 0 | 0 | 227 | while(True):
n = int(input())
if not n: break
for _ in range(n):
m = int(input())
# p = list(range(m))
xys = [ map(int, input().split()) for i in range(m) ]
print(1)
continue
| Traceback (most recent call last):
File "/tmp/tmpu_8pv4dy/tmprrczr91z.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s749093849 | p00214 | u319725914 | 1535526480 | Python | Python3 | py | Runtime Error | 0 | 0 | 209 | while(True):
n = int(input())
if not n: break
for _ in range(n):
m = int(input())
# p = list(range(m))
xys = [ input() for i in range(m) ]
print(1)
continue
| Traceback (most recent call last):
File "/tmp/tmpu227ob6r/tmp6ian3if9.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s985937755 | p00214 | u319725914 | 1535532620 | Python | Python3 | py | Runtime Error | 0 | 0 | 1983 |
# def chk_in_rect(xy1,xy2):
# chk2in1 = True
# for i in range(4):
# for j in range(4):
# a = (xy1[(2*i+2)&7]-xy1[(2*i )&7]) * (xy2[(2*j+1)&7]-xy1[(2*i+1)&7])
# b = (xy1[(2*i+3)&7]-xy1[(2*i+1)&7]) * (xy2[(2*j )&7]-xy1[(2*i )&7])
# if a > b: chk2in1 = False; break
#... | Traceback (most recent call last):
File "/tmp/tmpv3x1p847/tmplu8rdfkm.py", line 30, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s279180811 | p00214 | u319725914 | 1535532843 | Python | Python3 | py | Runtime Error | 0 | 0 | 226 | while(True):
n = int(input())
if not n: break
for _ in range(n):
m = int(input())
# p = list(range(m))
xys = [ map(int,input().split()) for i in range(m) ]
print(1)
continue
| Traceback (most recent call last):
File "/tmp/tmpzv_e9mnm/tmpgw5mfiq6.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s842903732 | p00214 | u319725914 | 1535533423 | Python | Python3 | py | Runtime Error | 0 | 0 | 180 | while(True):
n = int(input())
if not n: break
for _ in range(n):
m = int(input())
xys = [ map(int,input().split()) for i in range(m) ]
print(1)
| Traceback (most recent call last):
File "/tmp/tmper3ydksd/tmpd5t4a3_s.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s346735987 | p00214 | u319725914 | 1535533542 | Python | Python3 | py | Runtime Error | 0 | 0 | 181 | while(True):
n = int(input())
if n == 0: break
for _ in range(n):
m = int(input())
xys = [ map(int,input().split()) for i in range(m) ]
print(1)
| Traceback (most recent call last):
File "/tmp/tmpn3pmvc87/tmpa12sxn_3.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s534834950 | p00214 | u319725914 | 1535533958 | Python | Python3 | py | Runtime Error | 0 | 0 | 181 | while(True):
n = int(input())
if n == 0: break
for _ in range(n):
m = int(input())
xys = [ map(str,input().split()) for i in range(m) ]
print(1)
| Traceback (most recent call last):
File "/tmp/tmph51re544/tmpsovphyzx.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s169870532 | p00214 | u319725914 | 1535534057 | Python | Python3 | py | Runtime Error | 0 | 0 | 181 | while(True):
n = int(input())
if n == 0: break
for i in range(n):
m = int(input())
xys = [ map(str,input().split()) for i in range(m) ]
print(1)
| Traceback (most recent call last):
File "/tmp/tmpkfkmk49w/tmp4g6v2z1v.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s445358355 | p00214 | u319725914 | 1535534099 | Python | Python3 | py | Runtime Error | 0 | 0 | 164 | while(True):
n = int(input())
if n == 0: break
for i in range(n):
m = int(input())
xys = [ input() for i in range(m) ]
print(1)
| Traceback (most recent call last):
File "/tmp/tmp150tm566/tmp1d00u7x2.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s439714284 | p00214 | u319725914 | 1535534627 | Python | Python3 | py | Runtime Error | 0 | 0 | 164 | while(True):
n = int(input())
if n == 0: break
for j in range(n):
m = int(input())
xys = [ input() for i in range(m) ]
print(1)
| Traceback (most recent call last):
File "/tmp/tmp4szlh955/tmp1eqk63ce.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s667039808 | p00214 | u319725914 | 1535535062 | Python | Python3 | py | Runtime Error | 0 | 0 | 147 | while(True):
n = int(input())
if n == 0: break
for j in range(n):
m = int(input())
xys = [ input() for i in range(m) ]
| Traceback (most recent call last):
File "/tmp/tmp9g26afq_/tmpabemy15k.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s596554721 | p00214 | u319725914 | 1535540557 | Python | Python3 | py | Runtime Error | 0 | 0 | 167 | while(True):
n = int(input())
if n == 0: break
for j in range(n):
m = int(input())
xys = [ [input() for k in range(4)] for i in range(m) ]
| Traceback (most recent call last):
File "/tmp/tmpfvv_nzlc/tmp94yz4kmr.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s652552320 | p00214 | u319725914 | 1535540576 | Python | Python3 | py | Runtime Error | 0 | 0 | 167 | while(True):
n = int(input())
if n == 0: break
for j in range(n):
m = int(input())
xys = [ [input() for k in range(8)] for i in range(m) ]
| Traceback (most recent call last):
File "/tmp/tmpg0wb5xnu/tmpsv9iub7e.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s916898280 | p00214 | u319725914 | 1535540597 | Python | Python3 | py | Runtime Error | 0 | 0 | 167 | while(True):
n = int(input())
if n == 0: break
for j in range(n):
m = int(input())
xys = [ [input() for k in range(2)] for i in range(m) ]
| Traceback (most recent call last):
File "/tmp/tmpk_ik_y9f/tmp4alnp3yv.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s449549545 | p00214 | u319725914 | 1535540715 | Python | Python3 | py | Runtime Error | 0 | 0 | 186 | while(True):
n = int(input())
if n == 0: break
for j in range(n):
m = int(input())
xys = [ [input() for k in range(4)] for i in range(m) ]
print(xys)
| Traceback (most recent call last):
File "/tmp/tmpw2gwtrqd/tmpw9l0nvss.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s544812741 | p00214 | u319725914 | 1535540753 | Python | Python3 | py | Runtime Error | 0 | 0 | 186 | while(True):
n = int(input())
if n == 0: break
for j in range(n):
m = int(input())
xys = [ [input() for k in range(4)] for i in range(m) ]
print("1")
| Traceback (most recent call last):
File "/tmp/tmp6gdrklfy/tmp85r35pxa.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s668420308 | p00214 | u319725914 | 1535548213 | Python | Python3 | py | Runtime Error | 0 | 0 | 187 | while(True):
n = int(input())
if not n: break
for _ in range(n):
m = int(input())
xys = [ list(map(int, input().split())) for i in range(m) ]
print(1)
| Traceback (most recent call last):
File "/tmp/tmp7dmh420r/tmpi8hakbdf.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s931630187 | p00214 | u319725914 | 1535548278 | Python | Python3 | py | Runtime Error | 0 | 0 | 198 | while(True):
n = int(input())
if not n: break
for _ in range(n):
m = int(input())
for i in range(m):
hoge = list(map(int, input().split()))
print(1)
| Traceback (most recent call last):
File "/tmp/tmplat4erby/tmp39q6cwg8.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s058083038 | p00214 | u319725914 | 1535636833 | Python | Python3 | py | Runtime Error | 0 | 0 | 198 | while(True):
n = int(input())
if not n: break
for _ in range(n):
m = int(input())
for i in range(m):
hoge = list(map(int, input().split()))
print(1)
| Traceback (most recent call last):
File "/tmp/tmph7_r39wc/tmpqioeme2d.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s552877007 | p00214 | u319725914 | 1535636905 | Python | Python3 | py | Runtime Error | 0 | 0 | 236 | while(True):
try:
n = int(input())
except:
break
if not n: break
for _ in range(n):
m = int(input())
for i in range(m):
hoge = list(map(int, input().split()))
print(1)
| ||
s251769033 | p00214 | u319725914 | 1535637049 | Python | Python3 | py | Runtime Error | 0 | 0 | 225 | while(True):
try:
n = int(input())
except:
break
if not n: break
for _ in range(n):
m = int(input())
hoge = [list(map(int, input().split())) for j in range(m)]
print(1)
| ||
s509607758 | p00214 | u319725914 | 1535637676 | Python | Python3 | py | Runtime Error | 0 | 0 | 227 | while(True):
try:
n = int(input())
except:
break
if not n: break
for _ in range(n):
m = int(input())
hoge = [list(map(int, input().split())) for j in range(m)]
print("1")
| ||
s858045796 | p00214 | u319725914 | 1535637709 | Python | Python3 | py | Runtime Error | 0 | 0 | 276 | from sys import stdin
while(True):
try:
n = int(stdin.readline())
except:
break
if not n: break
for _ in range(n):
m = int(stdin.readline())
hoge = [list(map(int, stdin.readline().split())) for j in range(m)]
print("1")
| ||
s870835065 | p00214 | u319725914 | 1535638243 | Python | Python3 | py | Runtime Error | 0 | 0 | 305 | from sys import stdin
while(True):
try:
n = int(stdin.readline())
except:
break
if not n: break
for _ in range(n):
m = int(stdin.readline())
try: hoge = [list(map(int, stdin.readline().split())) for j in range(m)]
except: break
print("1")
| ||
s306139888 | p00214 | u319725914 | 1535638328 | Python | Python3 | py | Runtime Error | 0 | 0 | 306 | from sys import stdin
while(True):
try:
n = int(stdin.readline())
except:
break
if not n: break
for _ in range(n):
m = int(stdin.readline())
try: hoge = [list(map(int, stdin.readline().split())) for j in range(m)]
except: excit()
print("1")
| ||
s811674355 | p00214 | u319725914 | 1535638386 | Python | Python3 | py | Runtime Error | 0 | 0 | 323 | from sys import stdin
stdin.readline()
while(True):
try:
n = int(stdin.readline())
except:
break
if not n: break
for _ in range(n):
m = int(stdin.readline())
try: hoge = [list(map(int, stdin.readline().split())) for j in range(m)]
except: excit()
print("1"... | ||
s057874300 | p00214 | u319725914 | 1535638448 | Python | Python3 | py | Runtime Error | 0 | 0 | 322 | from sys import stdin
stdin.readline()
while(True):
try:
n = int(stdin.readline())
except:
break
if not n: break
for _ in range(n):
m = int(stdin.readline())
try: hoge = [list(map(int, stdin.readline().split())) for j in range(m)]
except: exit()
print("1")... | ||
s747101886 | p00214 | u319725914 | 1535638458 | Python | Python3 | py | Runtime Error | 0 | 0 | 304 | from sys import stdin
while(True):
try:
n = int(stdin.readline())
except:
break
if not n: break
for _ in range(n):
m = int(stdin.readline())
try: hoge = [list(map(int, stdin.readline().split())) for j in range(m)]
except: exit()
print("1")
| ||
s645868946 | p00214 | u319725914 | 1535639105 | Python | Python3 | py | Runtime Error | 0 | 0 | 309 |
from sys import stdin
while(True):
try:
n = int(stdin.readline())
except:
exit()
if not n: exit()
for _ in range(n):
m = int(stdin.readline())
try: hoge = [list(map(int, stdin.readline().split())) for j in range(m)]
except: exit()
print("1\n")
| ||
s637568447 | p00214 | u567380442 | 1429250253 | Python | Python3 | py | Runtime Error | 0 | 0 | 1912 | from sys import stdin
readline = stdin.readline
class union_find:
def __init__(self, size):
self.table = [-1 for _ in range(size)]
def union(self, x, y):
x, y = self.find(x), self.find(y)
if x == y:
return True
if self.table[y] < self.table[x]:
x, y = ... | Traceback (most recent call last):
File "/tmp/tmph47vakc5/tmpls60bfj4.py", line 79, in <module>
main()
File "/tmp/tmph47vakc5/tmpls60bfj4.py", line 68, in main
n = int(readline())
^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
| |
s819016133 | p00215 | u567380442 | 1429261093 | Python | Python3 | py | Runtime Error | 19930 | 11848 | 1394 | from sys import stdin
readline = stdin.readline
from itertools import product
from collections import defaultdict
from collections import namedtuple
from operator import itemgetter
from math import isinf
Point = namedtuple('Point', 'x y')
def distance(a, b):
return abs(a.x - b.x) + abs(a.y - b.y)
def solve(rout... | Traceback (most recent call last):
File "/tmp/tmpt8ut_fie/tmpd6ayysc6.py", line 43, in <module>
main()
File "/tmp/tmpt8ut_fie/tmpd6ayysc6.py", line 30, in main
w, h = map(int, readline().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s431292899 | p00217 | u104911888 | 1368086034 | Python | Python | py | Runtime Error | 0 | 0 | 195 | while True:
n=input()
if n==0:break
D={}
m=0
for i in range(n):
p,d1,d2=map(int,raw_input().split())
t=d1+d2
m=max(m,t)
D[t]=p
print D[m],m | File "/tmp/tmpots1kbiz/tmpsl5zmo4h.py", line 11
print D[m],m
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s916617507 | p00217 | u104911888 | 1368097259 | Python | Python | py | Runtime Error | 0 | 0 | 197 | while True:
n=input()
if n==0:break
m=0
dic={}
for i in range(n):
p,d1,d2=map(int,raw_input().split())
t=d1+d2
m=max(m,t)
dic[t]=p
print dic[m],m | File "/tmp/tmp7t91ftxq/tmpzqpa8xk0.py", line 11
print dic[m],m
^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s656655911 | p00217 | u918572590 | 1370090737 | Python | Python | py | Runtime Error | 0 | 0 | 433 | def main():
while True:
n=int(raw_input())
if n==0: break;
solve(n)
def solve(n):
a=[]
for _ in range(n):
tmp=map(int,raw_input().split(" "))
a.append(Pair(tmp[0],tmp[1]+tmp[2]))
a.sort()
print a[-1].x, a[-1].y
class Pair:
def __init__(self,x,y):
... | File "/tmp/tmphoy3a39g/tmphylo3yvd.py", line 12
print a[-1].x, a[-1].y
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s269932095 | p00217 | u260980560 | 1386572956 | Python | Python | py | Runtime Error | 0 | 0 | 201 | while 1:
n = input()
if n==0: break
pm = -1; m = 0;
for i in xrange(n):
p,d1,d2 = map(int, raw_input().split())
if m<d1+d2:
pm = p; m = d1+d2;
print pm,m | File "/tmp/tmpuqquwidy/tmppe37neaj.py", line 9
print pm,m
^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s274773219 | p00217 | u260980560 | 1386573440 | Python | Python | py | Runtime Error | 0 | 0 | 201 | while 1:
n = input()
if n==0: break
pm = -1; m = -1;
for i in range(n):
p,d1,d2 = map(int, raw_input().split())
if m<d1+d2:
pm = p; m = d1+d2;
print pm,m | File "/tmp/tmp2fvk4kny/tmpfo19x8e0.py", line 9
print pm,m
^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s281004401 | p00217 | u260980560 | 1386573828 | Python | Python | py | Runtime Error | 0 | 0 | 223 | while 1:
n = input()
if n==0: break
l = []
for i in range(n):
p,d1,d2 = map(int, raw_input().split())
l.append([p,d1+d2])
l.sort(reverse=True, key=lambda x:x[1])
print l[0][0],l[0][1] | File "/tmp/tmp7wc2c8fk/tmp8kvr89t9.py", line 9
print l[0][0],l[0][1]
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s397605359 | p00217 | u633068244 | 1396444107 | Python | Python | py | Runtime Error | 0 | 0 | 162 | while 1:
r={}
n=input()
if n==0:break
for i in [1]*n:
p,d1,d2=map(int,raw_input().split())
r[p]=d1+d2
a=max(r.items(),key=lambda x:x[1])
print a[0],a[1] | File "/tmp/tmp4fi1uxxi/tmpzuvt7iho.py", line 9
print a[0],a[1]
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s281759064 | p00217 | u633068244 | 1396444336 | Python | Python | py | Runtime Error | 0 | 0 | 168 | while 1:
try:
r={}
n=input()
l=m=0
for i in [1]*n:
p,d1,d2=map(int,raw_input().split())
d=d1+d2
if d>m:l,m=p,d
print l,m
except syntaxError:
pass | File "/tmp/tmph88fi8au/tmp3tvsnz0k.py", line 10
print l,m
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s132509776 | p00217 | u633068244 | 1396444351 | Python | Python | py | Runtime Error | 0 | 0 | 168 | while 1:
try:
r={}
n=input()
l=m=0
for i in [1]*n:
p,d1,d2=map(int,raw_input().split())
d=d1+d2
if d>m:l,m=p,d
print l,m
except SyntaxError:
pass | File "/tmp/tmpink0wl2x/tmp_fgdat5y.py", line 10
print l,m
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s256745593 | p00218 | u814278309 | 1559138175 | Python | Python3 | py | Runtime Error | 0 | 0 | 499 | n=int(input())
while True:
if n==0:
break
for i in range(n):
m,e,j=map(int,input().split())
if m==100 or e==100 or j==100:
print('{}'.format('A'))
elif (m+e)/2>=90:
print('{}'.format('A'))
elif (m+e+j)/3>=80:
print('{}'.format('A'))
elif (m+e+j)/3>=70:
print('{}'.f... | Traceback (most recent call last):
File "/tmp/tmpzt43jkyh/tmpnzg96fnj.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s351460119 | p00218 | u647766105 | 1426653991 | Python | Python | py | Runtime Error | 0 | 0 | 412 | while True:
try:
N = input()
except:
break
pm, pe, pj = points = map(int, raw_input())
ave = sum(points) / 3.0
if 100 in points:
print "A"
elif (pm + pe) / 2.0 >= 90:
print "A"
elif ave >= 80:
print "A"
elif ave >= 70:
print "B"
elif av... | File "/tmp/tmpn91dn2sm/tmpguxf9kfr.py", line 9
print "A"
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s922236017 | p00218 | u078042885 | 1483523515 | Python | Python3 | py | Runtime Error | 0 | 0 | 292 | while 1:
n=int(input())
if n=='0': break
for _ in range(n):
a=list(map(int,input().split()))
c=sum(a)
if sum(a[:2])/2>=90 or c/3>=80 or 100 in a: b='A'
elif c/3>=70 or (c/3>=50 and (a[0]>=80 or a[1]>=80)): b='B'
else: b='C'
print(b) | Traceback (most recent call last):
File "/tmp/tmp4qewib8e/tmpf28e75y6.py", line 2, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s028022355 | p00218 | u546285759 | 1509356830 | Python | Python3 | py | Runtime Error | 0 | 0 | 505 | while True:
n = int(input())
if n == 0:
break
dataset = [map(int, input().split()) for _ in range(n)]
for map_ in dataset:
pm, pe, pj = map_
x = (pm + pe + pj) // 3
if 100 in p:
print("A")
elif (pm + pe) // 2 >= 90:
print("A")
elif ... | Traceback (most recent call last):
File "/tmp/tmpiiyds__q/tmpldgm36vk.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s311382611 | p00218 | u180584272 | 1379839399 | Python | Python | py | Runtime Error | 0 | 0 | 298 | for s in sys.stdin:
s = map(int, s.split())
if len(s)==1:
continue
else:
(pm,pe,pj) = tuple(s)
if 100 in (pm,pe,pj): c = "A"
elif pm+pe>=180: c = "A"
elif pm+pe+pj>=240: c = "A"
elif pm+pe+pj>=240: c = "B"
elif pm+pe+pj>=150 and (pm>=80 or pe>=80): c = "B"
else: c = "C"
print c | File "/tmp/tmppy5tzs0i/tmped4buifp.py", line 13
print c
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.