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
s855553889
p02408
u724923896
1454989164
Python
Python
py
Runtime Error
0
0
650
n = input() S = range(1, 14) H = range(1, 14) C = range(1, 14) D = range(1, 14) for i in range(0, n): mk, num = raw_input().split() if mk == 'S': S[int(num)-1] = 0 elif mk == 'H': H[int(num)-1] = 0 elif mk == 'C': C[int(num)-1] = 0 elif mk == 'D': ...
File "/tmp/tmp_q4txlsx/tmpt3wrwu7e.py", line 10 if mk == 'S': IndentationError: unexpected indent
s814722001
p02408
u724923896
1454989307
Python
Python
py
Runtime Error
0
0
806
n = input() ?????????????????? S = range(1, 14) H = range(1, 14) C = range(1, 14) D = range(1, 14) ?????????????????? for i in range(0, n): ??????mk, num = raw_input().split() ????????????if mk == 'S': ??????????????????S[int(num)-1] = 0 ????????????elif mk == 'H': ??????????????????H[int(num)-1] = 0 ????????????elif m...
File "/tmp/tmpohzc2v9_/tmppt4tztfi.py", line 2 ?????????????????? ^ SyntaxError: invalid syntax
s778158152
p02408
u724923896
1454989484
Python
Python
py
Runtime Error
0
0
605
n = input() S = range(1, 14) H = range(1, 14) C = range(1, 14) D = range(1, 14) for i in range(0, n): mk, num = raw_input().split() if mk == 'S': S[int(num)-1] = 0 elif mk == 'H': H[int(num)-1] = 0 elif mk == 'C': C[int(num)-1] = 0 elif mk == 'D': D[int(n...
File "/tmp/tmplxy8n_py/tmpar839emt.py", line 10 if mk == 'S': IndentationError: unexpected indent
s745422740
p02408
u724923896
1454990060
Python
Python
py
Runtime Error
0
0
589
n = input() S = range(1, 14) H = range(1, 14) C = range(1, 14) D = range(1, 14) for i in range(0, n): m, n = raw_input().split() if m == 'S': S[int(n)-1] = 0 elif m == 'H': H[int(n)-1] = 0 elif m == 'C': C[int(n)-1] = 0 elif m == 'D': D[int(n)-1] = 0 f...
File "/tmp/tmphreivt2i/tmpzm_vh92f.py", line 10 if m == 'S': IndentationError: unexpected indent
s608567168
p02408
u724923896
1454990183
Python
Python
py
Runtime Error
0
0
595
n = input() S = range(1, 14) H = range(1, 14) C = range(1, 14) D = range(1, 14) for i in range(0, n): m, k = raw_input().split() if m == 'S': S[int(k)-1] = 0 elif m == 'H': H[int(k)-1] = 0 elif m == 'C': C[int(k)-1] = 0 elif m == 'D': D[int(k)-1] = 0 ...
File "/tmp/tmpej5crznc/tmpkfmi6y98.py", line 10 if m == 'S': IndentationError: unexpected indent
s431767850
p02408
u724923896
1454990483
Python
Python
py
Runtime Error
0
0
548
n=input() S=range(1,14) H=range(1,14) C=range(1,14) D=range(1,14) for i in range(n): m, k=raw_input().split() if m == 'S': S[int(k)-1] = 0 elif m == 'H': H[int(k)-1] = 0 elif m == 'C': C[int(k)-1] = 0 elif m == 'D': D[int(k)-1] = 0 for i in range(0, 13): if S[i] != 0: ...
File "/tmp/tmplpirk4p7/tmpjodklddy.py", line 21 print 'S '+str(S[i]) ^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s198099998
p02408
u233232390
1455001269
Python
Python
py
Runtime Error
0
0
605
n = int(raw_input()) s = range(1,14) h = range(1,14) c = range(1,14) d = range(1,14) for i in range(n): r = raw_input().split() if hd == 'S': s[int(r)-1] = 0 elif hd == 'H': h[int(r)-1] = 0 elif hd == 'C': c[int(r)-1] = 0 elif hd == 'D': d[int(r)-1] = 0 a = 'S' fo...
File "/tmp/tmpk1w0le7s/tmpk_gnb8dy.py", line 21 print a + str(s[i]) ^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s368037970
p02408
u532962080
1455014601
Python
Python
py
Runtime Error
0
0
623
n = input() S = ['S 1','S 2','S 3','S 4','S 5','S 6','S 7','S 8','S 9','S 10','S 11','S 12','S 13'] H = ['H 1','H 2','H 3','H 4','H 5','H 6','H 7','H 8','H 9','H 10','H 11','H 12','H 13'] C = ['C 1','C 2','C 3','C 4','C 5','C 6','C 7','C 8','C 9','C 10','C 11','C 12','C 13'] D = ['D 1','D 2','D 3','D 4','D 5','D 6','D...
File "/tmp/tmpgkg389lz/tmphqid3aht.py", line 21 print i ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s982159338
p02408
u974554153
1455018153
Python
Python
py
Runtime Error
0
0
306
S=[0]*13 H=[0]*13 C=[0]*13 D=0]*13 CARD={} CARD['S']=S CARD['H']=H CARD['C']=C CARD['D']=D n=input() for_in xrange(n): x=raw_input().split() (CARD[x[0]])[int(x[1])-1]=1 for suit in ['S','H','C','D']: for i in xrange(13): if(CARD[card])[i]==0: print'%s %d'%(card,i+1)
File "/tmp/tmpyjpge548/tmp0299cj4i.py", line 6 D=0]*13 ^ SyntaxError: unmatched ']'
s468360696
p02408
u974554153
1455018170
Python
Python
py
Runtime Error
0
0
309
S=[0]*13 H=[0]*13 C=[0]*13 D=[0]*13 CARD={} CARD['S']=S CARD['H']=H CARD['C']=C CARD['D']=D n=input() for _ in xrange(n): x=raw_input().split() (CARD[x[0]])[int(x[1])-1]=1 for suit in ['S','H','C','D']: for i in xrange(13): if(CARD[card])[i]==0: print'%s %d'%(card,i+1)
File "/tmp/tmps0ja8xmn/tmpp639bwnx.py", line 22 print'%s %d'%(card,i+1) ^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s506881575
p02408
u974554153
1455018213
Python
Python
py
Runtime Error
0
0
309
S=[0]*13 H=[0]*13 C=[0]*13 D=[0]*13 CARD={} CARD['S']=S CARD['H']=H CARD['C']=C CARD['D']=D n=input() for _ in xrange(n): x=raw_input().split() (CARD[x[0]])[int(x[1])-1]=1 for suit in ['S','H','C','D']: for i in xrange(13): if(CARD[card])[i]==0: print'%s %d' % (card,i+1)
File "/tmp/tmpcv46n9g9/tmpo2wrbxbf.py", line 20 print'%s %d' % (card,i+1) ^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s270564514
p02408
u974554153
1455018280
Python
Python
py
Runtime Error
0
0
309
S=[0]*13 H=[0]*13 C=[0]*13 D=[0]*13 CARD={} CARD['S']=S CARD['H']=H CARD['C']=C CARD['D']=D n=input() for _ in xrange(n): x=raw_input().split() (CARD[x[0]])[int(x[1])-1]=1 for suit in ['S','H','C','D']: for i in xrange(13): if(CARD[card])[i]==0: print'%s %d' % (card,i+1)
File "/tmp/tmp74x7ktyb/tmpvq1px8g8.py", line 20 print'%s %d' % (card,i+1) ^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s123117907
p02408
u974554153
1455018341
Python
Python
py
Runtime Error
0
0
330
S=[0] * 13 H=[0] * 13 C=[0] * 13 D=[0] * 13 CARD={} CARD['S'] = S CARD['H'] =H CARD['C'] = C CARD['D']= D n=input() for _ in xrange(n): x = raw_input().split() (CARD[x[0]])[int(x[1])-1] = 1 for suit in ['S','H','C','D']: for i in xrange(13): if(CARD[card])[i] == 0: print'%s %d' % ...
File "/tmp/tmpxuet5hv3/tmpjim1p3kv.py", line 20 print'%s %d' % (card,i+1) ^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s059058385
p02408
u619765879
1455019448
Python
Python
py
Runtime Error
0
0
584
n = input() #a,b = map(str,raw_input().split()) a = [raw_input() for i in range(n)] j=0 for i in range(1,53): for j in range(n); if a[j] == 'S %s' % i: continue elif j==n-1: print 'S %s' % i or i in range(1,53): for j in range(n); if a[j] == 'H %s' % i: continue elif j==n-1: ...
File "/tmp/tmp2lcdoail/tmpwpq3nvkr.py", line 6 for j in range(n); ^ SyntaxError: invalid syntax
s795691161
p02408
u834416077
1455020569
Python
Python
py
Runtime Error
0
0
266
n = int(raw_input()) card = {"S":[0]*13, "H":[0]*13, "C":[0]*13, "D":[0]*13} for i in range(n): mark, nums = raw_input().split() deck[mark][nums] = 1 for i in ["S", "H", "C", "D"]: for j in range(13): if deck[i][j] == 0: print "%s %d" % (i, j+1)
File "/tmp/tmpwd3oj79b/tmput5rl_e5.py", line 11 print "%s %d" % (i, j+1) ^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s146443453
p02408
u834416077
1455020720
Python
Python
py
Runtime Error
0
0
269
n = int(raw_input()) card = {"S":[0]*13, "H":[0]*13, "C":[0]*13, "D":[0]*13} for i in range(n): mark, nums = raw_input().split() deck[mark][nums] = 1 for i in ["S", "H", "C", "D"]: for j in range(0,13): if deck[i][j] == 0: print "%s %d" % (i, j+1)
File "/tmp/tmpap1ahuul/tmpjq6gk2v3.py", line 12 print "%s %d" % (i, j+1) ^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s526912555
p02408
u834416077
1455020790
Python
Python
py
Runtime Error
0
0
269
n = int(raw_input()) card = {"S":[0]*13, "H":[0]*13, "C":[0]*13, "D":[0]*13} for i in range(n): mark, nums = raw_input().split() deck[mark][nums-1] = 1 for i in ["S", "H", "C", "D"]: for j in range(13): if deck[i][j] == 0: print "%s %d" % (i, j+1)
File "/tmp/tmpw2zhitgp/tmpm1h0vqy9.py", line 12 print "%s %d" % (i, j+1) ^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s731588908
p02408
u834416077
1455020816
Python
Python
py
Runtime Error
0
0
274
n = int(raw_input()) card = {"S":[0]*13, "H":[0]*13, "C":[0]*13, "D":[0]*13} for i in range(n): mark, nums = raw_input().split() deck[mark][int(nums)-1] = 1 for i in ["S", "H", "C", "D"]: for j in range(13): if deck[i][j] == 0: print "%s %d" % (i, j+1)
File "/tmp/tmpka0by8qw/tmpo1m8d4z4.py", line 12 print "%s %d" % (i, j+1) ^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s367175591
p02408
u253463900
1455022966
Python
Python3
py
Runtime Error
0
0
593
S = [] H = [] C = [] D = [] n = int(input()) for i in range(n): mark, num = [x for x in input().split()] if mark == 'S': S.append(int(num)) elif mark == 'H': H.append(int(num)) elif mark == "C": C.append(int(num)) else: #D D.append(int(num)) for i in range(1,14)...
File "/tmp/tmpzdle4yp3/tmpfqrcnoih.py", line 27 print("H", i)for i in range(1,14): ^^^ SyntaxError: invalid syntax
s516627885
p02408
u630265299
1455025595
Python
Python
py
Runtime Error
0
0
256
n = input() data = [] for i in ['H', 'C', 'S', 'D']: for j in ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13']: data.append(i + j) for i in range(n): data.remove(raw_input()) for i in range(len(data)): print data[i]
File "/tmp/tmp6e7rnsyg/tmpw83fko03.py", line 9 print data[i] ^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s073237705
p02408
u630265299
1455025602
Python
Python
py
Runtime Error
0
0
256
n = input() data = [] for i in ['H', 'C', 'S', 'D']: for j in ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13']: data.append(i + j) for i in range(n): data.remove(raw_input()) for i in range(len(data)): print data[i]
File "/tmp/tmpv_1nphn2/tmpo6mpcobi.py", line 9 print data[i] ^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s962826457
p02408
u630265299
1455026192
Python
Python
py
Runtime Error
0
0
216
n = input() data = [] for i in ['S', 'H', 'C', 'D']: for j in map(str , xrange(1, 14)): data.append(i + j) for i in xrange(n): data.remove(raw_input()) for i in xrange(len(data)): print data[i]
File "/tmp/tmpsvroeofm/tmpxv7_pmfg.py", line 9 print data[i] ^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s176609419
p02408
u630265299
1455026217
Python
Python
py
Runtime Error
0
0
223
n = input() data = [] a = [] for i in ['S', 'H', 'C', 'D']: for j in map(str , xrange(1, 14)): data.append(i + j) for i in xrange(n): data.remove(raw_input()) for i in xrange(len(data)): print data[i]
File "/tmp/tmpfvgo5p9k/tmpmlzkp1s_.py", line 10 print data[i] ^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s751425914
p02408
u630265299
1455026290
Python
Python
py
Runtime Error
0
0
224
n = input() data = [] a = [] for i in ['D', 'C', 'H', 'S']: for j in map( str , xrange(1, 14)): data.append(i + j) for i in xrange(n): data.remove(raw_input()) for i in xrange(len(data)): print data[i]
File "/tmp/tmpn41fuzq9/tmpj2_950i6.py", line 10 print data[i] ^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s890451850
p02408
u663227983
1455028787
Python
Python
py
Runtime Error
0
0
687
# coding: utf-8 # Here your code ! S =[i+1 for i in xrange(13)] H =[i+1 for i in xrange(13)] C =[i+1 for i in xrange(13)] D =[i+1 for i in xrange(13)] #[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] n = input() for i in xrange(n): c, a = raw_input().split() if c == "S": del S[int(a)-1] elif c == "H":...
File "/tmp/tmpcczi4kw9/tmpz670b29e.py", line 23 print "S " + str(S[i]) ^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s194346709
p02408
u663227983
1455028804
Python
Python
py
Runtime Error
0
0
651
S =[i+1 for i in xrange(13)] H =[i+1 for i in xrange(13)] C =[i+1 for i in xrange(13)] D =[i+1 for i in xrange(13)] #[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] n = input() for i in xrange(n): c, a = raw_input().split() if c == "S": del S[int(a)-1] elif c == "H": del H[int(a)-1] ...
File "/tmp/tmpi9jvceaf/tmp6_tlsb4j.py", line 20 print "S " + str(S[i]) ^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s261147774
p02408
u075836834
1457450760
Python
Python3
py
Runtime Error
0
0
179
n = int(input()) cards = [] for i in range(n): s,r=input().split() card.append((s,int(r))) for s,r in [(s,r) for s in 'SHCD' for r in range(1,14) if not in cards]: print(s,r)
File "/tmp/tmppz5c0drz/tmpuz4aulq8.py", line 6 for s,r in [(s,r) for s in 'SHCD' for r in range(1,14) if not in cards]: ^^ SyntaxError: invalid syntax
s730947548
p02408
u075836834
1457450846
Python
Python3
py
Runtime Error
0
0
180
n = int(input()) cards = [] for i in range(n): s,r=input().split() cards.append((s,int(r))) for s,r in [(s,r) for s in 'SHCD' for r in range(1,14) if not in cards]: print(s,r)
File "/tmp/tmpjjahgaal/tmphac0uk1w.py", line 6 for s,r in [(s,r) for s in 'SHCD' for r in range(1,14) if not in cards]: ^^ SyntaxError: invalid syntax
s631295469
p02408
u146647066
1462099660
Python
Python
py
Runtime Error
0
0
394
n=input() S=[range(1,14) for j in range(4)] for i in range(n): ip=raw_input().split() if ip[0]=='S': S[0].remove(ip[1]) elif ip[0]=='H': S[1].remove(ip[1]) elif ip[0]=='C': S[2].remove(ip[1]) else : S[3].remove(ip[1]) for i in S[0]: print 'S '+i for i in S[1]: ...
File "/tmp/tmpa5t15g5u/tmpz2lpa2iw.py", line 14 print 'S '+i ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s409830287
p02408
u762833208
1462171898
Python
Python
py
Runtime Error
0
0
608
n = input() s = [] h = [] c = [] d = [] for i in range(n): card = raw_input().split(" ") card[1] = int(card[1]) if card[0] == "S": s.append(card[1]) if card[0] == "H": h.append(card[1]) if card[0] == "C": c.append(card[1]) if card[0] == "D": d.append(card[1]) def sort_list(lst): #make a tempor...
File "/tmp/tmp8yhzfh78/tmp3k4rlnkt.py", line 24 temp.append(i) TabError: inconsistent use of tabs and spaces in indentation
s269797916
p02408
u762833208
1462173789
Python
Python
py
Runtime Error
0
0
608
n = input() s = [] h = [] c = [] d = [] for i in range(n): card = raw_input().split(" ") card[1] = int(card[1]) if card[0] == "S": s.append(card[1]) if card[0] == "H": h.append(card[1]) if card[0] == "C": c.append(card[1]) if card[0] == "D": d.append(card[1]) def sort_list(lst): #make a tempor...
File "/tmp/tmpz_mhrpx2/tmp052bko_o.py", line 24 temp.append(i) TabError: inconsistent use of tabs and spaces in indentation
s407655914
p02408
u762833208
1462176080
Python
Python
py
Runtime Error
0
0
242
n = input() d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13} for i in range(n): x, y = raw_input().split() d[x][int(y)-1] = True for k in ["S","H","C","D"]: for i in range(13): if not d[k][i]: print ("%s %d"%(k, i+1))
File "/tmp/tmp6mko0sj8/tmpl6wnt75_.py", line 11 print ("%s %d"%(k, i+1)) ^ IndentationError: expected an indented block after 'if' statement on line 10
s482966380
p02408
u762833208
1462176378
Python
Python
py
Runtime Error
0
0
246
n = input() d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13} for i in range(n): x, y = raw_input().split() d[x][int(y)-1] = True for k in ["S","H","C","D"]: for i in range(13): if d[k][i] == True: print ("%s %d"%(k, i+1))
File "/tmp/tmpx5v7gyyy/tmp4n3bxdac.py", line 11 print ("%s %d"%(k, i+1)) ^ IndentationError: expected an indented block after 'if' statement on line 10
s913816058
p02408
u762833208
1462176402
Python
Python
py
Runtime Error
0
0
238
n = input() d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13} for i in range(n): x, y = raw_input().split() d[x][int(y)-1] = True for k in ["S","H","C","D"]: for i in range(13): if d[k][i]: print ("%s %d"%(k, i+1))
File "/tmp/tmpsm18xby1/tmpcf7gnivs.py", line 11 print ("%s %d"%(k, i+1)) ^ IndentationError: expected an indented block after 'if' statement on line 10
s694073265
p02408
u762833208
1462177345
Python
Python
py
Runtime Error
0
0
250
n = input() d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13} for i in range(n): x, y = raw_input().split() d[x][int(y)-1] = True for k in ["S","H","C","D"]: for i in range(13): if d[k][i]: continue print ("%s %d"%(k, i+1))
Traceback (most recent call last): File "/tmp/tmpopa28onv/tmp0xs3cuq1.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s553362183
p02408
u762833208
1462180993
Python
Python
py
Runtime Error
0
0
290
n = int(raw_input) lst = [] #store all the cards for i in ["S","H","C","D"]: for j in xrange(1,14): lst.append("{0} {1}".format((i,j)) #discard the given cards for i in xrange(0,n): a = raw_input() if a in lst: lst.remove(a) #print the result for i in xrange(0,len(lst)): print a[i]
File "/tmp/tmphi59cvnk/tmptpw4ghko.py", line 6 lst.append("{0} {1}".format((i,j)) ^ SyntaxError: '(' was never closed
s237823716
p02408
u762833208
1462181023
Python
Python
py
Runtime Error
0
0
292
n = int(raw_input) lst = [] #store all the cards for i in ["S","H","C","D"]: for j in xrange(1,14): lst.append("{0} {1}".format((i,j)) #discard the given cards for i in xrange(0,n): a = raw_input() if a in lst: lst.remove(a) #print the result for i in xrange(0,len(lst)): print lst[i]
File "/tmp/tmpgio1st65/tmpvsx4r35d.py", line 6 lst.append("{0} {1}".format((i,j)) ^ SyntaxError: '(' was never closed
s595869473
p02408
u762833208
1462181080
Python
Python
py
Runtime Error
0
0
277
n = int(raw_input) lst = [] #store all the cards for i in ["S","H","C","D"]: for j in xrange(1,14): lst.append("{0} {1}".format((i,j)) #discard the given cards for i in xrange(0,n): a = raw_input() lst.remove(a) #print the result for i in xrange(0,len(lst)): print lst[i]
File "/tmp/tmpy1j3coyc/tmp5swa9d29.py", line 6 lst.append("{0} {1}".format((i,j)) ^ SyntaxError: '(' was never closed
s038861575
p02408
u762833208
1462181406
Python
Python
py
Runtime Error
0
0
279
n = int(raw_input()) lst = [] #store all the cards for i in ["S","H","C","D"]: for j in xrange(1,14): lst.append("{0} {1}".format((i,j)) #discard the given cards for i in xrange(0,n): a = raw_input() lst.remove(a) #print the result for i in xrange(0,len(lst)): print lst[i]
File "/tmp/tmpi30akhoy/tmpdtsmfilg.py", line 6 lst.append("{0} {1}".format((i,j)) ^ SyntaxError: '(' was never closed
s762301040
p02408
u762833208
1462181434
Python
Python
py
Runtime Error
0
0
257
n = int(raw_input) lst = [] #store all the cards for i in ["S","H","C","D"]: for j in xrange(1,14): lst.append("{0} {1}".format((i,j)) #discard the given cards for i in xrange(0,n): a = raw_input() lst.remove(a) #print the result for i in lst: print i
File "/tmp/tmpr0_c3mim/tmpvnyzphsb.py", line 6 lst.append("{0} {1}".format((i,j)) ^ SyntaxError: '(' was never closed
s356318299
p02408
u762833208
1462181442
Python
Python
py
Runtime Error
0
0
259
n = int(raw_input()) lst = [] #store all the cards for i in ["S","H","C","D"]: for j in xrange(1,14): lst.append("{0} {1}".format((i,j)) #discard the given cards for i in xrange(0,n): a = raw_input() lst.remove(a) #print the result for i in lst: print i
File "/tmp/tmpfl97to2k/tmpkss091n6.py", line 6 lst.append("{0} {1}".format((i,j)) ^ SyntaxError: '(' was never closed
s617130640
p02408
u587193722
1469634815
Python
Python3
py
Runtime Error
0
0
627
S = [] H = [] C = [] D = [] for i in (S, H, C, D): for k in range(1, 13+1): i.append(k) for u in range(0, int(input())): x, y = (i for i in input().split()) if x == "S": S.remove(int(y)) elif x == "H": H.remove(int(y)) elif x == "C": H.remove(int(y)) els...
Traceback (most recent call last): File "/tmp/tmpihoquumj/tmp9mmxxlhl.py", line 10, in <module> for u in range(0, int(input())): ^^^^^^^ EOFError: EOF when reading a line
s863462096
p02408
u264632995
1469684912
Python
Python3
py
Runtime Error
0
0
202
data = [ "{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13 + 1) ] count = int(input()) for c in range(count): card = input() data.remove(card) print(dat
File "/tmp/tmpyolgrhas/tmp3q9z8ugf.py", line 12 print(dat ^ SyntaxError: '(' was never closed
s731001284
p02408
u498041957
1469685279
Python
Python3
py
Runtime Error
0
0
209
data = [ "{0} {1}".format(s,r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1) ] count = int(input()) for c in range() card = input() data.remove(card) print("\n".join(data))
File "/tmp/tmpvk12gezf/tmpjr3x890u.py", line 8 for c in range() ^ SyntaxError: expected ':'
s779458538
p02408
u498041957
1469685414
Python
Python3
py
Runtime Error
0
0
214
data = [ "{0} {1}".format(s,r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1) ] count = int(input()) for c in range() card = input() data.remove(card) for c in data: print(c)
File "/tmp/tmp7e89m866/tmpj48w_5yu.py", line 8 for c in range() ^ SyntaxError: expected ':'
s446024434
p02408
u498041957
1469685455
Python
Python3
py
Runtime Error
0
0
220
data = [ "{0} {1}".format(s,r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1) ] count = int(input()) for c in range(count): card = input() data.remove(card) for c in data: print(c)
Traceback (most recent call last): File "/tmp/tmpu9j1trnl/tmpujbywtfy.py", line 7, in <module> count = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s077936565
p02408
u644636020
1469685465
Python
Python3
py
Runtime Error
0
0
203
data = ["{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1)] count = int(input()) for c in range(count): card = input() data.remove(card) for c in data: print(c)
Traceback (most recent call last): File "/tmp/tmpz35t75n0/tmpbj4vvps1.py", line 3, in <module> count = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s660150806
p02408
u498041957
1469685515
Python
Python3
py
Runtime Error
0
0
221
data = [ "{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1) ] count = int(input()) for c in range(count): card = input() data.remove(card) for c in data: print(c)
Traceback (most recent call last): File "/tmp/tmpsrvhd_ox/tmpvus6ifbr.py", line 7, in <module> count = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s404133529
p02408
u382316013
1469685525
Python
Python3
py
Runtime Error
0
0
221
data = [ "{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D')] for r in range(1, 13 + 1) ] count = int(input()) for c in range(count): card = input() data.remove(card) for c in data: print(c)
File "/tmp/tmpj8vcgx96/tmpdxt4y8qx.py", line 4 for r in range(1, 13 + 1) IndentationError: unexpected indent
s400406082
p02408
u644636020
1469685536
Python
Python3
py
Runtime Error
0
0
203
data = ["{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1)] count = int(input()) for c in range(count): card = input() data.remove(card) for c in data: print(c)
Traceback (most recent call last): File "/tmp/tmp27jrqir2/tmpgqagf_le.py", line 3, in <module> count = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s719641811
p02408
u644636020
1469685825
Python
Python3
py
Runtime Error
0
0
203
data = ["{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1)] count = int(input()) for c in range(count): card = input() data.remove(card) for c in data: print(c)
Traceback (most recent call last): File "/tmp/tmp2ukpt33x/tmpw0ynjt56.py", line 3, in <module> count = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s147697076
p02408
u111053265
1474560283
Python
Python3
py
Runtime Error
0
0
402
N = int(input()) a = [input().split() for i in range(N)] Set = {} n = list(range(1,14)) Set['S'] = n.copy() Set['H'] = n.copy() Set['C'] = n.copy() Set['D'] = n.copy() for suit,num in a: Set[suit].remove(num) for i in Set['S']: print("S {}".format(i)) for i in Set['H']: print("H {}".format(i)) for i in Se...
Traceback (most recent call last): File "/tmp/tmps6o86dbd/tmp5uuc3fyw.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s099032220
p02408
u801346721
1476783374
Python
Python3
py
Runtime Error
0
0
407
n = int(input()) S = ['S'] H = ['H'] C = ['C'] D = ['D'] for i in range(0, n): x = input().split() if x[0] == 'S': S.append(int(x[1]) elif x[0] == 'H': H.append(int(x[1]) elif x[0] == 'C': C.append(int(x[1]) else: D.append(int(x[1]) def print(list): list.sort() for i in range(1, 14): if i not in list: ...
File "/tmp/tmpc70bd8_e/tmpnz12txg7.py", line 10 elif x[0] == 'H': ^^^^ SyntaxError: invalid syntax
s214186353
p02408
u801346721
1476783726
Python
Python3
py
Runtime Error
0
0
413
n = int(input()) S = ['S'] H = ['H'] C = ['C'] D = ['D'] for i in range(0, n): x = list(input().split()) if x[0] == 'S': S.append(int(x[1]) elif x[0] == 'H': H.append(int(x[1]) elif x[0] == 'C': C.append(int(x[1]) else: D.append(int(x[1]) def print(list): list.sort() for i in range(1, 14): if i not in ...
File "/tmp/tmpnvh39lst/tmp9yfnodh_.py", line 10 elif x[0] == 'H': ^^^^ SyntaxError: invalid syntax
s654748578
p02408
u801346721
1476783828
Python
Python3
py
Runtime Error
0
0
417
n = int(input()) S = ['S'] H = ['H'] C = ['C'] D = ['D'] for i in range(0, n): x = list(input().split()) if x[0] == 'S': S.append(int(x[1])) elif x[0] == 'H': H.append(int(x[1])) elif x[0] == 'C': C.append(int(x[1])) else: D.append(int(x[1])) def print(list): list.sort() for i in range(1, 14): if i not...
File "/tmp/tmpjkykfe0l/tmp3u3c99j5.py", line 20 print("{0} {1}".format(list[0], i, end = "\n") ^ SyntaxError: '(' was never closed
s628362793
p02408
u801346721
1476783882
Python
Python3
py
Runtime Error
0
0
418
n = int(input()) S = ['S'] H = ['H'] C = ['C'] D = ['D'] for i in range(0, n): x = list(input().split()) if x[0] == 'S': S.append(int(x[1])) elif x[0] == 'H': H.append(int(x[1])) elif x[0] == 'C': C.append(int(x[1])) else: D.append(int(x[1])) def print(list): list.sort() for i in range(1, 14): if i not...
Traceback (most recent call last): File "/tmp/tmp06jdbdty/tmpkpxfxgsr.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s333683871
p02408
u801346721
1476783899
Python
Python3
py
Runtime Error
0
0
417
n = int(input()) S = ['S'] H = ['H'] C = ['C'] D = ['D'] for i in range(0, n): x = list(input().split()) if x[0] == 'S': S.append(int(x[1])) elif x[0] == 'H': H.append(int(x[1])) elif x[0] == 'C': C.append(int(x[1])) else: D.append(int(x[1])) def print(list): list.sort() for i in range(1, 14): if i not...
Traceback (most recent call last): File "/tmp/tmpkz1l11a8/tmpomno8y9g.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s082823632
p02408
u801346721
1476784133
Python
Python3
py
Runtime Error
0
0
428
n = int(input()) S = [] H = [] C = [] D = [] for i in range(0, n): x = list(input().split()) if x[0] == 'S': S.append(int(x[1])) elif x[0] == 'H': H.append(int(x[1])) elif x[0] == 'C': C.append(int(x[1])) else: D.append(int(x[1])) def print(list, type): list.sort() for i in range(1, 14): if i not in li...
Traceback (most recent call last): File "/tmp/tmp_hm7qe2m/tmp5izju5vg.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s042953786
p02408
u996758922
1477144870
Python
Python3
py
Runtime Error
0
0
491
my_cards = [] for i in range(n): my_cards.append(input()) all_cards =[] for i in range(13): all_cards.append("S "+str(i+1)) for i in range(13): all_cards.append("H "+str(i+1)) for i in range(13): all_cards.append("C "+str(i+1)) for i in range(13): all_cards.append("D "+str(i+1)) print(my_cards) ...
Traceback (most recent call last): File "/tmp/tmp2lwh8h8q/tmpqkmej_oh.py", line 2, in <module> for i in range(n): ^ NameError: name 'n' is not defined
s435040745
p02408
u996758922
1477144947
Python
Python3
py
Runtime Error
0
0
474
my_cards = [] for i in range(n): my_cards.append(input()) all_cards =[] for i in range(13): all_cards.append("S "+str(i+1)) for i in range(13): all_cards.append("H "+str(i+1)) for i in range(13): all_cards.append("C "+str(i+1)) for i in range(13): all_cards.append("D "+str(i+1)) lost_cards = [] f...
Traceback (most recent call last): File "/tmp/tmpsfau8nd9/tmp5w4dpqju.py", line 2, in <module> for i in range(n): ^ NameError: name 'n' is not defined
s929484416
p02408
u236295012
1478000976
Python
Python3
py
Runtime Error
0
0
763
S = list('0'*13) H = list('1'*13) C = list('2'*13) D = list('3'*13) card_all = [S,H,C,D] n = int(input()) for i in range(n): card = input().split() if card[0] == 'S': card_all[0][int(card[1])-1] = int(card[1]) elif card[0] == 'H': card_all[1][int(card[1])-1] = int(card[1]) elif card[0] ...
File "/tmp/tmpnnqtepow/tmpx9xu11o8.py", line 19 for ??? in card_all: ^ SyntaxError: invalid syntax
s696255242
p02408
u236295012
1478001004
Python
Python3
py
Runtime Error
0
0
763
S = list('0'*13) H = list('1'*13) C = list('2'*13) D = list('3'*13) card_all = [S,H,C,D] n = int(input()) for i in range(n): card = input().split() if card[0] == 'S': card_all[0][int(card[1])-1] = int(card[1]) elif card[0] == 'H': card_all[1][int(card[1])-1] = int(card[1]) elif card[0] ...
File "/tmp/tmpe7_0qq1h/tmp3y7scscj.py", line 19 for ??? in card_all: ^ SyntaxError: invalid syntax
s672975234
p02408
u236295012
1478001080
Python
Python3
py
Runtime Error
0
0
751
S = list('0'*13) H = list('1'*13) C = list('2'*13) D = list('3'*13) card_all = [S,H,C,D] n = int(input()) for i in range(n): card = input().split() if card[0] == 'S': card_all[0][int(card[1])-1] = int(card[1]) elif card[0] == 'H': card_all[1][int(card[1])-1] = int(card[1]) elif card[0] ...
File "/tmp/tmpzg0w1ogt/tmpcl3n7jex.py", line 18 for ??? in card_all: ^ SyntaxError: invalid syntax
s816551357
p02408
u236295012
1478001270
Python
Python3
py
Runtime Error
0
0
751
S = list('0'*13) H = list('1'*13) C = list('2'*13) D = list('3'*13) card_all = [S,H,C,D] n = int(input()) for i in range(n): card = input().split() if card[0] == 'S': card_all[0][int(card[1])-1] = int(card[1]) elif card[0] == 'H': card_all[1][int(card[1])-1] = int(card[1]) elif card[0] ...
File "/tmp/tmppmiy0tou/tmpoifpzdj1.py", line 18 for ??? in card_all: ^ SyntaxError: invalid syntax
s605745873
p02408
u236295012
1478001608
Python
Python3
py
Runtime Error
0
0
751
S = list('0'*13) H = list('1'*13) C = list('2'*13) D = list('3'*13) card_all = [S,H,C,D] n = int(input()) for i in range(n): card = input().split() if card[0] == 'S': card_all[0][int(card[1])-1] = int(card[1]) elif card[0] == 'H': card_all[1][int(card[1])-1] = int(card[1]) elif card[0] ...
File "/tmp/tmpbouubb2v/tmpb15_psbk.py", line 18 for ??? in card_all: ^ SyntaxError: invalid syntax
s090035775
p02408
u236295012
1478001902
Python
Python3
py
Runtime Error
0
0
751
S = list('0'*13) H = list('1'*13) C = list('2'*13) D = list('3'*13) card_all = [S,H,C,D] n = int(input()) for i in range(n): card = input().split() if card[0] == 'S': card_all[0][int(card[1])-1] = int(card[1]) elif card[0] == 'H': card_all[1][int(card[1])-1] = int(card[1]) elif card[0] ...
File "/tmp/tmppho2068a/tmpftc854dm.py", line 18 for ??? in card_all: ^ SyntaxError: invalid syntax
s111192815
p02408
u236295012
1478001935
Python
Python3
py
Runtime Error
0
0
751
S = list('0'*13) H = list('1'*13) C = list('2'*13) D = list('3'*13) card_all = [S,H,C,D] n = int(input()) for i in range(n): card = input().split() if card[0] == 'S': card_all[0][int(card[1])-1] = int(card[1]) elif card[0] == 'H': card_all[1][int(card[1])-1] = int(card[1]) elif card[0] ...
File "/tmp/tmpt2ar21kf/tmpcz3o42c6.py", line 18 for ??? in card_all: ^ SyntaxError: invalid syntax
s909770440
p02408
u222741219
1478786062
Python
Python
py
Runtime Error
0
0
411
#!/usr/bin/env python # -*- coding: utf-8 -*- import fileinput # ['S', 'H', 'C', 'D'] number = range(1, 52) m_number = range(1, 4) card = (m_number, number) if __name__ == '__main__': line = fileinput.input() count = int(line) for i in range(1, count): line = fileinput.input() tokens = l...
File "/tmp/tmpg20b3wzi/tmp02dei7o1.py", line 19 print '%S %d' % (a, b) ^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s398769415
p02408
u285015144
1478947874
Python
Python3
py
Runtime Error
0
0
403
flag = [False] * 53 n = int(input()) for i in range(n): c, n = map(str, input().split()) n = int(n) if(c == "S"): flag[n] = True elif(c == "H"): flag[13 + n] = True elif(c == "C"): flag[26 + n] = True else: flag[39 + n] = True suit = ["S", "H", "C", "D"] for i in ...
Traceback (most recent call last): File "/tmp/tmp315ub2eq/tmpbz8dnol1.py", line 2, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s084028055
p02408
u082526811
1479003256
Python
Python3
py
Runtime Error
0
0
397
if __name__ == "__main__": cords = { 'S': [ i+1 for i in range(13) ], 'H': [ i+1 for i in range(13) ], 'C': [ i+1 for i in range(13) ], 'D': [ i+1 for i in range(13) ] } num = int(input()) for i in range(num): cha, number = input().split() cards[cha][int(number)] = 0 for i in ('S','H','C','D'): f...
Traceback (most recent call last): File "/tmp/tmp61e5h559/tmpi5s4fwj8.py", line 8, in <module> num = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s629225654
p02408
u082526811
1479004693
Python
Python3
py
Runtime Error
0
0
397
if __name__ == "__main__": cards = { 'S': [ i+1 for i in range(13) ], 'H': [ i+1 for i in range(13) ], 'C': [ i+1 for i in range(13) ], 'D': [ i+1 for i in range(13) ] } num = int(input()) for i in range(num): cha, number = input().split() cards[cha][int(number)] = 0 for i in ('S','H','C','D'): f...
Traceback (most recent call last): File "/tmp/tmpkm1x1dk6/tmpu0z2kjiv.py", line 8, in <module> num = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s204265947
p02408
u082526811
1479004784
Python
Python3
py
Runtime Error
0
0
397
if __name__ == "__main__": cards = { 'S': [ i+1 for i in range(13) ], 'H': [ i+1 for i in range(13) ], 'C': [ i+1 for i in range(13) ], 'D': [ i+1 for i in range(13) ] } num = int(input()) for i in range(num): cha, number = input().split() cards[cha][int(number)] = 0 for i in ('S','H','C','D'): f...
Traceback (most recent call last): File "/tmp/tmppy6e8crt/tmp7u53ker0.py", line 8, in <module> num = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s759959076
p02408
u216804574
1479174256
Python
Python3
py
Runtime Error
0
0
458
n = int(input()) s_l = h_l = c_l = d_l = [1,2,3,4,5,6,7,8,9,10,11,12,13] for i in range(0, n): mark, num = input().split() if mark == "S": s_l.remove(int(num)) if mark == "H": h_l.remove(int(num)) if mark == "C": c_l.remove(int(num)) if mark == "D": d_l.remove(int(num)) for s in s_l: print...
Traceback (most recent call last): File "/tmp/tmpqh_9_zyu/tmpsr4b77wf.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s832320395
p02408
u854978981
1479629611
Python
Python3
py
Runtime Error
0
0
487
s = range(1,14) h = range(1,14) c = range(1,14) d = range(1,14) n = int(input()) while n > 0: x = input().split(' ') if x[0] == 'S': s[x[1]-1] = 0 elif x[0] == 'H': h[x[1]-1] = 0 elif x[0] == 'C': c[x[1]-1] = 0 elif x[0] == 'D': d[x[1]-1] = 0 n -= 1 for t in s: ...
Traceback (most recent call last): File "/tmp/tmpgp0_x65g/tmp50wb88fx.py", line 6, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s993209265
p02408
u870718588
1481169050
Python
Python3
py
Runtime Error
0
0
413
cards = [[False] * 14 for i in range(4)] n = int(input()) for i in range(n): suit, rank = input().split() r = int(rank) if suit == "S": s == 0 elif suit == "H": s == 1 elif suit == "C": s == 2 else: s == 3 cards[s][r] = True name = ["S", "H", "C", "D"] for s ...
Traceback (most recent call last): File "/tmp/tmpbt3qik1t/tmpo1p68emm.py", line 2, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s465368817
p02408
u494314211
1481413293
Python
Python3
py
Runtime Error
0
0
156
l=[] for mark in ["S","H","C","D"]: for i in range(1,14): l.append(mark+" "+str(i)) n=input() for i in range(n): l.remove(input()) for i in l: print(i)
Traceback (most recent call last): File "/tmp/tmp11nbz4ry/tmpyxk30o_y.py", line 5, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s049160948
p02408
u494314211
1481413391
Python
Python3
py
Runtime Error
0
0
156
l=[] for mark in ["S","H","C","D"]: for i in range(1,14): l.append(mark+" "+str(i)) n=input() for i in range(n): l.remove(input()) for i in l: print(i)
Traceback (most recent call last): File "/tmp/tmpqf28n6qb/tmp3xy7suhw.py", line 5, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s043655477
p02408
u494314211
1481413678
Python
Python3
py
Runtime Error
30
7600
179
l=[] for mark in ["S","H","C","D"]: for i in range(1,14): l.append(mark+" "+str(i)) n=input() for i in range(int(n)): l.remove(input()) for i in l[:-1]: print(i) print(l[-1])
Traceback (most recent call last): File "/tmp/tmpk4yxhlwk/tmppg34tpgr.py", line 5, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s783490334
p02408
u513411598
1481726402
Python
Python3
py
Runtime Error
0
0
362
suits = {"S":0, "H":1, "C":2, "D":3} cards = [[0 for i2 in range(13)] for i1 in ("S", "H", "C", "D")] n = int(input()) for i in range(n): (suit, rank) = input().split(" ") cards[suits[suit]][int(rank)] = 1 for suit in ("S", "H", "C", "D"): for number in range(13): if cards[suits[suit]][number + 1]...
Traceback (most recent call last): File "/tmp/tmp2g8xjj1n/tmpqtsonf64.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s466935951
p02408
u957840591
1481903890
Python
Python
py
Runtime Error
0
0
251
n=input() s=c=h=d=range(1,14) trump={'S':s,'C':c,'H':h,'D':d} for i in range(n): suit,num=raw_input().split() num=int(num) trump[suit].remove(num) for suit in ['S','H','C','D']: for num in trump[suit]: print('%s %d'%(suit,num))
Traceback (most recent call last): File "/tmp/tmpioix0vjv/tmph58m9o89.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s875857913
p02408
u957840591
1481904243
Python
Python
py
Runtime Error
0
0
251
n=input() s=c=h=d=range(1,14) trump={'S':s,'C':c,'H':h,'D':d} for i in range(n): suit,num=raw_input().split() num=int(num) trump[suit].remove(num) for suit in ['S','H','C','D']: for num in trump[suit]: print('%s %d'%(suit,num))
Traceback (most recent call last): File "/tmp/tmp5156skio/tmpf_osvhso.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s950917369
p02408
u957840591
1481905065
Python
Python
py
Runtime Error
0
0
251
n=input() s=c=h=d=range(1,14) trump={'S':s,'C':c,'H':h,'D':d} for i in range(n): suit,num=raw_input().split() num=int(num) trump[suit].remove(num) for suit in ['S','H','C','D']: for num in trump[suit]: print('%s %d'%(suit,num))
Traceback (most recent call last): File "/tmp/tmpjcz35usq/tmpe088q9y7.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s279179390
p02408
u918276501
1484200651
Python
Python3
py
Runtime Error
0
0
169
l=[] for x in ['S','H','C','D']: for y in [str(i+1) for i in range(13)]: l += [x+' '+y] for n in range(input()): l.remove(input()) for i in l: print(i)
Traceback (most recent call last): File "/tmp/tmp6t07u8qr/tmpt736d78w.py", line 7, in <module> for n in range(input()): ^^^^^^^ EOFError: EOF when reading a line
s399720439
p02408
u918276501
1484200866
Python
Python3
py
Runtime Error
0
0
173
l=[] for x in ['S','H','C','D']: for y in [str(i+1) for i in range(13)]: l += [x+' '+y] for n in range(int(input()): l.remove(input()) for i in l: print(i)
File "/tmp/tmpbpai8bfz/tmpk1yd1s5g.py", line 7 for n in range(int(input()): ^ SyntaxError: invalid syntax
s721380831
p02408
u144068724
1486153903
Python
Python3
py
Runtime Error
0
0
215
cards = [] mark = ["S","H","C","D"] for i in (mark): for j in range(1,14): cards.append( i + " " + str(j) ) print(cards) n = int(input()) for i in range(n+1): a = input() cards.remove(a) print(a)
Traceback (most recent call last): File "/tmp/tmpk1jvbcm9/tmpn5bs2gu2.py", line 7, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
['S 1', 'S 2', 'S 3', 'S 4', 'S 5', 'S 6', 'S 7', 'S 8', 'S 9', 'S 10', 'S 11', 'S 12', 'S 13', 'H 1', 'H 2', 'H 3', 'H 4', 'H 5', 'H 6', 'H 7', 'H 8', 'H 9', 'H 10', 'H 11', 'H 12', 'H 13', 'C 1', 'C 2', 'C 3', 'C 4', 'C 5', 'C 6', 'C 7', 'C 8', 'C 9', 'C 10', 'C 11', 'C 12', 'C 13', 'D 1', 'D 2', 'D 3', 'D 4', 'D 5',...
s840321153
p02408
u144068724
1486153935
Python
Python3
py
Runtime Error
0
0
215
cards = [] mark = ["S","H","C","D"] for i in (mark): for j in range(1,14): cards.append( i + " " + str(j) ) print(cards) n = int(input()) for i in range(n+1): a = input() cards.remove(a) print(a)
Traceback (most recent call last): File "/tmp/tmpoedymqau/tmp8l1ofhcj.py", line 7, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
['S 1', 'S 2', 'S 3', 'S 4', 'S 5', 'S 6', 'S 7', 'S 8', 'S 9', 'S 10', 'S 11', 'S 12', 'S 13', 'H 1', 'H 2', 'H 3', 'H 4', 'H 5', 'H 6', 'H 7', 'H 8', 'H 9', 'H 10', 'H 11', 'H 12', 'H 13', 'C 1', 'C 2', 'C 3', 'C 4', 'C 5', 'C 6', 'C 7', 'C 8', 'C 9', 'C 10', 'C 11', 'C 12', 'C 13', 'D 1', 'D 2', 'D 3', 'D 4', 'D 5',...
s173706126
p02408
u144068724
1486154008
Python
Python3
py
Runtime Error
0
0
215
cards = [] mark = ["S","H","C","D"] for i in (mark): for j in range(1,14): cards.append( i + " " + str(j) ) print(cards) n = int(input()) for i in range(n+1): a = input() cards.remove(a) print(a)
Traceback (most recent call last): File "/tmp/tmpn0nxpszn/tmpvpjrlagq.py", line 7, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
['S 1', 'S 2', 'S 3', 'S 4', 'S 5', 'S 6', 'S 7', 'S 8', 'S 9', 'S 10', 'S 11', 'S 12', 'S 13', 'H 1', 'H 2', 'H 3', 'H 4', 'H 5', 'H 6', 'H 7', 'H 8', 'H 9', 'H 10', 'H 11', 'H 12', 'H 13', 'C 1', 'C 2', 'C 3', 'C 4', 'C 5', 'C 6', 'C 7', 'C 8', 'C 9', 'C 10', 'C 11', 'C 12', 'C 13', 'D 1', 'D 2', 'D 3', 'D 4', 'D 5',...
s705046445
p02408
u144068724
1486154111
Python
Python3
py
Runtime Error
0
0
219
cards = [] mark = ["S","H","C","D"] for i in (mark): for j in range(1,14): cards.append( i + " " + str(j) ) print(cards) n = int(input()) for i in range(n+1): a = input() cards.remove(a) print(cards)
Traceback (most recent call last): File "/tmp/tmp9_gdlyju/tmp2g95flp4.py", line 7, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
['S 1', 'S 2', 'S 3', 'S 4', 'S 5', 'S 6', 'S 7', 'S 8', 'S 9', 'S 10', 'S 11', 'S 12', 'S 13', 'H 1', 'H 2', 'H 3', 'H 4', 'H 5', 'H 6', 'H 7', 'H 8', 'H 9', 'H 10', 'H 11', 'H 12', 'H 13', 'C 1', 'C 2', 'C 3', 'C 4', 'C 5', 'C 6', 'C 7', 'C 8', 'C 9', 'C 10', 'C 11', 'C 12', 'C 13', 'D 1', 'D 2', 'D 3', 'D 4', 'D 5',...
s784032402
p02408
u104171359
1486437954
Python
Python3
py
Runtime Error
0
0
552
#!usr/bin/env python3 import sys def main(): # s: spades # h: hearts # c: clubs # d: diamonds card_deck = {'S': [], 'H': [], 'C': [], 'D': []} card_symbols = ['S', 'H', 'C', 'D'] lst = [card for card in sys.stdin.readline().split()] card_deck[lst[0]].append(lst[1]) for key, valu...
Traceback (most recent call last): File "/tmp/tmp4zohmmjh/tmpmx_0uqn5.py", line 27, in <module> main() File "/tmp/tmp4zohmmjh/tmpmx_0uqn5.py", line 15, in main card_deck[lst[0]].append(lst[1]) ~~~^^^ IndexError: list index out of range
s931248077
p02408
u104171359
1486441641
Python
Python3
py
Runtime Error
0
0
699
#!usr/bin/env python3 import sys def init_card_deck(): # S: spades # H: hearts # C: clubs # D: diamonds card_deck = {'S': [], 'H': [], 'C': [], 'D': []} n = int(sys.stdin.readline()) for i in range(n): lst = [card for card in sys.stdin.readline().split()] card_deck[lst[0]...
File "/tmp/tmpwluvgh67/tmpzznr04ul.py", line 28 print(, card) ^ SyntaxError: invalid syntax
s940784436
p02408
u104171359
1486441676
Python
Python3
py
Runtime Error
0
0
700
#!usr/bin/env python3 import sys def init_card_deck(): # S: spades # H: hearts # C: clubs # D: diamonds card_deck = {'S': [], 'H': [], 'C': [], 'D': []} n = int(sys.stdin.readline()) for i in range(n): lst = [card for card in sys.stdin.readline().split()] card_deck[lst[0]...
Traceback (most recent call last): File "/tmp/tmpw3idsypf/tmpca1m5ysu.py", line 36, in <module> main() File "/tmp/tmpw3idsypf/tmpca1m5ysu.py", line 32, in main print(find_missing_cards(init_card_deck())) ^^^^^^^^^^^^^^^^^^ NameError: name 'find_missing_cards' is not defined. Did you mean: 'print_m...
s278289265
p02408
u227438830
1487621631
Python
Python3
py
Runtime Error
0
0
206
n = int(input()) cards = [] for i in range(n): s, a = input().split() cards.append((s, a)) l = [(s, a) for s in "SHCD" and a in range(1,14) and (s,a)not in cards] for b in l: print(s + " " + a)
Traceback (most recent call last): File "/tmp/tmpno93gtng/tmpewcna4mm.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s673404524
p02408
u024715419
1488262009
Python
Python3
py
Runtime Error
0
0
200
card = [] suit = ["S","H","C","D"] for s in suit: for i in range(1,14): card.append(s + " " + str(i)) n = int(input()) for i in range(n) card.remove(input()) for c in card: print(c)
File "/tmp/tmp_7_8_t_p/tmpxz62md1_.py", line 8 for i in range(n) ^ SyntaxError: expected ':'
s705489044
p02408
u343748576
1489389532
Python
Python3
py
Runtime Error
0
0
636
for i in range(52): for j in range(1,5): for k in range(1,14): cardlist[i] = [j, k] luckcard = [] num = int(input()) for i in range(num): card[i] = [int(x) for x in input().split() if x.isdigit()] count = 1 while True: if card[i] == cardlist[count]: break ...
Traceback (most recent call last): File "/tmp/tmpq7p1v9o_/tmp643bmus2.py", line 4, in <module> cardlist[i] = [j, k] ^^^^^^^^ NameError: name 'cardlist' is not defined
s199831080
p02408
u645985665
1494034915
Python
Python3
py
Runtime Error
0
0
262
n=int(input()) card={"S":[0]*13,"H":[0]*13,"C":[0]*13,"D":[0]*13} for i in range(n): mark, number = input().split() card[mark][int(number)-1] = 1 for a in ("S","H","C","D"): for b in range(13): if cards[a][b] == 0: print(a,b+1)
Traceback (most recent call last): File "/tmp/tmpq511w6e6/tmp90wxdm5v.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s034726996
p02408
u213265973
1494391239
Python
Python3
py
Runtime Error
0
0
443
n = int(input()) cards = [s + " " + str(i) for i in range(1,14)] for s in ["S","H","C","D"] for _ in range(n): suit, num = input().split(" ") if suit == "S": cards[0][int(num) - 1] = 0 elif suit == "H": cards[1][int(num) - 1] = 0 elif suit == "C": cards[2][int(num) - 1] = 0 e...
File "/tmp/tmponitwzm6/tmp89aqmdo1.py", line 2 cards = [s + " " + str(i) for i in range(1,14)] for s in ["S","H","C","D"] ^^^ SyntaxError: invalid syntax
s706858781
p02408
u213265973
1494391428
Python
Python3
py
Runtime Error
0
0
444
n = int(input()) cards = [s + " " + str(i) for i in range(1,14)] for s in ["S","H","C","D"]] for _ in range(n): suit, num = input().split(" ") if suit == "S": cards[0][int(num) - 1] = 0 elif suit == "H": cards[1][int(num) - 1] = 0 elif suit == "C": cards[2][int(num) - 1] = 0 ...
File "/tmp/tmp72ppmnjc/tmp2db79ys2.py", line 2 cards = [s + " " + str(i) for i in range(1,14)] for s in ["S","H","C","D"]] ^ SyntaxError: unmatched ']'
s303528661
p02408
u440180827
1495986777
Python
Python3
py
Runtime Error
0
0
612
n = int(input()) cards = [[0 for i in range(13)] for j in range(4)] n = int(input()) for i in range(n): card = list(input().split()) card[1] = int(card[1]) if card[0] == 'S': suit = 0 elif card[0] == 'H': suit = 1 elif card[0] == 'C': suit = 2 elif card[0] == 'D': ...
Traceback (most recent call last): File "/tmp/tmpme1llggn/tmptzn7vh0p.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s790040958
p02408
u440180827
1495987712
Python
Python3
py
Runtime Error
0
0
520
n = int(input()) cards = [[0 for i in range(13)] for j in range(4)] s2n = {'S': 0, 'H': 1, 'C': 2, 'D': 3} n2s = 'SHCD' n = int(input()) for i in range(n): card = list(input().split()) card[1] = int(card[1]) if card[0] == 'S': suit = 0 elif card[0] == 'H': suit = 1 elif card[0] == ...
Traceback (most recent call last): File "/tmp/tmptrv97gmx/tmpdx92y8ji.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s425607062
p02408
u999594662
1496462827
Python
Python3
py
Runtime Error
0
0
340
c = { 'S' : [0 for _ in range(13)], ???H??? : [0 for _ in range(13)], 'C' : [0 for _ in range(13)], ???D??? : [0 for _ in range(13)] } x = int(input()) for _ in range(x): (a, b) = input().split() b = int(b) c[a][b - 1] = b for a in ('S', 'H', 'C', 'D'): for b in range(13): if c[a][b] == 0: print('{0:s} {1...
File "/tmp/tmptuwlbo4x/tmpriehk3_i.py", line 2 'S' : [0 for _ in range(13)], ???H??? : [0 for _ in range(13)], ^ SyntaxError: invalid syntax