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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s994914276 | p02407 | u354053070 | 1498501272 | Python | Python3 | py | Runtime Error | 0 | 0 | 58 | dummy = input()
print(' '.join(input().split().reverse())) | Traceback (most recent call last):
File "/tmp/tmptkewq9ua/tmpa8wfhudb.py", line 1, in <module>
dummy = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s379803704 | p02407 | u831971779 | 1498697264 | Python | Python3 | py | Runtime Error | 0 | 0 | 63 | N = input()
a = [input() for i in range(N)]
print (a.reverse()) | Traceback (most recent call last):
File "/tmp/tmp1wqdm136/tmplwa5i4bp.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s654830401 | p02407 | u831971779 | 1498697333 | Python | Python3 | py | Runtime Error | 0 | 0 | 64 | N = input()
a = [input() for i in range(N)]
a.reverse()
print(a) | Traceback (most recent call last):
File "/tmp/tmpftq8avao/tmpq6m98e0i.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s274651911 | p02407 | u831971779 | 1498721775 | Python | Python3 | py | Runtime Error | 0 | 0 | 58 | N = input()
a = [input() for i in range(N)]
print(a[::-1]) | Traceback (most recent call last):
File "/tmp/tmp3nnyct8i/tmpbj4cy3zb.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s696255823 | p02407 | u831971779 | 1498721834 | Python | Python3 | py | Runtime Error | 0 | 0 | 66 | N = input()
a = [input().split() for i in range(N)]
print(a[::-1]) | Traceback (most recent call last):
File "/tmp/tmpo2hji0u1/tmpckt57uoy.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s609255047 | p02407 | u831971779 | 1498722484 | Python | Python3 | py | Runtime Error | 0 | 0 | 52 | n = input()
print(" ".join(input().split()).reveres) | Traceback (most recent call last):
File "/tmp/tmpyi8mg3uq/tmpffts14gi.py", line 1, in <module>
n = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s667725017 | p02407 | u831971779 | 1498722623 | Python | Python3 | py | Runtime Error | 0 | 0 | 59 | n = int(input())
print(" ".join(input().split()).reveres()) | Traceback (most recent call last):
File "/tmp/tmp9gr4x6nu/tmpte7kh7x6.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s092453767 | p02407 | u897625120 | 1500463868 | Python | Python3 | py | Runtime Error | 0 | 0 | 114 | #??°???????????¢
n = input()
l = raw_input().split()
for i in range(n):
l.append(i)
l.reverse()
print l | File "/tmp/tmp3t0xz63h/tmpc9qbrxk0.py", line 12
print l
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s522061944 | p02407 | u853619096 | 1502775166 | Python | Python3 | py | Runtime Error | 0 | 0 | 76 | n=int(input())
a=list(map(int,input().split()))
a=a[::-1]
print(" ".join(a)) | Traceback (most recent call last):
File "/tmp/tmp5zg0k5jp/tmp05i3j_76.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s814972389 | p02407 | u283452598 | 1503185601 | Python | Python3 | py | Runtime Error | 0 | 0 | 91 | first = input()
seconds = list(map(int,input().split()))
print("".join(seconds.reverse())) | Traceback (most recent call last):
File "/tmp/tmpoz7n0ti0/tmpdzwl502l.py", line 1, in <module>
first = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s823230992 | p02407 | u283452598 | 1503185608 | Python | Python3 | py | Runtime Error | 0 | 0 | 92 | first = input()
seconds = list(map(int,input().split()))
print(" ".join(seconds.reverse())) | Traceback (most recent call last):
File "/tmp/tmp5tebs9z9/tmpj73ewqvk.py", line 1, in <module>
first = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s868752147 | p02407 | u316697096 | 1503202553 | Python | Python | py | Runtime Error | 0 | 0 | 62 | n=input()
a=map(int,raw_input().split())
a=reverse
print a | File "/tmp/tmpmnef2s2k/tmpgpxyjl3g.py", line 1
n=input()
IndentationError: unexpected indent
| |
s718987148 | p02407 | u316697096 | 1503202615 | Python | Python | py | Runtime Error | 0 | 0 | 90 | n=input()
a=map(int,raw_input().split())
a=reverse()
for i in range(n)
print a[i] | File "/tmp/tmp5rum0_ft/tmpg78aqosg.py", line 1
n=input()
IndentationError: unexpected indent
| |
s138338005 | p02407 | u316697096 | 1503202638 | Python | Python | py | Runtime Error | 0 | 0 | 65 | n=input()
a=map(int,raw_input().split())
a=reverse()
print a | File "/tmp/tmp8rtvpl4s/tmpwdn_a6ia.py", line 1
n=input()
IndentationError: unexpected indent
| |
s020774876 | p02407 | u316697096 | 1503203082 | Python | Python | py | Runtime Error | 0 | 0 | 72 | n=input()
a=map(int,raw_input().split())
a=reverse
for i in n:
print a | File "/tmp/tmpgs4eeqow/tmpbspa7pcw.py", line 6
print a
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s060808130 | p02407 | u316697096 | 1503203096 | Python | Python | py | Runtime Error | 0 | 0 | 75 | n=input()
a=map(int,raw_input().split())
a=reverse
for i in n:
print a | File "/tmp/tmpz38zimb1/tmplvy_7x9l.py", line 6
print a
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s677885581 | p02407 | u316697096 | 1503203134 | Python | Python | py | Runtime Error | 0 | 0 | 77 | n=input()
a=map(int,raw_input().split())
a.reverse()
for i in n:
print a | File "/tmp/tmpxv2ilob3/tmpy_7po2my.py", line 6
print a
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s416672991 | p02407 | u316697096 | 1503203215 | Python | Python | py | Runtime Error | 0 | 0 | 77 | n=input()
a=map(int,raw_input().split())
a.reverse()
for i in n:
print i | File "/tmp/tmpuvr1bx44/tmp3ea7wh37.py", line 6
print i
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s539821089 | p02407 | u362494298 | 1505353094 | Python | Python3 | py | Runtime Error | 0 | 0 | 42 | input()
a=list(int,input())
print(a[::-1]) | Traceback (most recent call last):
File "/tmp/tmp583_uqyi/tmpf0e85jze.py", line 1, in <module>
input()
EOFError: EOF when reading a line
| |
s464092599 | p02407 | u933096856 | 1505442173 | Python | Python3 | py | Runtime Error | 0 | 0 | 64 | n=int(input())
print(*list(reversed(map(int, input().split())))) | Traceback (most recent call last):
File "/tmp/tmp24kopwfm/tmpwy7gv0do.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s567513303 | p02407 | u664228906 | 1506411520 | Python | Python3 | py | Runtime Error | 0 | 0 | 127 | N = int(input())
Arr = map(int, input().split())
for i in range(N):
if i=N-1:
print(Arr[0])
else:
print(Arr[N-1-i] + " ") | File "/tmp/tmpxjq5k6c3/tmpkid7nguo.py", line 4
if i=N-1:
^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s261440985 | p02407 | u664228906 | 1506411591 | Python | Python3 | py | Runtime Error | 0 | 0 | 133 | N = int(input())
Arr = list(map(int, input().split()))
for i in range(N):
if i=N-1:
print(Arr[0])
else:
print(Arr[N-1-i] + " ") | File "/tmp/tmp6jzkiqo2/tmpmuti5b2z.py", line 4
if i=N-1:
^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s999729948 | p02407 | u664228906 | 1506411645 | Python | Python3 | py | Runtime Error | 0 | 0 | 134 | N = int(input())
Arr = list(map(int, input().split()))
for i in range(N):
if i==N-1:
print(Arr[0])
else:
print(Arr[N-1-i] + " ") | Traceback (most recent call last):
File "/tmp/tmpk2jlk2xx/tmpfpuuws98.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s374647810 | p02407 | u197670577 | 1508075761 | Python | Python | py | Runtime Error | 0 | 0 | 85 | n = raw_input()
array = raw_input().split()
for i in reversed(range(n)):
print i, | File "/tmp/tmpac6qscbm/tmpg2rhj132.py", line 4
print i,
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s177616072 | p02407 | u256256172 | 1508306012 | Python | Python3 | py | Runtime Error | 0 | 0 | 89 | a = []
for _ in range(int(input())):
a.append(input())
a.reverse()
print(" ".join(a)) | Traceback (most recent call last):
File "/tmp/tmppc2_10mk/tmpsys2c3jy.py", line 2, in <module>
for _ in range(int(input())):
^^^^^^^
EOFError: EOF when reading a line
| |
s328061979 | p02407 | u518939641 | 1510061749 | Python | Python3 | py | Runtime Error | 0 | 0 | 144 | import sys
while True:
n=0
s=sys.stdin.readline()
if s=='0\n': break
for i in range(len(s)-1):
n+=int(s[i])
print(n) | 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
... | |
s199574963 | p02407 | u505411588 | 1511592256 | Python | Python3 | py | Runtime Error | 0 | 0 | 115 | N = input()
a = [input() for i in range(N)]
while i > 0:
print(a[i], end=" ")
i -= 1
else:
print(a[i]) | Traceback (most recent call last):
File "/tmp/tmpyzuxflks/tmpl28yj3eg.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s598214958 | p02407 | u505411588 | 1511592434 | Python | Python3 | py | Runtime Error | 0 | 0 | 120 | N = int(input())
a = [input() for i in range(N)]
while i > 0:
print(a[i], end=" ")
i -= 1
else:
print(a[i]) | Traceback (most recent call last):
File "/tmp/tmplwf7juht/tmpl3hpdhnj.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s882313401 | p02407 | u539789745 | 1512945633 | Python | Python3 | py | Runtime Error | 0 | 0 | 150 | def main():
n = int(input())
a = map(int, input().split())
print(" ".join(sorted(a, reverse=True)))
if __name__ == "__main__":
main() | Traceback (most recent call last):
File "/tmp/tmpmffnhxz5/tmpb19dwlnd.py", line 7, in <module>
main()
File "/tmp/tmpmffnhxz5/tmpb19dwlnd.py", line 2, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s443420338 | p02407 | u299257375 | 1516158570 | Python | Python3 | py | Runtime Error | 0 | 0 | 94 | n = int(input())
lst = []
for i in range(0,n):
lst.append(int(input()))
print(lst.sort())
| Traceback (most recent call last):
File "/tmp/tmpqa2jwovt/tmpttzcobl7.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s305428593 | p02407 | u299257375 | 1516159285 | Python | Python3 | py | Runtime Error | 0 | 0 | 71 | n = int(input))
print(" ".join(list(map(int, input().split()))[::-1]))
| File "/tmp/tmp54b85_h1/tmpq0p2o46q.py", line 1
n = int(input))
^
SyntaxError: unmatched ')'
| |
s871236231 | p02407 | u299257375 | 1516159333 | Python | Python3 | py | Runtime Error | 0 | 0 | 80 | n = int(input)
lst = list(map(int, input().split()))
print(" ".join(lst[::-1]))
| Traceback (most recent call last):
File "/tmp/tmpqj03emap/tmp79b7nnby.py", line 1, in <module>
n = int(input)
^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
| |
s955396729 | p02407 | u201482750 | 1517900301 | Python | Python3 | py | Runtime Error | 0 | 0 | 134 | n=int(input())
a=list(map(int,input().split()))
for i in range(n-1) :
print("{} ".format(a[n-i]),end="")
print("{}".format(a[0]))
| Traceback (most recent call last):
File "/tmp/tmp5vrx7b7m/tmpcw3hgyft.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s457427513 | p02407 | u640809202 | 1518362235 | Python | Python3 | py | Runtime Error | 0 | 0 | 101 |
n=int(input())
a=input().split()
for i in range(n):
out=a[(n-i)]
print(str(out))
print()
| Traceback (most recent call last):
File "/tmp/tmpk0wb8uh5/tmppewpu7v0.py", line 2, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s334424178 | p02407 | u641357568 | 1520593474 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | import sys
length = int(sys.stdin.readline())
num_seq = sys.stdin.readlines()
for i in range(1,length + 1):
print(num_seq[length - i],end=' ')
print(num_seq[0],end='')
| Traceback (most recent call last):
File "/tmp/tmpqgsffeek/tmpiwstf3w6.py", line 3, in <module>
length = int(sys.stdin.readline())
^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
| |
s346008679 | p02407 | u641357568 | 1520593530 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | import sys
length = int(sys.stdin.readline())
num_seq = sys.stdin.readlines()
for i in range(1,length + 1):
print(num_seq[length - i],end=' ')
print(num_seq[0],end='')
| Traceback (most recent call last):
File "/tmp/tmpq9p4raqz/tmpr_sm6of2.py", line 3, in <module>
length = int(sys.stdin.readline())
^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
| |
s267627796 | p02407 | u641357568 | 1520593581 | Python | Python3 | py | Runtime Error | 0 | 0 | 170 | import sys
length = int(sys.stdin.readline())
num_seq = sys.stdin.readlines()
for i in range(1,length):
print(num_seq[length - i],end=' ')
print(num_seq[0],end='')
| Traceback (most recent call last):
File "/tmp/tmpteqz5bv4/tmpso_fl55d.py", line 3, in <module>
length = int(sys.stdin.readline())
^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
| |
s096787485 | p02407 | u518824954 | 1520871034 | Python | Python | py | Runtime Error | 0 | 0 | 69 | n=int(input())
l=list(map(int,input().split()))
l.reverse()
print(l)
| Traceback (most recent call last):
File "/tmp/tmpqmcxzjo5/tmp4y3q3b72.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s258672454 | p02407 | u017435045 | 1521440050 | Python | Python3 | py | Runtime Error | 0 | 0 | 52 | input()
print(‘ ‘.join(input().split()[::-1]))
| File "/tmp/tmp36zskm2p/tmp_9mpgbst.py", line 3
print(‘ ‘.join(input().split()[::-1]))
^
SyntaxError: invalid character '‘' (U+2018)
| |
s434288375 | p02407 | u017435045 | 1521440056 | Python | Python3 | py | Runtime Error | 0 | 0 | 52 | input()
print(‘ ‘.join(input().split()[::-1]))
| File "/tmp/tmp9_j2klz0/tmpihwtox_3.py", line 3
print(‘ ‘.join(input().split()[::-1]))
^
SyntaxError: invalid character '‘' (U+2018)
| |
s422502446 | p02407 | u621084859 | 1522650128 | Python | Python3 | py | Runtime Error | 0 | 0 | 103 | n=int(input())
r=input().split()
r.reverse()
str = ""
for d in a:
str += "%d "%(d)
print(str[:-1])
| Traceback (most recent call last):
File "/tmp/tmpmvpdvm3u/tmpf_ybl_m4.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s710548509 | p02407 | u621084859 | 1522650326 | Python | Python3 | py | Runtime Error | 0 | 0 | 104 | n=int(input())
r=input().split()
for i in range(len(r)):
r[i]=int(r[i])
r.reverse()
print(::-1)
| File "/tmp/tmp625l5fs3/tmpsiq6jj2o.py", line 6
print(::-1)
^
SyntaxError: invalid syntax
| |
s272354078 | p02407 | u621084859 | 1522650704 | Python | Python3 | py | Runtime Error | 0 | 0 | 104 | n=int(input())
r=input().split()
for i in range(len(r)):
r[i]=int(r[i])
i.reverse()
print(::-1)
| File "/tmp/tmpc_njl58a/tmpo_4u1r5z.py", line 6
print(::-1)
^
SyntaxError: invalid syntax
| |
s014678371 | p02407 | u621084859 | 1522650754 | Python | Python3 | py | Runtime Error | 0 | 0 | 85 | n=int(input())
r=input().split()
for i in range(len(r)):
i.reverse()
print(::-1)
| File "/tmp/tmp0jypt4ro/tmpgab9orwm.py", line 5
print(::-1)
^
SyntaxError: invalid syntax
| |
s823675110 | p02407 | u621084859 | 1522651178 | Python | Python3 | py | Runtime Error | 0 | 0 | 82 | n=int(input())
r=input().split()
for i in range(len(r)):
i.reverse()
print(i)
| Traceback (most recent call last):
File "/tmp/tmp_nj9hg2u/tmpamh8xof8.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s055905107 | p02407 | u682153677 | 1523417738 | Python | Python3 | py | Runtime Error | 0 | 0 | 141 | # -*- coding: utf-8 -*-
n = int(input())
a = list(map(int , input().split()))
a.reverse()
for i in len(a):
print('{0} '.format(a[i]))
| Traceback (most recent call last):
File "/tmp/tmpjtizl79w/tmp7i1m5blv.py", line 3, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s310276558 | p02407 | u682153677 | 1523418045 | Python | Python3 | py | Runtime Error | 0 | 0 | 135 | # -*- coding: utf-8 -*-
n = int(input())
a = list(map(int, input().split()))
a.reverse()
for i in n:
print('{0} '.format(a[i]))
| Traceback (most recent call last):
File "/tmp/tmpwcphc2ew/tmph3bqf8m_.py", line 3, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s810797913 | p02407 | u843169619 | 1523899082 | Python | Python3 | py | Runtime Error | 0 | 0 | 72 | num + input()
jun = input().split()
gyaku = reversed(jun)
print(*gyaku)
| Traceback (most recent call last):
File "/tmp/tmpd82khnxe/tmpkkgwe_zz.py", line 1, in <module>
num + input()
^^^
NameError: name 'num' is not defined. Did you mean: 'sum'?
| |
s947109047 | p02407 | u843169619 | 1523899156 | Python | Python3 | py | Runtime Error | 0 | 0 | 72 | num + input()
jun = input().split()
gyaku = reversed(jun)
print(*gyaku)
| Traceback (most recent call last):
File "/tmp/tmp4ipgla7r/tmpuzlx_g8w.py", line 1, in <module>
num + input()
^^^
NameError: name 'num' is not defined. Did you mean: 'sum'?
| |
s896068767 | p02407 | u150984829 | 1524758568 | Python | Python3 | py | Runtime Error | 0 | 0 | 110 | e=[input()for _ in[0]*int(input())]
for s in"SHCD":
for r in range(1,14):
if f'{s} {r}'not in e:print(s,r)
| Traceback (most recent call last):
File "/tmp/tmpip3dqyk8/tmpxrojj_xt.py", line 1, in <module>
e=[input()for _ in[0]*int(input())]
^^^^^^^
EOFError: EOF when reading a line
| |
s514068268 | p02407 | u150984829 | 1524758604 | Python | Python3 | py | Runtime Error | 0 | 0 | 114 | n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
for r in range(1,14):
if f'{s} {r}'not in e:print(s,r)
| Traceback (most recent call last):
File "/tmp/tmpx_v5nhmb/tmplmygeagt.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s001165904 | p02407 | u806005289 | 1525342877 | Python | Python | py | Runtime Error | 0 | 0 | 250 | n=int(input())
a=input().split()
b=[]
c=[]
i=0
while i<n:
b.append(int(a[i]))
i+=1
while n>0:
c.append(max(b))
b.remove(max(b))
n=n-1
answer=str(c[0])
m=2
while m<i+1:
answer=answer+" "+str(c[m-1])
m=m+1
print(answer)
| Traceback (most recent call last):
File "/tmp/tmpgtb1ue9e/tmpsf5jeokj.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s880835689 | p02407 | u592529978 | 1525396739 | Python | Python | py | Runtime Error | 0 | 0 | 74 | n,x = map(int, raw_input().split())
if n = 0 : break
x.reverse()
print(x)
| File "/tmp/tmpe4t_cbx8/tmp_8tb67dp.py", line 2
if n = 0 : break
^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s874130399 | p02407 | u592529978 | 1525396893 | Python | Python | py | Runtime Error | 0 | 0 | 98 | n = raw_input().split()
x = map(int, raw_input().split())
if n = 0 : break
x.reverse()
print(x)
| File "/tmp/tmpl6dfzwrm/tmpqaqtgx4y.py", line 4
if n = 0 : break
^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s818186871 | p02407 | u592529978 | 1525396997 | Python | Python | py | Runtime Error | 0 | 0 | 94 | n=raw_input().split()
x=map(int, raw_input().split())
if n == 0 : break
x.reverse()
print(x)
| File "/tmp/tmptuqt6ggt/tmpeu3g4ekw.py", line 4
if n == 0 : break
^^^^^
SyntaxError: 'break' outside loop
| |
s378652115 | p02407 | u908651435 | 1525684932 | Python | Python3 | py | Runtime Error | 20 | 5592 | 97 | n=int(input())
a=input().split()
for i in range(n-1,0,-1):
print(a[i],end=' ')
print(a[i-1])
| Traceback (most recent call last):
File "/tmp/tmpgklaasbi/tmpmcg48kxc.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s760630055 | p02407 | u983348699 | 1526192518 | Python | Python3 | py | Runtime Error | 0 | 0 | 286 | #include <iostream>
using namespace std;
int main()
{
int a[1000],n,i;
cin >> n;
for(i=0;i<n;i++){
cin >> a[i];
}
i--;
cout << a[i];
for(int ii=i-1; ii >= -1;ii--) {
if(ii==-1)break;
cout << " " << a[ii];
}
cout << endl;
}
| File "/tmp/tmpb21a7g_8/tmpvueursal.py", line 3
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s282025745 | p02407 | u002280517 | 1527214852 | Python | Python3 | py | Runtime Error | 0 | 0 | 181 | n = int(input())
a = list(map(int,input().split()))
for i in range(n ,-1, -1):
print("{0}".format(a[i]),end="")
if i == n:
pass
else:
print(" ",end="")
| Traceback (most recent call last):
File "/tmp/tmpzogb2pcb/tmpt_lkileb.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s109198692 | p02407 | u007066325 | 1527461735 | Python | Python3 | py | Runtime Error | 0 | 0 | 235 | a = int(input())
n = int(input().split())
n2 = int(input().split())
for i in range(a):
n[i] = n2[a-i-1]
for i in range(a):
if i !=(a-1):
print("{} ".format(n2[i]), end = "")
else:
print("{}".format(n2[i]))
| Traceback (most recent call last):
File "/tmp/tmpnjdg3cw_/tmp49kkn7ug.py", line 1, in <module>
a = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s425978008 | p02407 | u007066325 | 1527461758 | Python | Python3 | py | Runtime Error | 0 | 0 | 235 | a = int(input())
n = int(input().split())
n2 = int(input().split())
for i in range(a):
n[i] = n2[a-i-1]
for i in range(a):
if i !=(a-1):
print("{} ".format(n2[i]), end = "")
else:
print("{}".format(n2[i]))
| Traceback (most recent call last):
File "/tmp/tmpl6uesgev/tmpqg0b6_vk.py", line 1, in <module>
a = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s203281776 | p02407 | u007066325 | 1527461874 | Python | Python3 | py | Runtime Error | 0 | 0 | 85 | ec 7340 KB 46 bytes
?
1
2
input()
print(' '.join(input().split()[::-1]))
| File "/tmp/tmpd4banx4x/tmpn_1xdrmv.py", line 1
ec 7340 KB 46 bytes
^^^^
SyntaxError: invalid syntax
| |
s019831222 | p02407 | u237094818 | 1527692315 | Python | Python3 | py | Runtime Error | 0 | 0 | 117 | # -*- coding: utf-8
x = input()
a = input().split()
a = a[::-1]
for i range(len(a)):
b += a[i]+" "
print(b[-1])
| File "/tmp/tmp6slas2e7/tmpblf1nte9.py", line 6
for i range(len(a)):
^^^^^
SyntaxError: invalid syntax
| |
s883812292 | p02407 | u237094818 | 1527692349 | Python | Python3 | py | Runtime Error | 0 | 0 | 118 | # -*- coding: utf-8
x = input()
a = input().split()
a = a[::-1]
for i range(len(a)):
b += a[i]+" "
print(b[:-1])
| File "/tmp/tmprpsk6nfn/tmpcigyoywt.py", line 6
for i range(len(a)):
^^^^^
SyntaxError: invalid syntax
| |
s585106670 | p02407 | u237094818 | 1527692421 | Python | Python3 | py | Runtime Error | 0 | 0 | 121 | # -*- coding: utf-8
x = input()
a = input().split()
a = a[::-1]
for i in range(len(a)):
b += a[i]+" "
print(b[:-1])
| Traceback (most recent call last):
File "/tmp/tmpe28d8r3h/tmpq_lc5epw.py", line 3, in <module>
x = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s904641396 | p02407 | u763301852 | 1363010821 | Python | Python | py | Runtime Error | 0 | 0 | 79 | input()
l = map(int, raw_input().split())
l.reverse()
print(" ".join(tuple(l))) | Traceback (most recent call last):
File "/tmp/tmpp0uvwrtk/tmp107qq2ui.py", line 1, in <module>
input()
EOFError: EOF when reading a line
| |
s839693934 | p02407 | u763301852 | 1363010898 | Python | Python | py | Runtime Error | 0 | 0 | 81 | input()
l = map(int, raw_input().split())
l.reverse()
print(" ".join(map(str, l)) | File "/tmp/tmp6v7nao3_/tmpmr_g0s1x.py", line 4
print(" ".join(map(str, l))
^
SyntaxError: '(' was never closed
| |
s400472222 | p02407 | u140201022 | 1381753989 | Python | Python | py | Runtime Error | 0 | 0 | 164 | while True:
n=int(raw_input())
m=map(int, raw_input().split())
m.sort()
h=-1
for i in xrange(n):
print str(m[h]),
h-=1
print | File "/tmp/tmp7_lc58hm/tmp36j0anij.py", line 7
print str(m[h]),
^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s803333630 | p02407 | u633068244 | 1393321475 | Python | Python | py | Runtime Error | 0 | 0 | 91 | input()
a = map(int, raw_input().split())
for i in range(a.length(), 1):
print a[i-1], | File "/tmp/tmp88z6sngr/tmpy9xwuwmj.py", line 5
print a[i-1],
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s354924702 | p02407 | u633068244 | 1393321483 | Python | Python | py | Runtime Error | 0 | 0 | 90 | input()
a = map(int, raw_input().split())
for i in range(length(a), 1):
print a[i-1], | File "/tmp/tmpzs99z2un/tmp8cr6cv1b.py", line 5
print a[i-1],
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s388583287 | p02407 | u633068244 | 1393321630 | Python | Python | py | Runtime Error | 0 | 0 | 100 | input()
a = map(int, raw_input().split())
a.reverse()
for i in range(0, a.len()-1):
print a[i], | File "/tmp/tmpmtjwzytd/tmpraj5ykw7.py", line 6
print a[i],
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s545942382 | p02407 | u633068244 | 1393321979 | Python | Python | py | Runtime Error | 0 | 0 | 157 | r = int(input())
a = map(int, raw_input().split())
a.reverse()
prnt = ""
for i in range(0, r-2):
prnt += a[i]
prnt += " "
prnt += a[r-1]
print prnt | File "/tmp/tmppb0r64n6/tmp21cs9agi.py", line 11
print prnt
^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s135154704 | p02407 | u292964502 | 1396980100 | Python | Python | py | Runtime Error | 0 | 0 | 84 | a = []
for i in range(input()):
a.append(input())
print sorted(a,reverse = True) | File "/tmp/tmpdzm8tbnt/tmpb5prraqh.py", line 4
print sorted(a,reverse = True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s686783030 | p02407 | u971748390 | 1400680078 | Python | Python3 | py | Runtime Error | 0 | 0 | 95 | n=raw_input()
for i in range(n):
a[i] = raw_input()
for i in range(n):
print (a[i].reverse) | Traceback (most recent call last):
File "/tmp/tmpjy0pon7a/tmpi_mfv3ix.py", line 1, in <module>
n=raw_input()
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s391010798 | p02408 | u539753516 | 1531163674 | Python | Python3 | py | Runtime Error | 0 | 0 | 212 | n=int(input())
card=[]
for suit in ["S","H","C","D"]:
for rank in list(map(str,range(1,14))):
card.append(suit+" "+rank+" ")
for i in range(n):
card.remove(input())
for c in card:
print(c)
| Traceback (most recent call last):
File "/tmp/tmpilesoqgg/tmplhm92h71.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s809732262 | p02408 | u222716853 | 1532091552 | Python | Python3 | py | Runtime Error | 0 | 0 | 662 | a = int(input())
b = []
S = []
H = []
C = []
D = []
check = [1,2,3,4,5,6,7,8,9,10,11,12,13]
for i in range(a):
b.append(input().split())
for i in range(len(b)):
if b[i][0] == "S":
S.append(int(b[i][1]))
elif b[i][0] == "H":
H.append(int(b[i][1]))
elif b[i][0] == "C":
C.append(int... | Traceback (most recent call last):
File "/tmp/tmpklg0vzyg/tmpxfuvb2mc.py", line 1, in <module>
a = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s709249245 | p02408 | u689047545 | 1535091819 | Python | Python3 | py | Runtime Error | 0 | 0 | 533 | import sys
slist = [i for i in range(1, 14)]
hlist = [i for i in range(1, 14)]
clist = [i for i in range(1, 14)]
dlist = [i for i in range(1, 14)]
for line in sys.stdin:
suit, rank = line.split()
rankn = int(rank)
if suit = 'S':
if rankn in slist:
slist.pop(rankn - 1)
elif suit = 'H'... | File "/tmp/tmpqln7oez0/tmp2lfqrnpc.py", line 9
if suit = 'S':
^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s127050111 | p02408 | u281808376 | 1540436906 | Python | Python3 | py | Runtime Error | 0 | 0 | 422 | N=int(input())
s=[input() for i in range(N)]
lost_list=[]
taro_card=[]
card_list=[]
for i in s:
taro_card.append(s.split())
for i in range(1,14):
card_list.append(["S",str(i)])
card_list.append(["H",str(i)])
card_list.append(["C",str(i)])
card_list.append(["D",str(i)])
for i in taro_card:
if i n... | Traceback (most recent call last):
File "/tmp/tmp7enoe_hj/tmp2epd27ib.py", line 1, in <module>
N=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s665902681 | p02408 | u643542669 | 1546016834 | Python | Python3 | py | Runtime Error | 0 | 0 | 334 | suit = {"S": 0, "H": 1, "C": 2, "D": 3}
suit_keys = list(suit.keys())
deck = [[suit_keys[i] + " " + str(j + 1) for j in range(13)] for i in range(4)]
for _ in range(int(input())):
card = input().split()
deck[suit[card[0]]][int(card[1])] = ""
for i in range(4):
for j in deck[i]:
if j != "":
... | Traceback (most recent call last):
File "/tmp/tmpphieo_0m/tmpq1vq0y6s.py", line 5, in <module>
for _ in range(int(input())):
^^^^^^^
EOFError: EOF when reading a line
| |
s281710833 | p02408 | u643542669 | 1546016954 | Python | Python3 | py | Runtime Error | 0 | 0 | 332 | suit = {"S": 0, "H": 1, "C": 2, "D": 3}
suit_keys = list(suit.keys())
deck = [[suit_keys[i] + " " + str(j + 1) for j in range(13)] for i in range(4)]
for _ in range(int(input())):
card = input().split()
deck[suit[card[0]]][int(card[1])] = ""
for i in range(4):
for j in deck[i]:
if j != "":
... | Traceback (most recent call last):
File "/tmp/tmp5h4giha2/tmpgcwa05p2.py", line 4, in <module>
for _ in range(int(input())):
^^^^^^^
EOFError: EOF when reading a line
| |
s607618805 | p02408 | u643542669 | 1546017039 | Python | Python3 | py | Runtime Error | 0 | 0 | 332 | suit = {"S": 0, "H": 1, "C": 2, "D": 3}
suit_keys = list(suit.keys())
deck = [[suit_keys[i] + " " + str(j + 1) for j in range(13)] for i in range(4)]
for _ in range(int(input())):
card = input().split()
deck[int(card[1])][suit[card[0]]] = ""
for i in range(4):
for j in deck[i]:
if j != "":
... | Traceback (most recent call last):
File "/tmp/tmp3jpvzk5q/tmp47ahd5sx.py", line 4, in <module>
for _ in range(int(input())):
^^^^^^^
EOFError: EOF when reading a line
| |
s709538093 | p02408 | u643542669 | 1546017052 | Python | Python3 | py | Runtime Error | 0 | 0 | 332 | suit = {"S": 0, "H": 1, "C": 2, "D": 3}
suit_keys = list(suit.keys())
deck = [[suit_keys[i] + " " + str(j + 1) for j in range(13)] for i in range(4)]
for _ in range(int(input())):
card = input().split()
deck[suit[card[0]]][int(card[1])] = ""
for i in range(4):
for j in deck[i]:
if j != "":
... | Traceback (most recent call last):
File "/tmp/tmpa8ud7x06/tmpjwm2a709.py", line 4, in <module>
for _ in range(int(input())):
^^^^^^^
EOFError: EOF when reading a line
| |
s278889519 | p02408 | u643542669 | 1546017465 | Python | Python3 | py | Runtime Error | 0 | 0 | 312 | suit = {"S": 0, "H": 1, "C": 2, "D": 3}
suit_keys = list(suit.keys())
deck = [[suit_keys[i] + " " + str(j + 1) for j in range(13)] for i in range(4)]
for _ in range(int(input())):
card = input().split()
del deck[suit[card[0]]][int(card[1]) - 1]
for i in range(4):
for j in deck[i]:
print(j)
| Traceback (most recent call last):
File "/tmp/tmpl4mpc9zw/tmppb0g_doy.py", line 4, in <module>
for _ in range(int(input())):
^^^^^^^
EOFError: EOF when reading a line
| |
s498572570 | p02408 | u498462680 | 1546332454 | Python | Python3 | py | Runtime Error | 0 | 0 | 824 | sCard = [0] * 13
hCard = [0] * 13
cCard = [0] * 13
dCard = [0] * 13
callNum = int(input())
for cardLoop in range(callNum-1):
symbol, cardNum = input().split()
cardNum = int(cardNum)
if symbol == "S":
sCard[cardNum-1] = cardNum
elif symbol == "H":
hCard[cardNum-1] = cardNum
elif sy... | Traceback (most recent call last):
File "/tmp/tmpjvjr2sl1/tmpgdx87wib.py", line 6, in <module>
callNum = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s726207168 | p02408 | u902639104 | 1551283810 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | n=input()
lst=[(a,b) for a in ['S','H','C','D'] for b in range(1,14)]
for i in range(n):
a,b =input().split()
lst.remove((a,int(b)))
for (a,b) in lst:
print(a,b)
| Traceback (most recent call last):
File "/tmp/tmppo8tslo0/tmp3og2f1t9.py", line 1, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s213150967 | p02408 | u902639104 | 1551283858 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | n=input()
lst=[(a,b) for a in ['S','H','C','D'] for b in range(1,14)]
for i in range(n):
a,b =input().split()
lst.remove((a,int(b)))
for (a,b) in lst:
print(a,b)
| Traceback (most recent call last):
File "/tmp/tmpwri7tk6k/tmpks6vqlyq.py", line 1, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s693404190 | p02408 | u902639104 | 1551283895 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | n=input()
lst=[(a,b) for a in ['S','H','C','D'] for b in range(1,14)]
for i in range(n):
a,b =input().split()
lst.remove((a,int(b)))
for (a,b) in lst:
print(a,b)
| Traceback (most recent call last):
File "/tmp/tmp1f81x6wp/tmp52852r4p.py", line 1, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s564283346 | p02408 | u902639104 | 1551302710 | Python | Python3 | py | Runtime Error | 0 | 0 | 188 | n=int(input())
lst=[(a,b) for a in ['S','H','C','D'] for b in range(1,14)]
for i in range(n):
a,b = input().split()
b = int(b)
lst.remove(a,b)
for (a,b) in lst:
print(a,b)
| Traceback (most recent call last):
File "/tmp/tmpl1x7qovx/tmpx4u3hpcd.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s786550760 | p02408 | u792747184 | 1551467582 | Python | Python3 | py | Runtime Error | 0 | 0 | 1226 | n = int(input())
for i in range(n):
k = input().split()
if k[0] == 'S':
for i in range(1,14):
if int(k[1])==i:
continue
else:
s = list()
s.append(i)
s.sort()
sl = s.len()
if k[0] == 'H':
f... | Traceback (most recent call last):
File "/tmp/tmpjjwjikaw/tmp9tsod7s1.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s407645320 | p02408 | u792747184 | 1551467661 | Python | Python3 | py | Runtime Error | 0 | 0 | 1230 | n = int(input())
for i in range(n):
k = input().split()
if k[0] == 'S':
for i in range(1,14):
if int(k[1])==i:
continue
else:
s = list()
s.append(i)
s.sort()
sl = len(s)
if k[0] == 'H':
fo... | Traceback (most recent call last):
File "/tmp/tmpcy7j_qhh/tmpg3mvr4u5.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s951359153 | p02408 | u792747184 | 1551467677 | Python | Python3 | py | Runtime Error | 0 | 0 | 1228 | n = int(input())
for i in range(n):
k = input().split()
if k[0] == 'S':
for i in range(1,14):
if int(k[1])==i:
continue
else:
s = list()
s.append(i)
s.sort()
sl = len(s)
if k[0] == 'H':
fo... | Traceback (most recent call last):
File "/tmp/tmpu6m6pxl_/tmpwmb2fatl.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s823270445 | p02408 | u973699866 | 1555751340 | Python | Python | py | Runtime Error | 0 | 0 | 435 | n_cards = int(input())
taro_cards = []
for i in range(n_cards):
taro_card = input()
taro_cards.append(taro_card)
full_cards = []
for mark in ['S', 'H', 'C', 'D']:
for card_number in range(13):
full_cards.append(mark + " " + str(card_number+1))
missing_cards = []
for card in full_cards:
if card ... | Traceback (most recent call last):
File "/tmp/tmp4k9m1a6h/tmpbdsxkme3.py", line 1, in <module>
n_cards = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s166000039 | p02408 | u928633434 | 1555922777 | Python | Python3 | py | Runtime Error | 0 | 0 | 659 | table = [[ 0 for i in range(13)] for j in range(4)]
n = int(input())
i = 0
while i < n:
s,num = input().split()
num = int(num)
if s == "S":
table[0][n-1] = 1
elif s == "H":
table[1][n-1] = 1
elif s == "C":
table[2][n-1] = 1
else: # D
table[3][n-1]... | Traceback (most recent call last):
File "/tmp/tmp10vfc60x/tmpwasaz987.py", line 3, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s955694899 | p02408 | u405758695 | 1555976154 | Python | Python3 | py | Runtime Error | 0 | 0 | 218 | n=int(input())
cards = [(mark,num) for mark in ['S','H','C','D'] for num in range(1,14) ]
for _ in range(n):
mark,num=input().split()
cards.remove((mark,int(num)))
for (mark, num) in cards:
print(mak, num)
| Traceback (most recent call last):
File "/tmp/tmpjrtri8in/tmpragj4894.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s211637105 | p02408 | u482227082 | 1556432058 | Python | Python3 | py | Runtime Error | 0 | 0 | 546 | for i in range(1,13):
t[i] = 0
s = t
h = t
c = t
d = t
num = int(input())
for i in range(num)
m, n = input().split()
n = int(n)
if m == "s":
s[n] == 1
if m == "h":
h[n] == 1
if m == "c":
h[n] == 1
if m == "d":
h[n] == 1
for i in range(1,13):
if s[i] == ... | File "/tmp/tmpw61j9_u_/tmpmk975p5g.py", line 10
for i in range(num)
^
SyntaxError: expected ':'
| |
s470854108 | p02408 | u482227082 | 1556432070 | Python | Python3 | py | Runtime Error | 0 | 0 | 547 | for i in range(1,13):
t[i] = 0
s = t
h = t
c = t
d = t
num = int(input())
for i in range(num):
m, n = input().split()
n = int(n)
if m == "s":
s[n] == 1
if m == "h":
h[n] == 1
if m == "c":
h[n] == 1
if m == "d":
h[n] == 1
for i in range(1,13):
if s[i] ==... | File "/tmp/tmp5sod49nm/tmpi17lpk4n.py", line 24
print("S %d" i)
^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s547396480 | p02408 | u482227082 | 1556432089 | Python | Python3 | py | Runtime Error | 0 | 0 | 551 | for i in range(1,13):
t[i] = 0
s = t
h = t
c = t
d = t
num = int(input())
for i in range(num):
m, n = input().split()
n = int(n)
if m == "s":
s[n] == 1
if m == "h":
h[n] == 1
if m == "c":
h[n] == 1
if m == "d":
h[n] == 1
for i in range(1,13):
if s[i] ==... | Traceback (most recent call last):
File "/tmp/tmp0qa_wt4u/tmpc_k5yyd7.py", line 2, in <module>
t[i] = 0
^
NameError: name 't' is not defined
| |
s324396758 | p02408 | u482227082 | 1556432171 | Python | Python3 | py | Runtime Error | 0 | 0 | 560 | t[] = ""
for i in range(1,13):
t[i] = 0
s = t
h = t
c = t
d = t
num = int(input())
for i in range(num):
m, n = input().split()
n = int(n)
if m == "s":
s[n] == 1
if m == "h":
h[n] == 1
if m == "c":
h[n] == 1
if m == "d":
h[n] == 1
for i in range(1,13):
i... | File "/tmp/tmptdbo5biw/tmphrrdv2wn.py", line 1
t[] = ""
^
SyntaxError: invalid syntax
| |
s388125200 | p02408 | u482227082 | 1556432186 | Python | Python3 | py | Runtime Error | 0 | 0 | 559 | t = []
for i in range(1,13):
t[i] = 0
s = t
h = t
c = t
d = t
num = int(input())
for i in range(num):
m, n = input().split()
n = int(n)
if m == "s":
s[n] == 1
if m == "h":
h[n] == 1
if m == "c":
h[n] == 1
if m == "d":
h[n] == 1
for i in range(1,13):
if... | Traceback (most recent call last):
File "/tmp/tmpqbj1zk2h/tmpxiaq2_yo.py", line 4, in <module>
t[i] = 0
~^^^
IndexError: list assignment index out of range
| |
s935956548 | p02408 | u482227082 | 1556432206 | Python | Python3 | py | Runtime Error | 0 | 0 | 562 | t= list()
for i in range(1,13):
t[i] = 0
s = t
h = t
c = t
d = t
num = int(input())
for i in range(num):
m, n = input().split()
n = int(n)
if m == "s":
s[n] == 1
if m == "h":
h[n] == 1
if m == "c":
h[n] == 1
if m == "d":
h[n] == 1
for i in range(1,13):
... | Traceback (most recent call last):
File "/tmp/tmp8wjq2czy/tmposm5g10c.py", line 4, in <module>
t[i] = 0
~^^^
IndexError: list assignment index out of range
| |
s910545298 | p02408 | u482227082 | 1556432706 | Python | Python3 | py | Runtime Error | 0 | 0 | 543 | s = [0] * 13
h = [0] * 13
c = [0] * 13
d = [0] * 13
num = int(input())
for i in range(num):
m, n = input().split()
n = int(n)
if m == "S":
s[n] = 1
if m == "H":
h[n] = 1
if m == "C":
c[n] = 1
if m == "D":
d[n] = 1
for i in range(1,13):
if s[i] == 0:
... | Traceback (most recent call last):
File "/tmp/tmpv_kqffig/tmpoxfhw29r.py", line 6, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.