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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s794581975 | p00425 | u813534019 | 1476371069 | Python | Python | py | Runtime Error | 0 | 0 | 1151 | UP=0
SOURTH=1
EAST=2
saikoro = [1,2,3]
def north():
before=[saikoro[0], saikoro[1],saikoro[2]]
saikoro[UP] = before[SOURTH]
saikoro[SOURTH] = 7-before[UP]
def south():
before=[saikoro[0], saikoro[1],saikoro[2]]
saikoro[UP] = 7- before[SOURTH]
saikoro[SOURTH] = before[UP]
def east():
... | File "/tmp/tmp95b536uh/tmpdwzvzado.py", line 60
print sum
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s169478134 | p00425 | u813534019 | 1476372306 | Python | Python | py | Runtime Error | 0 | 0 | 414 | rot = {
"North": (1,5,2,3,0,4),
"East" : (3,1,0,5,4,2),
"West" : (2,1,5,0,4,3),
"South": (4,0,2,3,5,1),
"Right": (0,2,4,1,3,5),
"Left" : (0,3,1,4,2,5)
}
while 1:
n = int(raw_input())
if not n:
break
dice = [1,2,3,4,5,6]
ans = 0
for i in xrange(n):
r = rot[raw_... | File "/tmp/tmpvh1__dwd/tmp2z1gpwxe.py", line 19
print ans+1
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s680587623 | p00425 | u813534019 | 1476372338 | Python | Python | py | Runtime Error | 0 | 0 | 414 | rot = {
"North": (1,5,2,3,0,4),
"East" : (3,1,0,5,4,2),
"West" : (2,1,5,0,4,3),
"South": (4,0,2,3,5,1),
"Right": (0,2,4,1,3,5),
"Left" : (0,3,1,4,2,5)
}
while 1:
n = int(raw_input())
if not n:
break
dice = [1,2,3,4,5,6]
ans = 0
for i in xrange(n):
r = rot[raw_... | File "/tmp/tmprld4ld1o/tmp06kz6ptj.py", line 19
print ans+1
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s099323075 | p00425 | u813534019 | 1476372480 | Python | Python | py | Runtime Error | 0 | 0 | 414 | rot = {
"North": (1,5,2,3,0,4),
"East" : (3,1,0,5,4,2),
"West" : (2,1,5,0,4,3),
"South": (4,0,2,3,5,1),
"Right": (0,2,4,1,3,5),
"Left" : (0,3,1,4,2,5)
}
while 1:
n = int(raw_input())
if not n:
break
dice = [1,2,3,4,5,6]
ans = 0
for i in xrange(n):
r = rot[raw_... | File "/tmp/tmpscdlqk0f/tmpqzlaoriv.py", line 19
print ans+1
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s047762384 | p00425 | u813534019 | 1476372529 | Python | Python | py | Runtime Error | 0 | 0 | 414 | rot = {
"North": (1,5,2,3,0,4),
"East" : (3,1,0,5,4,2),
"West" : (2,1,5,0,4,3),
"South": (4,0,2,3,5,1),
"Right": (0,2,4,1,3,5),
"Left" : (0,3,1,4,2,5)
}
while 1:
n = int(raw_input())
if not n:
break
dice = [1,2,3,4,5,6]
ans = 0
for i in xrange(n):
r = rot[raw_... | File "/tmp/tmp64fuq2pk/tmpxevwwj9t.py", line 19
print ans+1
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s728571053 | p00425 | u116501200 | 1480680575 | Python | Python3 | py | Runtime Error | 0 | 0 | 553 | def North(dice):
dice[0],dice[1] = dice[1],7-dice[0]
def East(dice):
dice[2],dice[0] = dice[0],7-dice[2]
def West(dice):
dice[0],dice[2] = dice[2],7-dice[0]
def South(dice):
dice[1],dice[0] = dice[0],7-dice[1]
def Right(dice):
dice[1],dice[2] = dice[2],7-dice[1]
def Left(dice):
dice[2],dice... | Traceback (most recent call last):
File "/tmp/tmpbmhg8nkp/tmpbjy3ga_y.py", line 23, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s133081481 | p00425 | u116501200 | 1480680647 | Python | Python3 | py | Runtime Error | 0 | 0 | 648 | def North(dice):
dice[0],dice[1] = dice[1],7-dice[0]
def East(dice):
dice[2],dice[0] = dice[0],7-dice[2]
def West(dice):
dice[0],dice[2] = dice[2],7-dice[0]
def South(dice):
dice[1],dice[0] = dice[0],7-dice[1]
def Right(dice):
dice[1],dice[2] = dice[2],7-dice[1]
def Left(dice):
dice[2],dice... | Traceback (most recent call last):
File "/tmp/tmplgufjp2c/tmpu4ak06ri.py", line 34, in <module>
main()
File "/tmp/tmplgufjp2c/tmpu4ak06ri.py", line 24, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s539723858 | p00425 | u116501200 | 1480680858 | Python | Python3 | py | Runtime Error | 0 | 0 | 664 | def North(dice):
dice[0],dice[1] = dice[1],7-dice[0]
def East(dice):
dice[2],dice[0] = dice[0],7-dice[2]
def West(dice):
dice[0],dice[2] = dice[2],7-dice[0]
def South(dice):
dice[1],dice[0] = dice[0],7-dice[1]
def Right(dice):
dice[1],dice[2] = dice[2],7-dice[1]
def Left(dice):
dice[2],dice... | Traceback (most recent call last):
File "/tmp/tmptpykukgi/tmpysmdm56b.py", line 35, in <module>
main()
File "/tmp/tmptpykukgi/tmpysmdm56b.py", line 24, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s875216741 | p00425 | u116501200 | 1480681132 | Python | Python3 | py | Runtime Error | 0 | 0 | 653 | def East(dice):
dice[2],dice[0] = dice[0],7-dice[2]
def West(dice):
dice[0],dice[2] = dice[2],7-dice[0]
def South(dice):
dice[1],dice[0] = dice[0],7-dice[1]
def Right(dice):
dice[1],dice[2] = dice[2],7-dice[1]
def Left(dice):
dice[2],dice[1] = dice[1],7-dice[2]
def main():
dice = [1,2,3]#to... | Traceback (most recent call last):
File "/tmp/tmpji6775ut/tmp3et4gc04.py", line 33, in <module>
main()
File "/tmp/tmpji6775ut/tmp3et4gc04.py", line 22, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s833604015 | p00425 | u116501200 | 1480681343 | Python | Python3 | py | Runtime Error | 0 | 0 | 724 | def North(dice):
dice[0],dice[1] = dice[1],7-dice[0]
def East(dice):
dice[2],dice[0] = dice[0],7-dice[2]
def West(dice):
dice[0],dice[2] = dice[2],7-dice[0]
def South(dice):
dice[1],dice[0] = dice[0],7-dice[1]
def Right(dice):
dice[1],dice[2] = dice[2],7-dice[1]
def Left(dice):
dice[2],dice... | Traceback (most recent call last):
File "/tmp/tmpwnu6zilu/tmp187z6w7y.py", line 37, in <module>
main()
File "/tmp/tmpwnu6zilu/tmp187z6w7y.py", line 25, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s747974103 | p00425 | u116501200 | 1480681382 | Python | Python3 | py | Runtime Error | 0 | 0 | 676 | def North(dice):
dice[0],dice[1] = dice[1],7-dice[0]
def East(dice):
dice[2],dice[0] = dice[0],7-dice[2]
def West(dice):
dice[0],dice[2] = dice[2],7-dice[0]
def South(dice):
dice[1],dice[0] = dice[0],7-dice[1]
def Right(dice):
dice[1],dice[2] = dice[2],7-dice[1]
def Left(dice):
dice[2],dice... | Traceback (most recent call last):
File "/tmp/tmp6h8rx6n1/tmp2kd_79dx.py", line 35, in <module>
main()
File "/tmp/tmp6h8rx6n1/tmp2kd_79dx.py", line 24, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s860622806 | p00425 | u116501200 | 1480681387 | Python | Python | py | Runtime Error | 0 | 0 | 676 | def North(dice):
dice[0],dice[1] = dice[1],7-dice[0]
def East(dice):
dice[2],dice[0] = dice[0],7-dice[2]
def West(dice):
dice[0],dice[2] = dice[2],7-dice[0]
def South(dice):
dice[1],dice[0] = dice[0],7-dice[1]
def Right(dice):
dice[1],dice[2] = dice[2],7-dice[1]
def Left(dice):
dice[2],dice... | Traceback (most recent call last):
File "/tmp/tmp9befk0hu/tmpxsm50dfl.py", line 35, in <module>
main()
File "/tmp/tmp9befk0hu/tmpxsm50dfl.py", line 24, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s837049243 | p00425 | u116501200 | 1480682006 | Python | Python3 | py | Runtime Error | 0 | 0 | 661 | def North(dice):
dice[0],dice[1] = dice[1],7-dice[0]
def East(dice):
dice[2],dice[0] = dice[0],7-dice[2]
def West(dice):
dice[0],dice[2] = dice[2],7-dice[0]
def South(dice):
dice[1],dice[0] = dice[0],7-dice[1]
def Right(dice):
dice[1],dice[2] = dice[2],7-dice[1]
def Left(dice):
dice[2],dice... | Traceback (most recent call last):
File "/tmp/tmpgp_g0oqa/tmppt6462cl.py", line 35, in <module>
main()
File "/tmp/tmpgp_g0oqa/tmppt6462cl.py", line 24, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s121906055 | p00425 | u116501200 | 1480682032 | Python | Python3 | py | Runtime Error | 0 | 0 | 663 | def North(dice):
??????dice[0],dice[1] = dice[1],7-dice[0]
def East(dice):
dice[2],dice[0] = dice[0],7-dice[2]
def West(dice):
dice[0],dice[2] = dice[2],7-dice[0]
def South(dice):
dice[1],dice[0] = dice[0],7-dice[1]
def Right(dice):
dice[1],dice[2] = dice[2],7-dice[1]
def Left(dice):
dice[2],di... | File "/tmp/tmpp_7gwkb5/tmpugu6ifms.py", line 2
??????dice[0],dice[1] = dice[1],7-dice[0]
^
IndentationError: expected an indented block after function definition on line 1
| |
s807067986 | p00425 | u116501200 | 1480682093 | Python | Python3 | py | Runtime Error | 0 | 0 | 680 | # coding: UTF-8
def North(dice):
??????dice[0],dice[1] = dice[1],7-dice[0]
def East(dice):
dice[2],dice[0] = dice[0],7-dice[2]
def West(dice):
dice[0],dice[2] = dice[2],7-dice[0]
def South(dice):
dice[1],dice[0] = dice[0],7-dice[1]
def Right(dice):
dice[1],dice[2] = dice[2],7-dice[1]
def Left(dice... | File "/tmp/tmptu3le724/tmpegjdtjit.py", line 4
??????dice[0],dice[1] = dice[1],7-dice[0]
^
IndentationError: expected an indented block after function definition on line 3
| |
s686521996 | p00425 | u252368621 | 1481286407 | Python | Python3 | py | Runtime Error | 0 | 0 | 1112 | class Dice:
def __init__(self):
self.omote=1
self.sita=2
self.migi=3
self.ue=4
self.hidari=5
self.ura=6
def North(self):
self.omote,self.ue,self.ura,self.sita=self.sita,self.omote,self.ue,self.ura
def East(self):
self.omote,self.hidari,self.u... | Traceback (most recent call last):
File "/tmp/tmp_0_yd9jb/tmpwgqz8bdn.py", line 30, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s586912671 | p00425 | u252368621 | 1481287132 | Python | Python3 | py | Runtime Error | 0 | 0 | 1112 | class Dice:
def __init__(self):
self.omote=1
self.sita=2
self.migi=3
self.ue=5
self.hidari=4
self.ura=6
def North(self):
self.omote,self.ue,self.ura,self.sita=self.sita,self.omote,self.ue,self.ura
def East(self):
self.omote,self.hidari,self.u... | Traceback (most recent call last):
File "/tmp/tmpz7jm7q6y/tmpj0bv9zdn.py", line 30, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s772886870 | p00425 | u252368621 | 1481287258 | Python | Python3 | py | Runtime Error | 0 | 0 | 1128 | import sys
class Dice:
def __init__(self):
self.omote=1
self.sita=2
self.migi=3
self.ue=5
self.hidari=4
self.ura=6
def North(self):
self.omote,self.ue,self.ura,self.sita=self.sita,self.omote,self.ue,self.ura
def East(self):
self.omote,self.hi... | Traceback (most recent call last):
File "/tmp/tmpdsyhl02r/tmpm45pq1ua.py", line 31, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s932157776 | p00425 | u252368621 | 1481287327 | Python | Python3 | py | Runtime Error | 0 | 0 | 1099 | class Dice:
def __init__(self):
self.omote=1
self.sita=2
self.migi=3
self.ue=5
self.hidari=4
self.ura=6
def North(self):
self.omote,self.ue,self.ura,self.sita=self.sita,self.omote,self.ue,self.ura
def East(self):
self.omote,self.hidari,self.u... | Traceback (most recent call last):
File "/tmp/tmpoeoq2qyi/tmpgu7oibiv.py", line 28, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s117501960 | p00425 | u821897729 | 1488531004 | Python | Python | py | Runtime Error | 0 | 0 | 1693 | import sys
top = 1
north = 5
south = 2
west = 4
east = 3
back = 6
score = 1
def to_right():
global top, north, south, west, east, back
tmp = north
north = west
west = south
south = east
east = tmp
return top
def to_left():
global top, north, south, west, east, back
tmp = north
... | File "/tmp/tmp6fysso7o/tmppcrorrdd.py", line 91
print i
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s933538484 | p00425 | u846136461 | 1514045084 | Python | Python | py | Runtime Error | 0 | 0 | 1795 | def North(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[3]
new_dice[1] = dice[0]
new_dice[2] = dice[2]
new_dice[3] = dice[5]
new_dice[4] = dice[4]
new_dice[5] = dice[1]
return new_dice
def East(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[4]
new_dice[1] = dice[1]
new_dice[2] = dice[0]
new_dice[... | Traceback (most recent call last):
File "/tmp/tmp0snerkcv/tmpoffh3xoa.py", line 62, in <module>
n = int(raw_input())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s424508299 | p00425 | u467129921 | 1514046768 | Python | Python3 | py | Runtime Error | 0 | 0 | 1802 | # coding: utf-8
def North(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[3]
new_dice[1] = dice[0]
new_dice[2] = dice[2]
new_dice[3] = dice[5]
new_dice[4] = dice[4]
new_dice[5] = dice[1]
return new_dice
def East(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[4]
new_dice[1] = dice[1]
new_dice[2] = d... | Traceback (most recent call last):
File "/tmp/tmp0utryviw/tmpm3kc6kbm.py", line 64, in <module>
n = int(raw_input())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s819179091 | p00425 | u467129921 | 1514047406 | Python | Python3 | py | Runtime Error | 0 | 0 | 1802 | # coding: utf-8
def North(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[3]
new_dice[1] = dice[0]
new_dice[2] = dice[2]
new_dice[3] = dice[5]
new_dice[4] = dice[4]
new_dice[5] = dice[1]
return new_dice
def East(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[4]
new_dice[1] = dice[1]
new_dice[2] = d... | Traceback (most recent call last):
File "/tmp/tmp8x65x4_r/tmpso_z0uba.py", line 64, in <module>
n = int(raw_input())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s101881582 | p00425 | u467129921 | 1514047614 | Python | Python3 | py | Runtime Error | 0 | 0 | 1751 | def North(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[3]
new_dice[1] = dice[0]
new_dice[2] = dice[2]
new_dice[3] = dice[5]
new_dice[4] = dice[4]
new_dice[5] = dice[1]
return new_dice
def East(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[4]
new_dice[1] = dice[1]
new_dice[2] = dice[0]
new_dice[... | Traceback (most recent call last):
File "/tmp/tmpdbx40_13/tmpvvmh4vk5.py", line 62, in <module>
n = int(raw_input())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s221924287 | p00425 | u467129921 | 1514049060 | Python | Python | py | Runtime Error | 0 | 0 | 2210 | # coding: utf-8
def North(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[3]
new_dice[1] = dice[0]
new_dice[2] = dice[2]
new_dice[3] = dice[5]
new_dice[4] = dice[4]
new_dice[5] = dice[1]
return new_dice
def East(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[4]
new_d... | File "/tmp/tmppz8arqms/tmpsc5ri25y.py", line 73
elif instruct == "East":
^^^^
SyntaxError: invalid syntax
| |
s518998131 | p00425 | u467129921 | 1514049093 | Python | Python | py | Runtime Error | 0 | 0 | 2154 | # coding: utf-8
def North(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[3]
new_dice[1] = dice[0]
new_dice[2] = dice[2]
new_dice[3] = dice[5]
new_dice[4] = dice[4]
new_dice[5] = dice[1]
return new_dice
def East(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[4]
new_d... | Traceback (most recent call last):
File "/tmp/tmp04agnhu7/tmpm6rrsjk9.py", line 64, in <module>
n = int(raw_input())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s429492371 | p00425 | u467129921 | 1514049172 | Python | Python | py | Runtime Error | 0 | 0 | 2078 | import sys
# coding: utf-8
def North(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[3]
new_dice[1] = dice[0]
new_dice[2] = dice[2]
new_dice[3] = dice[5]
new_dice[4] = dice[4]
new_dice[5] = dice[1]
return new_dice
def East(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[... | Traceback (most recent call last):
File "/tmp/tmpncslz3bu/tmp24l5o28u.py", line 66, in <module>
n = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s224520054 | p00425 | u467129921 | 1514050589 | Python | Python | py | Runtime Error | 0 | 0 | 558 | while 1:
T,U,N,E,W,S=1,6,5,3,4,2
n=int(raw_input())
if n==0: break
ans=T
for i in range(n):
di=raw_input()
if di=="North":
N,T,S,U=T,S,U,N
elif di=="East":
E,U,W,T=T,E,U,W
elif di=="South":
T,S,U,N=N,T,S,U
elif di=="West":
... | File "/tmp/tmp79p4n0px/tmpirpylf3f.py", line 21
print '[*] Error ->',di
^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s882547625 | p00425 | u467129921 | 1514050608 | Python | Python | py | Runtime Error | 0 | 0 | 581 | #!/usr/bin/env python
while 1:
T,U,N,E,W,S=1,6,5,3,4,2
n=int(raw_input())
if n==0: break
ans=T
for i in range(n):
di=raw_input()
if di=="North":
N,T,S,U=T,S,U,N
elif di=="East":
E,U,W,T=T,E,U,W
elif di=="South":
T,S,U,N=N,T,S,U
... | File "/tmp/tmp3wlm0icm/tmp97r9yw85.py", line 23
print '[*] Error ->',di
^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s590841029 | p00425 | u467129921 | 1514050917 | Python | Python | py | Runtime Error | 0 | 0 | 1785 | def North(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[3]
new_dice[1] = dice[0]
new_dice[2] = dice[2]
new_dice[3] = dice[5]
new_dice[4] = dice[4]
new_dice[5] = dice[1]
return new_dice
def East(dice):
new_dice = [0,0,0,0,0,0]
new_dice[0] = dice[4]
new_dice[1] = dice[1]
new_dice[2] = dice[0]
new_dice[... | Traceback (most recent call last):
File "/tmp/tmpud9_y9he/tmpss7_g4yr.py", line 62, in <module>
n = int(raw_input())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s822926374 | p00425 | u467129921 | 1514051870 | Python | Python | py | Runtime Error | 0 | 0 | 750 | while 1:
????????T,U,N,E,W,S=1,6,5,3,4,2
????????n=int(raw_input())
????????if n==0: break
????????ans=T
????????for i in range(n):
????????????????di=raw_input()
????????????????if di=="North":
????????????????????????N,T,S,U=T,S,U,N
????????????????elif di=="East":
????????????????????????E,U,W,T=T,E,U,W
????????????... | File "/tmp/tmp3pou2lt8/tmp_85b5r1c.py", line 2
????????T,U,N,E,W,S=1,6,5,3,4,2
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s932430355 | p00425 | u467129921 | 1514051879 | Python | Python | py | Runtime Error | 0 | 0 | 642 | while 1:
????????T,U,N,E,W,S=1,6,5,3,4,2
????????n=int(raw_input())
????????if n==0: break
????????ans=T
????????for i in range(n):
????????????????di=raw_input()
????????????????if di=="North":
????????????????????????N,T,S,U=T,S,U,N
????????????????elif di=="East":
????????????????????????E,U,W,T=T,E,U,W
????????????... | File "/tmp/tmpnst7q4mv/tmphlawe1yx.py", line 2
????????T,U,N,E,W,S=1,6,5,3,4,2
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s106206025 | p00425 | u467129921 | 1514051889 | Python | Python | py | Runtime Error | 0 | 0 | 633 | while 1:
????????T,U,N,E,W,S=1,6,5,3,4,2
????????n=input()
????????if n==0: break
????????ans=T
????????for i in range(n):
????????????????di=raw_input()
????????????????if di=="North":
????????????????????????N,T,S,U=T,S,U,N
????????????????elif di=="East":
????????????????????????E,U,W,T=T,E,U,W
????????????????elif ... | File "/tmp/tmpmw0xbkg2/tmpdsot_58j.py", line 2
????????T,U,N,E,W,S=1,6,5,3,4,2
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s980603468 | p00425 | u467129921 | 1514051912 | Python | Python | py | Runtime Error | 0 | 0 | 641 | while 1:
????????T,U,N,E,W,S=1,6,5,3,4,2
????????n=input()
????????if n==0:
break
????????ans=T
????????for i in range(n):
????????????????di=raw_input()
????????????????if di=="North":
????????????????????????N,T,S,U=T,S,U,N
????????????????elif di=="East":
????????????????????????E,U,W,T=T,E,U,W
?????????????... | File "/tmp/tmp11u6motz/tmpp3jvhk18.py", line 2
????????T,U,N,E,W,S=1,6,5,3,4,2
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s263192880 | p00425 | u467129921 | 1514051939 | Python | Python | py | Runtime Error | 0 | 0 | 642 | while 1:
????????T,U,N,E,W,S=1,6,5,3,4,2
????????n=input()
????????if n==0:
break
????????ans=T
????????for i in range(n):
????????????????di=raw_input()
????????????????if di=="North":
????????????????????????N,T,S,U=T,S,U,N
????????????????elif di=="East":
????????????????????????E,U,W,T=T,E,U,W
?????????????... | File "/tmp/tmpa3gkycmz/tmp28ij1460.py", line 2
????????T,U,N,E,W,S=1,6,5,3,4,2
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s009525028 | p00425 | u546285759 | 1515818565 | Python | Python3 | py | Runtime Error | 0 | 0 | 500 | operation = {"North": (1, 5, 2, 3, 0, 4),
"East": (3, 1, 0, 5, 4, 2),
"West": (2, 1, 5, 0, 4, 3),
"South": (4, 0, 2, 3, 5, 1),
"Right": (0, 2, 4, 1, 3, 5),
"Left": (0, 3, 1, 4, 2, 5)}
while True:
n = int(input())
if n == 0:
break
dice... | Traceback (most recent call last):
File "/tmp/tmpn7cq2k8s/tmpw9xt_8um.py", line 9, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s646865519 | p00425 | u150984829 | 1517043689 | Python | Python3 | py | Runtime Error | 0 | 0 | 245 | import sys
s=sys.stdin
while 1:
n=int(s.readline())
if n==0:break
a=1;s='123456'
for _ in[0]*n:
s=[s[int(e)]for e in{'N':"152304",'E':"310542",'W':"215043",'S':"402351",'R':"024135",'L':"031425"}[s.readline()[0]]]
a+=int(s[0])
print(a)
| Traceback (most recent call last):
File "/tmp/tmp052488xx/tmpgcry5vu1.py", line 4, in <module>
n=int(s.readline())
^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
| |
s150796175 | p00425 | u847467233 | 1530255532 | Python | Python3 | py | Runtime Error | 0 | 0 | 497 | # AOJ 0502: Dice
# Python3 2018.6.29 bal4u
dir = { "North":1, "East":2, "West":3, "South":4, "Right":5, "Left":6 }
rot = ((0,1,2,3,4,5,6),(0,2,6,3,4,1,5),(0,4,2,1,6,5,3),(0,3,2,6,1,5,4), \
(0,5,1,3,4,6,2),(0,1,3,5,2,4,6),(0,1,4,2,5,3,6))
while True:
n = int(input())
if n == 0: break
dice = [[i for i in ran... | Traceback (most recent call last):
File "/tmp/tmp5dcs9kge/tmp9kljrewr.py", line 10, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s066089365 | p00425 | u847467233 | 1530262814 | Python | Python3 | py | Runtime Error | 0 | 0 | 493 | # AOJ 0502: Dice
# Python3 2018.6.29 bal4u
d = { "North":1, "East":2, "West":3, "South":4, "Right":5, "Left":6 }
rot = ((0,1,2,3,4,5,6),(0,2,6,3,4,1,5),(0,4,2,1,6,5,3),(0,3,2,6,1,5,4), \
(0,5,1,3,4,6,2),(0,1,3,5,2,4,6),(0,1,4,2,5,3,6))
while True:
n = int(input())
if n == 0: break
dice = [[i for i in range... | Traceback (most recent call last):
File "/tmp/tmpnrk6hd_r/tmptpe75bhv.py", line 10, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s453745787 | p00426 | u260980560 | 1540943893 | Python | Python3 | py | Runtime Error | 0 | 0 | 1049 | def dfs(A, B, C, x):
key = tuple(A+[0]+B+[0]+C)
if key in memo or M < x:
return
memo[key] = x
if A:
if not B or B[-1] < A[-1]:
B.append(A.pop())
dfs(A, B, C, x+1)
A.append(B.pop())
if B:
if not A or A[-1] < B[-1]:
A.append(B.pop... | Traceback (most recent call last):
File "/tmp/tmpoq9t5ui6/tmpimphnmwn.py", line 27, in <module>
N, M = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s595190642 | p00426 | u260980560 | 1540943934 | Python | Python3 | py | Runtime Error | 0 | 0 | 1089 | import sys
sys.setrecursionlimit(10**8)
def dfs(A, B, C, x):
key = tuple(A+[0]+B+[0]+C)
if key in memo or M < x:
return
memo[key] = x
if A:
if not B or B[-1] < A[-1]:
B.append(A.pop())
dfs(A, B, C, x+1)
A.append(B.pop())
if B:
if not A or A... | Traceback (most recent call last):
File "/tmp/tmpfq828f44/tmp09mzvn_z.py", line 29, in <module>
N, M = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s448199735 | p00426 | u931670212 | 1425385409 | Python | Python3 | py | Runtime Error | 0 | 0 | 709 | import itertools
R, C = map(int, raw_input().split())
a = []
for i in range(R):
a.append(map(int, raw_input().split()))
ans = 0
for pat in itertools.product((0, 1), repeat = R):
rev = [[c^p for c in row]
for (row, p) in zip(a, pat)]
cols = zip(*rev)
zeros = [c.count(0) for c in cols]
po... | File "/tmp/tmpi6v0tbyl/tmp1wzbdz6_.py", line 15
print ans
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s467093893 | p00427 | u847467233 | 1530393961 | Python | Python3 | py | Runtime Error | 0 | 0 | 517 | # AOJ 0504: Card Game II
# Python3 2018.7.1 bal4u
def calc(b, n):
a = 1
for i in range(n+1):
if a >= b:
d[i] += a//b
a %= b
if a == 0: break
a *= 10
ans = ['0']*10005
while True:
n, k, m, r = map(int, input().split())
if n == 0: break
r += 6
d = [0]*10005
calc(n, r)
if m == 1:
for i in range(1, ... | Traceback (most recent call last):
File "/tmp/tmp5cycq8km/tmpzdz33eks.py", line 15, in <module>
n, k, m, r = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s024791529 | p00428 | u150414576 | 1409322779 | Python | Python | py | Runtime Error | 0 | 0 | 331 | while True:
students,places = map(int,raw_input().split())
if students=0 and places~0:
break
res = dict(zip(range(places),[0]*places))
for i in range(students):
points = map(int,raw_input().split())
for j in range(places):
res[j] += points[j]
for k,v in sorted(res.items(),key=lambda x:x[1], reverse=True):... | File "/tmp/tmpqs9tncpf/tmpi5zauwu6.py", line 3
if students=0 and places~0:
^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s386530107 | p00428 | u150414576 | 1409323190 | Python | Python | py | Runtime Error | 0 | 0 | 349 | while True:
students,places = map(int,raw_input().split())
if students == 0 and places =~ 0:
break
res = dict(zip(range(places),[0]*places))
for i in range(students):
points = map(int,raw_input().split())
for j in range(places):
res[j] += points[j]
for k,v in sorted(res.items(),key=lambda x:x[1], reverse=... | File "/tmp/tmpaqs7mrfv/tmpsblu22nh.py", line 3
if students == 0 and places =~ 0:
^
SyntaxError: invalid syntax
| |
s771536712 | p00428 | u150414576 | 1409323437 | Python | Python | py | Runtime Error | 0 | 0 | 357 | while True:
students,places = map(int,raw_input().split())
if students == 0 and places == 0:
break
res = dict(zip(range(1,places+1),[0]*places))
for i in range(students):
points = map(int,raw_input().split())
for j in range(1,places+1):
res[j] += points[j]
for k,v in sorted(res.items(),key=lambda x:x[1], ... | File "/tmp/tmp0wgi_669/tmp73hrhd6x.py", line 11
print k,
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s822994964 | p00428 | u110278902 | 1457190335 | Python | Python | py | Runtime Error | 0 | 0 | 482 | N, M = map(int, raw_input().split())
def max_vote(places):
max_index = places.index(max(places))
places[max_index] = -1
return max_index + 1, places
while 1:
places = []
for m in range(M):
places.append(0)
for n in N:
votes = map(int, raw_input().split())
count = 0
for vote in votes:
... | File "/tmp/tmperai8aa3/tmp2u7mjx76.py", line 23
print answer,
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s920486235 | p00428 | u110278902 | 1457190339 | Python | Python | py | Runtime Error | 0 | 0 | 482 | N, M = map(int, raw_input().split())
def max_vote(places):
max_index = places.index(max(places))
places[max_index] = -1
return max_index + 1, places
while 1:
places = []
for m in range(M):
places.append(0)
for n in N:
votes = map(int, raw_input().split())
count = 0
for vote in votes:
... | File "/tmp/tmp63old8f5/tmp6_q0teei.py", line 23
print answer,
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s266358296 | p00428 | u110278902 | 1457190343 | Python | Python | py | Runtime Error | 0 | 0 | 482 | N, M = map(int, raw_input().split())
def max_vote(places):
max_index = places.index(max(places))
places[max_index] = -1
return max_index + 1, places
while 1:
places = []
for m in range(M):
places.append(0)
for n in N:
votes = map(int, raw_input().split())
count = 0
for vote in votes:
... | File "/tmp/tmpkz32h91p/tmpuszmvtix.py", line 23
print answer,
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s603178764 | p00428 | u110278902 | 1457190353 | Python | Python | py | Runtime Error | 0 | 0 | 482 | N, M = map(int, raw_input().split())
def max_vote(places):
max_index = places.index(max(places))
places[max_index] = -1
return max_index + 1, places
while 1:
places = []
for m in range(M):
places.append(0)
for n in N:
votes = map(int, raw_input().split())
count = 0
for vote in votes:
... | File "/tmp/tmpivun3nbr/tmp830ky611.py", line 23
print answer,
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s395485842 | p00428 | u110278902 | 1457190438 | Python | Python | py | Runtime Error | 0 | 0 | 508 | def max_vote(places):
max_index = places.index(max(places))
places[max_index] = -1
return max_index + 1, places
while 1:
N, M = map(int, raw_input().split())
if N ==0, M ==0: break
places = []
for m in range(M):
places.append(0)
for n in N:
votes = map(int, raw_input().split())
count = 0
... | File "/tmp/tmplag081_o/tmpekhxi41a.py", line 8
if N ==0, M ==0: break
^
SyntaxError: invalid syntax
| |
s084332128 | p00428 | u110278902 | 1457190736 | Python | Python | py | Runtime Error | 0 | 0 | 511 | def max_vote(places):
max_index = places.index(max(places))
places[max_index] = -1
return max_index + 1, places
while 1:
N, M = map(int, raw_input().split())
if N ==0 and M ==0: break
places = []
for m in range(M):
places.append(0)
for n in N:
votes = map(int, raw_input().split())
count = ... | File "/tmp/tmplcsrwvhc/tmput4adsj_.py", line 23
print answer,
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s541096659 | p00428 | u110278902 | 1457202572 | Python | Python | py | Runtime Error | 0 | 0 | 519 | def max_vote(places):
max_index = places.index(max(places))
places[max_index] = -1
return max_index + 1, places
while 1:
N, M = map(int, raw_input().split())
if N ==0 and M ==0: break
places = []
for m in range(M):
places.append(0)
for n in N:
votes = map(int, raw_input().split())
count = ... | File "/tmp/tmpr8vwmwch/tmp6tpnc5tq.py", line 23
print answer,
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s995016995 | p00428 | u110278902 | 1457457647 | Python | Python | py | Runtime Error | 0 | 0 | 301 | while 1:
n, m = map(int, raw_input())
if n == 0 and m == 0:
break
places = dict(zip(range(m), [0]*m))
for i in range(n):
vote = map(int,raw_input().split())
for j in range(m):
places[j] += vote[j]
for k, v sorted(a.items,key=lambda x:x[1],reverse=1):
print k+1
print | File "/tmp/tmpzu6qax2p/tmps8xyn1_x.py", line 10
for k, v sorted(a.items,key=lambda x:x[1],reverse=1):
^^^^^^
SyntaxError: invalid syntax
| |
s235598698 | p00428 | u110278902 | 1457457654 | Python | Python | py | Runtime Error | 0 | 0 | 301 | while 1:
n, m = map(int, raw_input())
if n == 0 and m == 0:
break
places = dict(zip(range(m), [0]*m))
for i in range(n):
vote = map(int,raw_input().split())
for j in range(m):
places[j] += vote[j]
for k, v sorted(a.items,key=lambda x:x[1],reverse=1):
print k+1
print | File "/tmp/tmp2sdbckdf/tmp5nc3j7j3.py", line 10
for k, v sorted(a.items,key=lambda x:x[1],reverse=1):
^^^^^^
SyntaxError: invalid syntax
| |
s521821349 | p00428 | u110278902 | 1457457676 | Python | Python | py | Runtime Error | 0 | 0 | 309 | while 1:
n, m = map(int, raw_input().split())
if n == 0 and m == 0:
break
places = dict(zip(range(m), [0]*m))
for i in range(n):
vote = map(int,raw_input().split())
for j in range(m):
places[j] += vote[j]
for k, v sorted(a.items,key=lambda x:x[1],reverse=1):
print k+1
print | File "/tmp/tmpfj5vo346/tmpmln0y72v.py", line 10
for k, v sorted(a.items,key=lambda x:x[1],reverse=1):
^^^^^^
SyntaxError: invalid syntax
| |
s626581025 | p00428 | u110278902 | 1457457697 | Python | Python | py | Runtime Error | 0 | 0 | 314 | while 1:
n, m = map(int, raw_input().split())
if n == 0 and m == 0:
break
places = dict(zip(range(m), [0]*m))
for i in range(n):
vote = map(int,raw_input().split())
for j in range(m):
places[j] += vote[j]
for k, v sorted(places.items,key=lambda x:x[1],reverse=1):
print k+1
print | File "/tmp/tmp8tfvifsq/tmp3hb90_v6.py", line 10
for k, v sorted(places.items,key=lambda x:x[1],reverse=1):
^^^^^^
SyntaxError: invalid syntax
| |
s620099775 | p00429 | u110278902 | 1457637373 | Python | Python | py | Runtime Error | 0 | 0 | 488 | def hoge(numbers):
count = 1
answer = []
prev_number = number[0]
for i, number in enumerate(numbers):
if number == numbers[i-1] or count == 0:
count += 1
elif number != numbers[i-1]:
asnwer.append(count)
answer.append(number)
count = 0
return answer
while 1:
N = ... | File "/tmp/tmpmlnf1siq/tmp_txbw27d.py", line 20
print number,
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s510069027 | p00429 | u779627195 | 1352282751 | Python | Python | py | Runtime Error | 0 | 0 | 549 | while 1:
n = input()
if n == 0: break
for i in range(n):
if i == 0: ns = str(input())
else: pass
temp = ''
count = 1
for i in range(len(ns)-1):
if ns[i] == ns[i+1]:
... | File "/tmp/tmp5dzo7211/tmpccvc5yze.py", line 17
print ns
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s620732319 | p00429 | u779627195 | 1352283377 | Python | Python | py | Runtime Error | 0 | 0 | 522 | while 1:
n = input()
if n == 0: break
for i in range(n):
if i == 0: ns = str(input())
temp = ''
count = 1
for i in range(len(ns)-1):
if ns[i] == ns[i+1]:
count += 1
... | File "/tmp/tmpm4dlwt3z/tmpsvf648p8.py", line 16
print ns
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s449279557 | p00429 | u779627195 | 1352283435 | Python | Python | py | Runtime Error | 0 | 0 | 522 | while 1:
n = input()
if n == 0: break
for i in range(n):
if i == 0: ns = str(input())
temp = ''
count = 1
for i in range(len(ns)-1):
if ns[i] == ns[i+1]:
count += 1
... | File "/tmp/tmpgr380vr9/tmplqxg05fw.py", line 16
print ns
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s269417610 | p00429 | u779627195 | 1352284219 | Python | Python | py | Runtime Error | 0 | 0 | 522 | while 1:
n = input()
if n == 0: break
for j in range(n):
if j == 0: ns = str(input())
temp = ''
count = 1
for i in range(len(ns)-1):
if ns[i] == ns[i+1]:
count += 1
... | File "/tmp/tmp4yq473sv/tmpnar4pihi.py", line 16
print ns
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s645736608 | p00429 | u915761101 | 1352285496 | Python | Python | py | Runtime Error | 0 | 0 | 536 | while 1:
n = input()
if n == 0: break
ns=""
for i in range(n):
if i == 0: ns = str(input())
temp = ''
count = 1
for j in range(len(ns)-1):
if ns[j] == ns[j+1]:
count +=... | File "/tmp/tmpv75d7rhd/tmpr1v21x5q.py", line 17
print ns
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s966271504 | p00429 | u912573907 | 1375183587 | Python | Python | py | Runtime Error | 0 | 0 | 403 | def foo(n):
ret = ""
n = str(n)
cnt = 1
for i in range(1, len(n)):
if n[i - 1] == n[i]:
cnt += 1
continue
else:
ret += str(cnt) + n[i - 1]
cnt = 1
ret += str(cnt) + n[-1]
return long(ret)
while 1:
n = input()
if n == 0:
... | File "/tmp/tmp0x9vmzr0/tmpdz7ia6x2.py", line 25
print m
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s443446999 | p00429 | u604412493 | 1378273015 | Python | Python | py | Runtime Error | 0 | 0 | 532 | import sys
fp = open("input.txt", "r")
#fp = sys.stdin
def operate(string):
count = 1
prev = string[0]
ret = ""
for c in string[1:]:
if c == prev:
count += 1
else:
ret += str(count) + prev
count = 1
prev = c
ret += str(count) + prev
#... | File "/tmp/tmpszx6bm98/tmp7jz5qbh1.py", line 32
print orig
^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s164714359 | p00430 | u811434779 | 1440041558 | Python | Python | py | Runtime Error | 0 | 0 | 388 | l = [0 for i in range(20)]
pos = goal = 0
def solve(cur,sum):
global pos, goal
if cur == goal:
print " ".join(map(str,l[:pos]))
return
for i in range(sum,0,-1):
if cur + i <= goal:
l[pos] = i
pos += 1
solve(cur+i,i)
pos -= 1
while True:... | File "/tmp/tmpj31yldq2/tmpz5r88p5n.py", line 6
print " ".join(map(str,l[:pos]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s153760963 | p00430 | u110278902 | 1459278265 | Python | Python | py | Runtime Error | 0 | 0 | 468 | while(1):
l = []
input = int(raw_input())
if input == 0:
break
print input
number = [input - 1, 1]
for n in len(number):
print n,
print
while(1):
if number[1] == 2:
l[0] = number[0] - 1
for i in len(number):
l.append[1]
elif number[1] == 1:
l[0] = number[0] - 1... | File "/tmp/tmpogl9gwop/tmpivv4j3qi.py", line 6
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s793863469 | p00430 | u110278902 | 1459278293 | Python | Python | py | Runtime Error | 0 | 0 | 459 | while(1):
l = []
input = input()
if input == 0:
break
print input
number = [input - 1, 1]
for n in len(number):
print n,
print
while(1):
if number[1] == 2:
l[0] = number[0] - 1
for i in len(number):
l.append[1]
elif number[1] == 1:
l[0] = number[0] - 1
l[... | File "/tmp/tmp_br0ca2o/tmplly23elt.py", line 6
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s972006551 | p00430 | u110278902 | 1460020720 | Python | Python | py | Runtime Error | 0 | 0 | 234 | input = [input()]
if input[0] == 0:
break
while input[0] != 1:
if input[1] == 1:
input[0] -= 1
input[0] += 1
elif input[1] == 2:
input[1] -= 1
input.append(1)
for e in range(0, len(input)):
print e,
print | File "/tmp/tmpzeltlu73/tmpdhn96174.py", line 12
print e,
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s277114064 | p00430 | u110278902 | 1460021530 | Python | Python | py | Runtime Error | 0 | 0 | 256 | input = input()
print input
if input == 0:
break
input = [5, 0]
while input[0] != 1:
if input[1] == 1:
input[0] -= 1
input[0] += 1
elif input[1] == 2:
input[1] -= 1
input.append(1)
for e in range(0, len(input)):
print e,
print | File "/tmp/tmpb_1d2ru_/tmpns5qp5as.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s400511026 | p00430 | u110278902 | 1460021594 | Python | Python | py | Runtime Error | 0 | 0 | 273 | input = input()
print input
if input == 0:
break
input = [5, 0]
while input[0] != 1:
if input[1] == 1 or input[2] == 0:
input[0] -= 1
input[0] += 1
elif input[1] == 2:
input[1] -= 1
input.append(1)
for e in range(0, len(input)):
print e,
print | File "/tmp/tmpc474kcwh/tmpoatgq5b8.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s415631541 | p00430 | u110278902 | 1460021646 | Python | Python | py | Runtime Error | 0 | 0 | 273 | input = input()
print input
if input == 0:
break
input = [5, 0]
while input[0] != 1:
if input[1] == 1 or input[1] == 0:
input[0] -= 1
input[0] += 1
elif input[1] == 2:
input[1] -= 1
input.append(1)
for e in range(0, len(input)):
print e,
print | File "/tmp/tmpuisbk5jg/tmpoknwhsy1.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s758110694 | p00430 | u110278902 | 1460021720 | Python | Python | py | Runtime Error | 0 | 0 | 280 | input = input()
print input
if input == 0:
break
input = [5, 0]
while input[0] != 1:
if input[1] == 1 or input[1] == 0:
input[0] -= 1
input[0] += 1
elif input[1] == 2:
input[1] -= 1
input.append(1)
for e in range(0, len(input)):
print input[e],
print | File "/tmp/tmpn5vhqlfo/tmpyfi0hmyk.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s171179928 | p00430 | u110278902 | 1460021739 | Python | Python | py | Runtime Error | 0 | 0 | 280 | input = input()
print input
if input == 0:
break
input = [5, 0]
while input[0] != 1:
if input[1] == 1 or input[1] == 0:
input[0] -= 1
input[1] += 1
elif input[1] == 2:
input[1] -= 1
input.append(1)
for e in range(0, len(input)):
print input[e],
print | File "/tmp/tmp1cpbfzeo/tmpg981jch6.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s219542328 | p00430 | u110278902 | 1460022387 | Python | Python | py | Runtime Error | 0 | 0 | 283 | input = input()
print input
if input == 0:
break
input = [5, 0]
while input[0] != 1:
if input[1] == 1 or input[1] == 0:
input[0] -= 1
input[1] += 1
elif input[1] == 2:
input[1] -= 1
input.append(1)
for e in range(0, len(input)):
print input[e],
print '' | File "/tmp/tmppaiws3p7/tmp1ww4iyh0.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s867781232 | p00430 | u110278902 | 1460023477 | Python | Python | py | Runtime Error | 0 | 0 | 265 | input = input()
print input
if input == 0:
break
n = [input, 0]
while n[0] > 1 and n[0] <= input:
if n[1] == 1 or n[1] == 0:
n[0] -= 1
n[1] += 1
elif n[1] == 2:
n[1] -= 1
input.append(1)
for e in range(0, len(n)):
print n[e],
print '' | File "/tmp/tmpyne490vi/tmpagm8884z.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s477032911 | p00430 | u110278902 | 1460023977 | Python | Python | py | Runtime Error | 0 | 0 | 332 | input = input()
print input
if input == 0:
break
n = [input, 0]
while n[0] > 1 and n[0] <= input:
if n[1] == 1 or n[1] == 0:
n[0] -= 1
n[1] += 1
elif n[1] == 2:
n[1] -= 1
input.append(1)
for e in range(0, len(n)):
print n[e],
print ''
n[1] -= 1
input.append(1)
for e in range(0, len(n)):
... | File "/tmp/tmp4pvyojav/tmp4tw9u9dv.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s432872779 | p00430 | u110278902 | 1460024021 | Python | Python | py | Runtime Error | 0 | 0 | 336 | input = input()
print input
if input == 0:
break
n = [input, 0]
while n[0] > 1 and n[0] <= input + 1:
if n[1] == 1 or n[1] == 0:
n[0] -= 1
n[1] += 1
elif n[1] == 2:
n[1] -= 1
input.append(1)
for e in range(0, len(n)):
print n[e],
print ''
n[1] -= 1
input.append(1)
for e in range(0, len(n)... | File "/tmp/tmpyno06qt1/tmpl1cev7_7.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s384853702 | p00430 | u110278902 | 1460024289 | Python | Python | py | Runtime Error | 0 | 0 | 376 | input = input()
print input
if input == 0:
break
n = [input, 0]
while n[0] > 1 and n[0] <= input + 1:
if n[0] == 2 and n[1] == 1:
break
if n[1] == 1 or n[1] == 0:
n[0] -= 1
n[1] += 1
elif n[1] == 2:
n[1] -= 1
input.append(1)
for e in range(0, len(n)):
print n[e],
print ''
n[1] -= 1
... | File "/tmp/tmpdowd30in/tmph2y1wz7t.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s289886791 | p00430 | u110278902 | 1460024330 | Python | Python | py | Runtime Error | 0 | 0 | 378 | input = input()
print input
if input == 0:
break
n = [input, 0]
while n[0] > 1 and n[0] <= input + 1:
if n[0] == 2 and n[1] == 1:
break
elif n[1] == 1 or n[1] == 0:
n[0] -= 1
n[1] += 1
elif n[1] == 2:
n[1] -= 1
input.append(1)
for e in range(0, len(n)):
print n[e],
print ''
n[1] -= ... | File "/tmp/tmpciy0enko/tmpdslya_9p.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s621626836 | p00430 | u110278902 | 1460024685 | Python | Python | py | Runtime Error | 0 | 0 | 381 | input = input()
print input
if input == 0:
break
n = [input, 0]
while n[0] > 1 and n[0] <= input + 1 and n[0] >= n[1]:
if n[1] == 1 or n[1] == 0:
n[0] -= 1
n[1] += 1
elif n[1] == 2:
n[1] -= 1
input.append(1)
if n[0] < n[1]:
break
for e in range(0, len(n)):
print n[e],
print ''
n[0] ... | File "/tmp/tmped1aaa4b/tmpgn4z1x6u.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s386789799 | p00430 | u110278902 | 1460024707 | Python | Python | py | Runtime Error | 0 | 0 | 377 | input = input()
print input
if input == 0:
break
n = [input, 0]
while n[0] > 1 and n[0] <= input + 1 and n[0] >= n[1]:
if n[1] == 1 or n[1] == 0:
n[0] -= 1
n[1] += 1
elif n[1] == 2:
n[1] -= 1
input.append(1)
if n[0] < n[1]:
break
for e in range(0, len(n)):
print n[e],
print ''
n[0] ... | File "/tmp/tmpch9a92ku/tmp9bjap97p.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s186168298 | p00430 | u110278902 | 1460024730 | Python | Python | py | Runtime Error | 0 | 0 | 373 | input = input()
print input
if input == 0:
break
n = [input, 0]
while n[0] > 1 and n[0] <= input + 1 and n[0] >= n[1]:
if n[1] == 1 or n[1] == 0:
n[0] -= 1
n[1] += 1
elif n[1] == 2:
n[1] -= 1
n.append(1)
if n[0] < n[1]:
break
for e in range(0, len(n)):
print n[e],
print ''
n[0] -= 1... | File "/tmp/tmp0hkrccn7/tmpep3io2iv.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s585448807 | p00430 | u110278902 | 1460024902 | Python | Python | py | Runtime Error | 0 | 0 | 373 | input = input()
print input
if input == 0:
break
n = [input, 0]
while n[0] > 1 and n[0] <= input + 1 and n[0] >= n[1]:
if n[1] == 1 or n[1] == 0:
n[0] -= 1
n[1] += 1
elif n[1] == 2:
n[1] -= 1
n.append(1)
if n[0] < n[1]:
break
for e in range(0, len(n)):
print n[e],
print ''
n[1] -= 1... | File "/tmp/tmp6iae066k/tmpe2gilhzj.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s493647522 | p00430 | u110278902 | 1460025924 | Python | Python | py | Runtime Error | 0 | 0 | 383 | input = input()
print input
if input == 0:
break
n = [input, 0]
while n[0] > 1 and n[0] <= input + 1 and n[0] >= n[1]:
if n[1] == 1 or n[1] == 0:
n[0] -= 1
n[1] += 1
elif n[1] == 2:
n[1] -= 1
n.append(1)
if n[0] < n[1]:
break
for e in range(0, len(n)):
print str(n[e]),
print ''
n[1]... | File "/tmp/tmpy22b542s/tmpzze5nnin.py", line 2
print input
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s424678967 | p00430 | u662488567 | 1480400147 | Python | Python3 | py | Runtime Error | 0 | 0 | 1115 | def generate_square(rest, output=[10000]):
for i in range(rest, 0, -1):
if output[-1] >= i:
yield from generate_square(rest - i, output + [i])
if rest == 0:
yield ... | File "/tmp/tmplo50kvbm/tmp2rxrj0g4.py", line 16
GN-2:python kodairatomonori$
^^^^
SyntaxError: illegal target for annotation
| |
s899752375 | p00431 | u797673668 | 1453740341 | Python | Python3 | py | Runtime Error | 40000 | 22612 | 1162 | from itertools import combinations
def connect(history, last):
global links, chains
branched = False
for ring in links[last]:
if ring in history:
continue
history.append(ring)
connect(history, ring)
history.pop()
branched = True
if not branched:
... | Traceback (most recent call last):
File "/tmp/tmpd4k1w1v3/tmp6aodpj1p.py", line 19, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s019581813 | p00431 | u797673668 | 1453740897 | Python | Python3 | py | Runtime Error | 40000 | 285596 | 852 | def connect(history, last):
global links, chains
branched = False
for ring in links[last]:
if ring in history:
continue
history.append(ring)
connect(history, ring)
history.pop()
branched = True
if not branched:
chains.append(set(history))
whi... | Traceback (most recent call last):
File "/tmp/tmppbol0q8y/tmpbq0649mh.py", line 16, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s327677317 | p00431 | u797673668 | 1453742478 | Python | Python3 | py | Runtime Error | 40000 | 7764 | 765 | def connect(history, last):
global links, max_length
branched = False
for ring in links[last]:
if ring in history:
continue
history.append(ring)
connect(history, ring)
history.pop()
branched = True
if not branched:
max_length = max(max_length, ... | Traceback (most recent call last):
File "/tmp/tmp9gdg5el5/tmpc10hyu6n.py", line 16, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s988940047 | p00431 | u797673668 | 1453747039 | Python | Python3 | py | Runtime Error | 40000 | 7792 | 571 | def connect(last):
global links, used
used[last] = 1
result = max([connect(ring) + 1 for ring in links[last] if not used[ring]], default=0)
used[last] = 0
return result
used = [0] * 101
while True:
n = int(input())
if not n:
break
links = [set() for i in range(101)]
for _... | Traceback (most recent call last):
File "/tmp/tmpki8cu8ci/tmpqcpwpkoa.py", line 12, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s636525024 | p00431 | u797673668 | 1477031752 | Python | Python3 | py | Runtime Error | 0 | 0 | 583 | from queue import deque
def longest(i):
visited = (i,)
q = deque((r, visited) for r in links[i])
while q:
ring, visited = q.popleft()
for r in links[ring]:
if r not in visited:
q.append((r, visited + (ring,)))
return len(visited) + 1
while True:
n = in... | Traceback (most recent call last):
File "/tmp/tmpsa9ih9kv/tmpt13adgo7.py", line 16, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s858005551 | p00431 | u662488567 | 1480409136 | Python | Python3 | py | Runtime Error | 40000 | 8060 | 4919 | from collections import defaultdict
class GraphChain(): ... | Traceback (most recent call last):
File "/tmp/tmpkr6ooz6r/tmpiihk0zom.py", line 57, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s061147680 | p00431 | u662488567 | 1480409352 | Python | Python3 | py | Runtime Error | 40000 | 8016 | 4919 | from collections import defaultdict
class GraphChain(): ... | Traceback (most recent call last):
File "/tmp/tmp741byfgn/tmpx0nth3kz.py", line 57, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s592210287 | p00431 | u662488567 | 1480409417 | Python | Python3 | py | Runtime Error | 40000 | 8012 | 1450 | from collections import defaultdict
class GraphChain():
def __init__(self):
self.graph = defaultdict(set)
self.passed = defaultdict(bool)
self.route = defaultdict(bool)
self.ans = 0
def dfs(self, left, count):
'''
depth first search
'''
for i in range(len(self.graph[left])):
... | Traceback (most recent call last):
File "/tmp/tmp_4orvx52/tmpmla5hlvn.py", line 57, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s637887871 | p00431 | u662488567 | 1480409469 | Python | Python3 | py | Runtime Error | 40000 | 8012 | 1454 | from collections import defaultdict
class GraphChain():
def __init__(self):
self.graph = defaultdict(set)
self.passed = defaultdict(bool)
self.route = defaultdict(bool)
self.ans = 0
def dfs(self, left, count):
'''
depth first search
'''
for i in range(len(self.graph[left])):
... | Traceback (most recent call last):
File "/tmp/tmp2880qlrp/tmpvsf7o2et.py", line 57, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s334490572 | p00431 | u662488567 | 1480409597 | Python | Python3 | py | Runtime Error | 40000 | 7996 | 1415 | from collections import defaultdict
class GraphChain():
def __init__(self):
self.graph = defaultdict(set)
self.passed = defaultdict(bool)
self.route = defaultdict(bool)
self.ans = 0
def dfs(self, left, count):
'''
depth first search
'''
for i in range(len(self.graph[left])):
... | Traceback (most recent call last):
File "/tmp/tmpsd_d04gy/tmpbjhe95em.py", line 56, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s614826636 | p00431 | u662488567 | 1480409785 | Python | Python3 | py | Runtime Error | 40000 | 8016 | 1482 | from collections import defaultdict
class GraphChain():
def __init__(self):
self.graph = defaultdict(set)
self.passed = defaultdict(bool)
self.route = defaultdict(bool)
self.ans = 0
def dfs(self, left, count):
'''
depth first search
'''
for i in range(len(self.graph[left])):
... | Traceback (most recent call last):
File "/tmp/tmpld23dq_x/tmpl98iugcu.py", line 58, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s719843726 | p00431 | u662488567 | 1480409909 | Python | Python3 | py | Runtime Error | 40000 | 7992 | 1503 | from collections import defaultdict
class GraphChain():
def __init__(self):
self.graph = defaultdict(set)
self.passed = defaultdict(bool)
self.route = defaultdict(bool)
self.ans = 0
def dfs(self, left, count):
'''
depth first search
'''
for i in range(len(self.graph[left])):
... | Traceback (most recent call last):
File "/tmp/tmpt1j95_an/tmp44829z3d.py", line 58, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s571500055 | p00431 | u662488567 | 1480410491 | Python | Python3 | py | Runtime Error | 40000 | 7944 | 1397 | from collections import defaultdict
class GraphChain():
def __init__(self):
self.graph = defaultdict(set)
self.passed = defaultdict(bool)
self.route = defaultdict(bool)
self.ans = 0
def dfs(self, left, count):
'''
depth first search
'''
for point in self.graph[left]:
if se... | Traceback (most recent call last):
File "/tmp/tmp5x8np_u7/tmpxc70n5f3.py", line 58, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s351836967 | p00431 | u072053884 | 1521425894 | Python | Python3 | py | Runtime Error | 0 | 0 | 986 | def solve():
def dfs(start):
unvisited = [True] * (n + 1)
queue = [(start, 1)]
max_chain_len = 1
while queue:
ring, chain_len = queue.pop()
if unvisited[ring]:
unvisited[ring] = False
max_chain_len = max(max_chain_len, chain_len... | Traceback (most recent call last):
File "/tmp/tmp_79zexz0/tmpe9h_4ont.py", line 36, in <module>
solve()
File "/tmp/tmp_79zexz0/tmpe9h_4ont.py", line 20, in solve
n = int(file_input.readline())
^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.