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
s591307201
p02408
u354053070
1498504508
Python
Python3
py
Runtime Error
0
0
255
Suits = ['S', 'H', 'C', 'D'] Taro = [] Missing = [] n = input() for i in range(n): Taro.append(input()) for j in range(52): card = Suits[j//13] + ' ' + str(j % 13 + 1) if card not in Taro: Missing.append(card) print('\n'.join(Missing))
Traceback (most recent call last): File "/tmp/tmpipkpyit5/tmpqiq3copu.py", line 4, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s546314681
p02408
u340500592
1498981674
Python
Python3
py
Runtime Error
0
0
302
n = int(input()) cards = [] patterns = ['S', 'H', 'C', 'D'] for i in range n: each_card = list(map(str, input().strip())) each_card[1] = int(each_card[1]) cards.append(each_card) for p in patterns: for r in range(1, 13+1): if [p, r] in cards: pass else: print(" ".join(map(str, [p, r])))
File "/tmp/tmp188lt9ta/tmpqovpm_j3.py", line 4 for i in range n: ^ SyntaxError: invalid syntax
s257710070
p02408
u340500592
1498981952
Python
Python3
py
Runtime Error
0
0
302
n = int(input()) cards = [] patterns = ['S', 'H', 'C', 'D'] for i in range n: each_card = list(map(str, input().strip())) each_card[1] = int(each_card[1]) cards.append(each_card) for p in patterns: for r in range(1, 13+1): if [p, r] in cards: pass else: print(" ".join(map(str, [p, r])))
File "/tmp/tmp1x401vzk/tmp7vi2z_f0.py", line 4 for i in range n: ^ SyntaxError: invalid syntax
s397618810
p02408
u340500592
1498982373
Python
Python3
py
Runtime Error
0
0
331
n = int(input()) cards = [] patterns = ['S', 'H', 'C', 'D'] for i in range n: each_card = list(map(str, input().strip())) each_card[1] = int(each_card[1]) cards.append(each_card) for p in patterns: for r in range(1, 13+1): if [p, r] in cards: pass else: # print(" ".join(map(str, [p, r]))) print(p + ' ...
File "/tmp/tmp9imds2gq/tmpjdyb16za.py", line 4 for i in range n: ^ SyntaxError: invalid syntax
s424125722
p02408
u340500592
1498982478
Python
Python3
py
Runtime Error
0
0
273
n = int(input()) cards = [] patterns = ['S', 'H', 'C', 'D'] for i in range n: each_card = list(map(str, input().strip())) each_card[1] = int(each_card[1]) cards.append(each_card) for p in patterns: for r in range(1, 13+1): if [p, r] in cards: pass else: pass
File "/tmp/tmp_th_wl5w/tmpq2h2p70i.py", line 4 for i in range n: ^ SyntaxError: invalid syntax
s045740475
p02408
u340500592
1498982724
Python
Python3
py
Runtime Error
0
0
293
n = int(input()) cards = [] patterns = ['S', 'H', 'C', 'D'] for i in range(n): each_card = list(map(str, input().strip())) each_card[1] = int(each_card[1]) cards.append(each_card) for p in patterns: for r in range(1, 13+1): if [p, r] in cards: pass else: print(p + ' ' + str(r))
Traceback (most recent call last): File "/tmp/tmpgtqzlznr/tmpfim3wlcl.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s801980198
p02408
u350064373
1500534447
Python
Python3
py
Runtime Error
0
0
831
count = int(input()) S=H=C=D=S2=H2=C2=D2 =[] while True: if count == 0: break count -= 1 x, y = map(str,input().split()) if x == "S": S.append(y) elif x == "H": H.append(y) elif x == "C": C.append(y) elif x == "D": D.append(y) for i in range(0,13): ...
Traceback (most recent call last): File "/tmp/tmpdh8r2423/tmpss4htfpz.py", line 1, in <module> count = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s691782670
p02408
u853619096
1500722060
Python
Python3
py
Runtime Error
0
0
319
all=set() for i in ['S','H','C','D']: for j in range(1,14): all=all.add('{0} {1}'.format(str(i), str(j))) n=input() .split() while True: a=input().split() t += str(a[0]) r =+ int(a[1]) all2=set() for y in t: for u in r: all2 = all2.add('{0} {1}'.format(str(y),str(u)) print(all-all2)
File "/tmp/tmp4c46njhu/tmpb7w3fizz.py", line 13 all2 = all2.add('{0} {1}'.format(str(y),str(u)) ^ SyntaxError: '(' was never closed
s607357403
p02408
u853619096
1500722388
Python
Python3
py
Runtime Error
0
0
330
all=set() for i in ['S','H','C','D']: for j in range(1,14): all=all.add('{0} {1}'.format(str(i), str(j))) n=input() .split() while o < n: a=input().split() t += str(a[0]) r += str(a[1]) o +=1 all2=set() for y in t: for u in r: all2 = all2.add('{0} {1}'.format(str(y),str(u)) print...
File "/tmp/tmptst5_zs6/tmpa3nu4prk.py", line 14 all2 = all2.add('{0} {1}'.format(str(y),str(u)) ^ SyntaxError: '(' was never closed
s528309875
p02408
u248424983
1501222813
Python
Python3
py
Runtime Error
0
0
504
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)] n=input() while True: i=input() if i == -1: break e,n =i.split() if e == 'S':s[int(n)-1]=0 elif e == 'H':h[int(n)-1]=0 elif e == 'C':c[int(n)-1]=0 elif e == 'D':d[int(n)-1]=0 for...
Traceback (most recent call last): File "/tmp/tmprma5j0fk/tmpbh5me_6b.py", line 6, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s307015979
p02408
u248424983
1501223001
Python
Python3
py
Runtime Error
0
0
487
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)] n=int(input()) for cnt in range(n) e,n =input().split() if e == 'S':s[int(n)-1]=0 elif e == 'H':h[int(n)-1]=0 elif e == 'C':c[int(n)-1]=0 elif e == 'D':d[int(n)-1]=0 for i in s: if i...
File "/tmp/tmp4d9om66x/tmpedyod61n.py", line 7 for cnt in range(n) ^ SyntaxError: expected ':'
s665446055
p02408
u350064373
1501232830
Python
Python3
py
Runtime Error
0
0
486
cardlist = [[i for i in range(1,13)] for j in range(4)] n = int(input()) for s in range(0, n): x, y = map(str,input().split()) int(y) if x == "S": cardlist[0].remove(y) elif x == "H": cardlist[1].remove(y) elif x == "C": cardlist[2].remove(y) else: cardlist[3].rem...
Traceback (most recent call last): File "/tmp/tmpsxbmouul/tmp2rt90i8l.py", line 2, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s092605060
p02408
u350064373
1501234422
Python
Python3
py
Runtime Error
0
0
489
cardlist = [[i for i in range(1,13)] for j in range(4)] n = int(input()) for s in range(0, n): x,y = map(str,input().split()) y = int(y) if x == "S": cardlist[0].remove(y) elif x == "H": cardlist[1].remove(y) elif x == "C": cardlist[2].remove(y) else: cardlist[3]....
Traceback (most recent call last): File "/tmp/tmpbvnczzdb/tmpqtvguixl.py", line 2, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s313970318
p02408
u498511622
1501238381
Python
Python3
py
Runtime Error
0
0
440
cardlist = [[i for i in range(1,14)] for j in range(4)] n=int(input()) for s in range(0,n): x,y=(input().split()) y=int(y) if x =="S": cardlist[0].remove(y) elif x =="H": cardlist[1].remove(y) elif x =="C": cardlist[2].remove(y) else: cardlist[3].remove(y) for i in cardlist[0]: print("S"...
Traceback (most recent call last): File "/tmp/tmpr2rmee_1/tmpx1vajx6a.py", line 2, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s914001768
p02408
u954858867
1502443693
Python
Python
py
Runtime Error
0
0
263
cards = [] for s in ['S', 'H', 'C', 'D']: for n in range(1,14,1): cards += ["%s %s" % (s, n)] input_cards = [] input_cards = raw_input() while True: input_card = raw_input() cards.remove(input_card) for card in cards: print(card)
Traceback (most recent call last): File "/tmp/tmp81286a4c/tmpe7p6fkrl.py", line 7, in <module> input_cards = raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s968804011
p02408
u105694406
1503810925
Python
Python3
py
Runtime Error
0
0
233
cards = { "S":[0]*13, "H":[0]*13, "C":[0]*13, "D":[0]*13 } n = int(input()) for i in range(n): s, num = input().split() c[s][int(num)-1] = 1 for i in ["S", "H", "C", "D"]: for j in range(13) if[i][j] == 0: print(i,j+)
File "/tmp/tmp7kietn3j/tmpvsyfsuqo.py", line 15 for j in range(13) ^ SyntaxError: expected ':'
s801982497
p02408
u105694406
1503810944
Python
Python3
py
Runtime Error
0
0
234
cards = { "S":[0]*13, "H":[0]*13, "C":[0]*13, "D":[0]*13 } n = int(input()) for i in range(n): s, num = input().split() c[s][int(num)-1] = 1 for i in ["S", "H", "C", "D"]: for j in range(13): if[i][j] == 0: print(i,j+)
File "/tmp/tmpkcl46ae5/tmptctk2gvp.py", line 17 print(i,j+) ^ SyntaxError: invalid syntax
s490870741
p02408
u362494298
1505357392
Python
Python3
py
Runtime Error
0
0
155
n=int(input()) sets=['{0} {1}'.format(m,r) for m in ['S','H','C','D'] for r in range(1,14)] [sets.remove(input()) for a in range(n)] print(b) for b in sets
File "/tmp/tmp0k7227vr/tmp0ll3mygo.py", line 4 print(b) for b in sets ^^^ SyntaxError: invalid syntax
s252006010
p02408
u506705885
1505432201
Python
Python3
py
Runtime Error
0
0
781
S_cards=[] H_cards=[] C_cards=[] D_cards=[] for i in range(1,14): S_cards.append(str(i)) H_cards.append(str(i)) C_cards.append(str(i)) D_cards.append(str(i)) now_cards=int(input()) for i in range(0,now_cards): kind_num=[] kind_num=input().split() if kind_num[0]=='S': S_cards.remove...
File "/tmp/tmpip3o117_/tmpujzk50h1.py", line 30 print('C',int(C_cards[i]) ^ SyntaxError: '(' was never closed
s504724513
p02408
u506705885
1505432443
Python
Python3
py
Runtime Error
0
0
751
S_cards=[] H_cards=[] C_cards=[] D_cards=[] for i in range(1,14): S_cards.append(i) H_cards.append(i) C_cards.append(i) D_cards.append(i) now_cards=int(input()) for i in range(0,now_cards): kind_num=[] kind_num=input().split() if kind_num[0]=='S': S_cards.remove(int(kind_num[1]) ...
File "/tmp/tmpmkqc_g2g/tmpdunw18l9.py", line 18 elif kind_num[0]=='H': ^^^^ SyntaxError: invalid syntax
s589219959
p02408
u506705885
1505432560
Python
Python3
py
Runtime Error
0
0
750
S_cards=[] H_cards=[] C_cards=[] D_cards=[] for i in range(1,14): S_cards.append(i) H_cards.append(i) C_cards.append(i) D_cards.append(i) now_cards=int(input()) for i in range(0,now_cards): kind_num=[] kind_num=input().split() if kind_num[0]=='S': S_cards.remove(int(kind_num[1]) ...
File "/tmp/tmpl1ksusn3/tmp_7ugnfqo.py", line 18 elif kind_num[0]=='H': ^^^^ SyntaxError: invalid syntax
s567087022
p02408
u933096856
1505443067
Python
Python3
py
Runtime Error
0
0
530
n=int(input()) a=[[]]*4 s,h,c,d=[],[],[],[] for i in range(n) m,r=input().split() if m == 'S' s.append(int(r)) elif m == 'H' s.append(int(r)) elif m == 'C' s.append(int(r)) elif m == 'D' s.append(int(r)) for i in range(1,14): if i not in s: print('S', s...
File "/tmp/tmpze7jpspz/tmp489ibe2f.py", line 4 for i in range(n) ^ SyntaxError: expected ':'
s653375037
p02408
u664228906
1506477092
Python
Python3
py
Runtime Error
0
0
209
N = int(input()) cards = ["{0} {1}".format(type, order) for type in ('S', 'H', 'C', 'D') for order in range(1,14)] for i in range(N): card = input() cards.remove(card) for rest in cards print(rest)
File "/tmp/tmpjysj8imr/tmpd2s85bhv.py", line 6 for rest in cards ^ SyntaxError: expected ':'
s416001990
p02408
u846136461
1509598623
Python
Python
py
Runtime Error
0
0
657
all_cards = [[],[],[],[]] for i in range(4): for j in range(13): all_cards[i].append(j+1) n = int(raw_input()) for i in range(n): card = raw_input().split() if card[0] == "S": all_cards[0].remove(card[1]) elif card[0] == "H": all_cards[1].remove(card[1]) elif card[0] == "C": all_cards[2].remove(card[1]) ...
Traceback (most recent call last): File "/tmp/tmpmvnx7jnv/tmpjf4bopdv.py", line 6, in <module> n = int(raw_input()) ^^^^^^^^^ NameError: name 'raw_input' is not defined
s840849631
p02408
u088372268
1509775076
Python
Python3
py
Runtime Error
0
0
532
n = int(input()) spade = hart = club = diamond = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13} trump = [spade, hart, club, diamond] suit_def = ['S', 'H', 'C', 'D'] for i in range(n): card = list(input().split()) suit = card[0] number = int(card[1]) if suit == 'S': spade.remove(number) elif su...
Traceback (most recent call last): File "/tmp/tmpox3vmja7/tmpqcaur4_1.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s039485935
p02408
u088372268
1509775367
Python
Python3
py
Runtime Error
0
0
532
n = int(input()) spade = hart = club = diamond = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13} trump = [spade, hart, club, diamond] suit_def = ['S', 'H', 'C', 'D'] for i in range(n): card = list(input().split()) suit = card[0] number = int(card[1]) if suit == 'S': spade.remove(number) elif su...
Traceback (most recent call last): File "/tmp/tmpj14lagxz/tmpr9ygwg6u.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s094317460
p02408
u776758454
1510100498
Python
Python3
py
Runtime Error
0
0
534
def main(): deck = set() for item in range(1,14): deck = deck | {('H ' + str(item))} deck = deck | {('D ' + str(item))} deck = deck | {('C ' + str(item))} deck = deck | {('S ' + str(item))} suits_order = ['S', 'H', 'C', 'D'] n = int(input()) cards = [input()...
Traceback (most recent call last): File "/tmp/tmps1ugl32c/tmpatgydodm.py", line 20, in <module> main() File "/tmp/tmps1ugl32c/tmpatgydodm.py", line 11, in main n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s511764688
p02408
u776758454
1510100552
Python
Python3
py
Runtime Error
0
0
516
def main(): deck = set() for item in range(1,14): deck = deck | {('H ' + str(item))} deck = deck | {('D ' + str(item))} deck = deck | {('C ' + str(item))} deck = deck | {('S ' + str(item))} suits_order = ['S', 'H', 'C', 'D'] n = int(input()) cards = [input()...
Traceback (most recent call last): File "/tmp/tmpunooezlj/tmp4knu66ho.py", line 18, in <module> main() File "/tmp/tmpunooezlj/tmp4knu66ho.py", line 11, in main n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s998953392
p02408
u518939641
1510144289
Python
Python3
py
Runtime Error
0
0
227
import sys dict={} suit=['S','H','C','D'] input() lines=sys.stdin.readlines() for l in lines: dict[l]=True for i in range(4): for j in range(1,14): s=suit[i]+' '+str(j) if not(dict.get(s,false)): print(s)
Traceback (most recent call last): File "/tmp/tmp6d78al7l/tmpsibvxbm4.py", line 5, in <module> input() EOFError: EOF when reading a line
s564469828
p02408
u350064373
1511176033
Python
Python3
py
Runtime Error
0
0
233
r=range v=input l = [[i for i in r(1,14)] for j in r(4)] d={"S":0,"H":1,"C":2,"D":3} n={0:"S",1:"H",2:"C",3:"D"} for i in r(int(v())): x,y = v().split() l[d[x]].remove(int(y)) for i in l: for k in i: print(n[i],k)
Traceback (most recent call last): File "/tmp/tmpnodf0uw1/tmpox8jo0zy.py", line 6, in <module> for i in r(int(v())): ^^^ EOFError: EOF when reading a line
s681551203
p02408
u350064373
1511176134
Python
Python3
py
Runtime Error
0
0
240
r=range v=input l = [[i for i in r(1,14)] for j in r(4)] d={"S":0,"H":1,"C":2,"D":3} n={0:"S",1:"H",2:"C",3:"D"} for i in r(int(v())): x,y = v().split() l[d[x]].remove(int(y)) for i in l: for k in i: print(n[index(i)],k)
Traceback (most recent call last): File "/tmp/tmp4lk7gyj4/tmpnpgae0x9.py", line 6, in <module> for i in r(int(v())): ^^^ EOFError: EOF when reading a line
s108853388
p02408
u350064373
1511185845
Python
Python3
py
Runtime Error
0
0
115
r=range v=input() l=[i+" "+str(j)for i in"SHCD" for j in r(1,14)] for i in r(int(v):l.remove(v) for i in l:print(i)
File "/tmp/tmpcbuqwiut/tmpk682f_0z.py", line 4 for i in r(int(v):l.remove(v) ^ SyntaxError: invalid syntax
s393496263
p02408
u350064373
1511185874
Python
Python3
py
Runtime Error
0
0
116
r=range v=input() l=[i+" "+str(j)for i in"SHCD" for j in r(1,14)] for i in r(int(v):l.remove(v)) for i in l:print(i)
File "/tmp/tmp6fnch9sl/tmps6p9cydd.py", line 4 for i in r(int(v):l.remove(v)) ^ SyntaxError: invalid syntax
s177626342
p02408
u298999032
1511502427
Python
Python3
py
Runtime Error
0
0
404
fullcards={ "S":set(range(1,14)), "H":set(range(1,14)), "C":set(range(1,14)), "D":set(range(1,14)) } cards={ "S":set({}), "H":set({}), "C":set({}), "D":set({}) } for i in range(n): line=input() suit,rank=line.split() rank=int(rank) cards[suit].add(rank) for s in [...
Traceback (most recent call last): File "/tmp/tmp63i5e38_/tmp1c5fxclc.py", line 13, in <module> for i in range(n): ^ NameError: name 'n' is not defined
s858739785
p02408
u298999032
1511502532
Python
Python3
py
Runtime Error
0
0
448
fullcards={ "S":set(range(1,14)), "H":set(range(1,14)), "C":set(range(1,14)), "D":set(range(1,14)) } cards={ "S":set({}), "H":set({}), "C":set({}), "D":set({}) } while True: for i in range(n): line=input() suit,rank=line.split() rank=int(rank) ...
Traceback (most recent call last): File "/tmp/tmpgizh36i4/tmpznxdivdw.py", line 14, in <module> for i in range(n): ^ NameError: name 'n' is not defined
s070632281
p02408
u298999032
1511506308
Python
Python3
py
Runtime Error
0
0
448
fullcards={ "S":set(range(1,14)), "H":set(range(1,14)), "C":set(range(1,14)), "D":set(range(1,14)) } cards={ "S":set({}), "H":set({}), "C":set({}), "D":set({}) } while True: for i in range(n): line=input() suit,rank=line.split() rank=int(rank) ...
Traceback (most recent call last): File "/tmp/tmpfg451vqd/tmp2h35zc5k.py", line 14, in <module> for i in range(n): ^ NameError: name 'n' is not defined
s488707226
p02408
u298999032
1511506362
Python
Python3
py
Runtime Error
0
0
404
fullcards={ "S":set(range(1,14)), "H":set(range(1,14)), "C":set(range(1,14)), "D":set(range(1,14)) } cards={ "S":set({}), "H":set({}), "C":set({}), "D":set({}) } for i in range(n): line=input() suit,rank=line.split() rank=int(rank) cards[suit].add(rank) for s in [...
Traceback (most recent call last): File "/tmp/tmpekpp8vb9/tmpeq2xrn5s.py", line 13, in <module> for i in range(n): ^ NameError: name 'n' is not defined
s985183343
p02408
u150984829
1513135290
Python
Python3
py
Runtime Error
0
0
146
import itertools s=['S','H','C','D'] n=range(1,14) c=[x y for x,y in itertools.product(s,n)] for _ in range(input()): c.remove(input()) print(*c)
File "/tmp/tmp27xt8zvb/tmp1o1bvi2e.py", line 4 c=[x y for x,y in itertools.product(s,n)] ^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s319165002
p02408
u150984829
1513135313
Python
Python3
py
Runtime Error
0
0
159
import itertools s=['S','H','C','D'] n=[i for i in range(1,14)] c=[x y for x,y in itertools.product(s,n)] for _ in range(input()): c.remove(input()) print(*c)
File "/tmp/tmpdzr9eor4/tmpvms6qq3r.py", line 4 c=[x y for x,y in itertools.product(s,n)] ^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s662956519
p02408
u150984829
1513135534
Python
Python3
py
Runtime Error
0
0
168
import itertools s=['S','H','C','D'] n=[str(i) for i in range(1,14)] c=[x+' '+y for x,y in itertools.product(s,n)] for _ in range(input()): c.remove(input()) print(*c)
Traceback (most recent call last): File "/tmp/tmpku9f7vn0/tmptvaz2vpv.py", line 5, in <module> for _ in range(input()): ^^^^^^^ EOFError: EOF when reading a line
s820863962
p02408
u150984829
1513135612
Python
Python3
py
Runtime Error
0
0
173
import itertools s=['S','H','C','D'] n=[str(i) for i in range(1,14)] c=[x+' '+y for x,y in itertools.product(s,n)] for _ in range(input()): c.remove(str(input())) print(*c)
Traceback (most recent call last): File "/tmp/tmp5elazstw/tmp7ln4c6fb.py", line 5, in <module> for _ in range(input()): ^^^^^^^ EOFError: EOF when reading a line
s027130682
p02408
u150984829
1513135741
Python
Python3
py
Runtime Error
0
0
178
import itertools s=['S','H','C','D'] n=[str(i) for i in range(1,14)] c=[x+' '+y for x,y in itertools.product(s,n)] for _ in range(input()): c.remove(input()) print('\n'.join(c))
Traceback (most recent call last): File "/tmp/tmpvngs_qs7/tmp695f8i1z.py", line 5, in <module> for _ in range(input()): ^^^^^^^ EOFError: EOF when reading a line
s026122242
p02408
u150984829
1513456112
Python
Python3
py
Runtime Error
0
0
112
c=[x+' '+y for x in'SHCD'for y in range(1,14) for _ in range(int(input())):c.remove(input()) print('\n'.join(c))
File "/tmp/tmpna6p6xzl/tmpyjt_cjn6.py", line 1 c=[x+' '+y for x in'SHCD'for y in range(1,14) ^ SyntaxError: '[' was never closed
s751918508
p02408
u150984829
1513456122
Python
Python3
py
Runtime Error
0
0
114
c=[x+' '+y for x in'SHCD'for y in range(1,14) for _ in range(int(input())): c.remove(input()) print('\n'.join(c))
File "/tmp/tmpi9hxa_xa/tmpb9lfb9_a.py", line 1 c=[x+' '+y for x in'SHCD'for y in range(1,14) ^ SyntaxError: '[' was never closed
s781276606
p02408
u150984829
1513456285
Python
Python3
py
Runtime Error
0
0
115
c=[x+' '+y for x in'SHCD'for y in range(1,14)] for _ in range(int(input())): c.remove(input()) print('\n'.join(c))
Traceback (most recent call last): File "/tmp/tmpvfz81yr9/tmpvn53nmwx.py", line 1, in <module> c=[x+' '+y for x in'SHCD'for y in range(1,14)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpvfz81yr9/tmpvn53nmwx.py", line 1, in <listcomp> c=[x+' '+y for x in'SHCD'for y in range(1,14)] ...
s231631329
p02408
u150984829
1513456379
Python
Python3
py
Runtime Error
0
0
115
c=[x+' '+y for x in'SHCD'for y in range(1,14)] for _ in range(int(input())): c.remove(input()) print('\n'.join(c))
Traceback (most recent call last): File "/tmp/tmpqu4wlbc1/tmppdbf8f9z.py", line 1, in <module> c=[x+' '+y for x in'SHCD'for y in range(1,14)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpqu4wlbc1/tmppdbf8f9z.py", line 1, in <listcomp> c=[x+' '+y for x in'SHCD'for y in range(1,14)] ...
s803628205
p02408
u505411588
1514623359
Python
Python3
py
Runtime Error
0
0
3539
''' ????????????????????? ??????????????¨??????????????\????????? ???????????????????????¨???????????? ?????????????????? ????????????????????£????¶????????????°??????????????????????????? ?¬????????????????????????°??????1??\???????????? ??????????????¨?????????????????????????????????????????¨??????????????°?????????...
Traceback (most recent call last): File "/tmp/tmp080ld41k/tmpd16eluy_.py", line 33, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s203119093
p02408
u546968095
1517207414
Python
Python3
py
Runtime Error
0
0
534
Cards = [ "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"...
Traceback (most recent call last): File "/tmp/tmpfoaq2the/tmpw2xisoej.py", line 8, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s882375092
p02408
u150984829
1518197868
Python
Python3
py
Runtime Error
0
0
740
#include <iostream> using namespace std; int main(){ int n, card[13*4]={0}; cin >> n; for (int i = 0; i < n; i++) { char s; int r; cin >> s >> r; switch (s) { case 'S': card[13*0 + r-1] = 1; break; case 'H': card[13*1 + r-1] = 1; break; ...
File "/tmp/tmpq1ahj0p4/tmpzmk0t9xe.py", line 3 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s150091792
p02408
u313021086
1518505750
Python
Python3
py
Runtime Error
0
0
547
n = int(input()) i = 0 card_S = [] card_H = [] card_C = [] card_D = [] while i < n: mark, num = input().split() if mark == S: card_S.append(int(num)) elif mark == H: card_H.append(int(num)) elif mark == C: card_C.append(int(num)) else: card_D.append(int(num)) i += 1 i = 1 while i < 14: if not(i in car...
Traceback (most recent call last): File "/tmp/tmpvjunj5cg/tmpmi6_pwry.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s960138089
p02408
u017435045
1521440882
Python
Python3
py
Runtime Error
0
0
313
'import sys' c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in["S","H","C","D"]:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmp6sei36jf/tmpu1z5yx3r.py", line 3     'S':[0]*13, ^ SyntaxError: invalid non-printable character U+00A0
s994545825
p02408
u017435045
1521440896
Python
Python3
py
Runtime Error
0
0
301
c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in["S","H","C","D"]:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmpdmrapq8q/tmpmb9qyj7a.py", line 3     'S':[0]*13, ^ SyntaxError: invalid non-printable character U+00A0
s419387008
p02408
u017435045
1521440904
Python
Python3
py
Runtime Error
0
0
311
import sys c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in["S","H","C","D"]:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmpnimx996c/tmp9sf8ac4v.py", line 3     'S':[0]*13, ^ SyntaxError: invalid non-printable character U+00A0
s727278018
p02408
u017435045
1521440988
Python
Python3
py
Runtime Error
0
0
313
'import sys' c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in["S","H","C","D"]:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmp9v9wcrpt/tmp341roban.py", line 3     'S':[0]*13, ^ SyntaxError: invalid non-printable character U+00A0
s798682452
p02408
u017435045
1521440999
Python
Python3
py
Runtime Error
0
0
313
'import sys' c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in["S","H","C","D"]:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmpof62ubgp/tmppz1u0h4x.py", line 3     'S':[0]*13, ^ SyntaxError: invalid non-printable character U+00A0
s803930198
p02408
u017435045
1521441011
Python
Python3
py
Runtime Error
0
0
311
import sys c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in["S","H","C","D"]:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmpzlw1j5l0/tmpctsb0arf.py", line 3     'S':[0]*13, ^ SyntaxError: invalid non-printable character U+00A0
s568714330
p02408
u017435045
1521441098
Python
Python3
py
Runtime Error
0
0
311
import sys c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in['S','H','C','D']:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmp86x1xaef/tmp1uy_hqun.py", line 3     'S':[0]*13, ^ SyntaxError: invalid non-printable character U+00A0
s785977549
p02408
u017435045
1521441112
Python
Python3
py
Runtime Error
0
0
311
import sys c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in['S','H','C','D']:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmpjl89rqod/tmpu2dx0998.py", line 3     'S':[0]*13, ^ SyntaxError: invalid non-printable character U+00A0
s907224388
p02408
u017435045
1521441160
Python
Python3
py
Runtime Error
0
0
311
import sys c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in['S','H','C','D']:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmpo1fs7pb_/tmpq8mqxrg3.py", line 3     'S':[0]*13, ^ SyntaxError: invalid non-printable character U+00A0
s930131754
p02408
u017435045
1521441171
Python
Python3
py
Runtime Error
0
0
312
import sys c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in['S','H','C','D']:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmpgaynohx9/tmpfwroit_q.py", line 4     'S':[0]*13, ^ SyntaxError: invalid non-printable character U+00A0
s171569572
p02408
u017435045
1521441197
Python
Python3
py
Runtime Error
0
0
312
import sys c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in["S","H","C","D"]:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmp8tz2t6wo/tmpywm6azc9.py", line 4     'S':[0]*13, ^ SyntaxError: invalid non-printable character U+00A0
s017109146
p02408
u017435045
1521441217
Python
Python3
py
Runtime Error
0
0
313
import sys c={     'S':[0]*13,     'H':[0]*13,     'C':[0]*13,     'D':[0]*13 } n=int(input()) for i in range(n):     s,num=input().split()     c[s][int(num)-1]=1 for i in["S","H","C","D"]:     for j in range(13):         if c[i][j]==0:             print(i,j+1)
File "/tmp/tmpzrg_h3d_/tmpk883n_r6.py", line 1 import sys IndentationError: unexpected indent
s796997705
p02408
u002193969
1522538391
Python
Python3
py
Runtime Error
0
0
479
cardset = ["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","D 6","D 7","D 8","D 9","D 10","D...
Traceback (most recent call last): File "/tmp/tmp7ryvhjkf/tmpc9zjvwri.py", line 2, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s746923602
p02408
u002193969
1522538465
Python
Python3
py
Runtime Error
0
0
479
cardset = ["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","D 6","D 7","D 8","D 9","D 10","D...
Traceback (most recent call last): File "/tmp/tmpfspajmcd/tmp57a8k769.py", line 2, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s711667992
p02408
u028900178
1522654552
Python
Python3
py
Runtime Error
0
0
2525
{ "source": [ "d = {\"S\":[1,2,3,4,5,6,7,8,9,10,11,12,13],\n", " \"H\":[1,2,3,4,5,6,7,8,9,10,11,12,13],\n", " \"D\":[1,2,3,4,5,6,7,8,9,10,11,12,13],\n", " \"C\":[1,2,3,4,5,6,7,8,9,10,11,12,13]}\n", "n = int(input())\n", "for i in range(n):\n", " N, M = map(str,input().spli...
File "/tmp/tmpv0199f0j/tmpd7wt174p.py", line 31 { IndentationError: unexpected indent
s587538668
p02408
u886729200
1522656162
Python
Python3
py
Runtime Error
0
0
648
d = {"S":[1,2,3,4,5,6,7,8,9,10,11,12,13], "H":[1,2,3,4,5,6,7,8,9,10,11,12,13], "D":[1,2,3,4,5,6,7,8,9,10,11,12,13], "C":[1,2,3,4,5,6,7,8,9,10,11,12,13]} n = int(input()) for i in range(n): #N, M = map(str,input().split()) N, M = map(str,data[i][0].split()) d[N][int(M)-1] ="None" for j in ran...
Traceback (most recent call last): File "/tmp/tmpge5e902m/tmpzzol2p83.py", line 5, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s079744376
p02408
u886729200
1522656489
Python
Python3
py
Runtime Error
0
0
648
d = {"S":[1,2,3,4,5,6,7,8,9,10,11,12,13], "H":[1,2,3,4,5,6,7,8,9,10,11,12,13], "D":[1,2,3,4,5,6,7,8,9,10,11,12,13], "C":[1,2,3,4,5,6,7,8,9,10,11,12,13]} n = int(input()) for i in range(n): #N, M = map(str,input().split()) N, M = map(str,data[i][0].split()) d[N][int(M)-1] ="None" for j in ran...
Traceback (most recent call last): File "/tmp/tmprwbr1ef4/tmp6zuozcri.py", line 5, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s042342020
p02408
u742505495
1524031389
Python
Python3
py
Runtime Error
0
0
466
n = int(input()) S,H,C,D = [0 for i in range(13)] for i in range(n): data = input().split() num = int(data[1]) if data[0]=='S': S[num-1] = 1 elif data[0]=='H': H[num-1] = 1 elif data[0]=='C': C[num-1] = 1 else: D[num-1] = 1 for j in range(13): if S[j]==0: print('S %d' % (j+1)) for j in range(13): if H...
Traceback (most recent call last): File "/tmp/tmpm3a7xg2j/tmpibunxs9x.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s818302719
p02408
u589139267
1524649877
Python
Python3
py
Runtime Error
0
0
221
n = int(input()) remind = [] for i in range(n): remind.append(input()) egara = ["S ", "H ", "C ", "D "] for i in range(4): for j in range(13): if egara[i]+ str(j) not in a: print(egara[i] + str(j))
Traceback (most recent call last): File "/tmp/tmpf7vgerx0/tmp_wt95o1o.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s120001974
p02408
u589139267
1524649949
Python
Python3
py
Runtime Error
0
0
225
n = int(input()) remind = [] for i in range(n): remind.append(input()) egara = ["S ", "H ", "C ", "D "] for i in range(4): for j in range(1, 14): if egara[i] + str(j) not in a: print(egara[i] + str(j))
Traceback (most recent call last): File "/tmp/tmp4khxhk3r/tmpnh_0zhh_.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s288702120
p02408
u589139267
1524650317
Python
Python3
py
Runtime Error
0
0
224
n = int(input()) egara = ["S ", "H ", "C ", "D "] remind = [] for i in range(n): remind.append(input()) for i in range(4): for j in range(1, 14): if egara[i] + str(j) not in a: print(egara[i] + str(j))
Traceback (most recent call last): File "/tmp/tmpn8hhod6c/tmpcr01j3au.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s746756548
p02408
u485986915
1524718408
Python
Python3
py
Runtime Error
0
0
303
card ={'S': [0]*13, 'H': [0]*13, 'C': [0]*13, 'D': [0]*13 } n = int(input()) for i in range(1,n+1): m,num = input().split() num = int(num) card[m][num-1] =1 for c in ["S","H","C","D"]: for j in range(1,14): if (card[c][i]==0): print(m,str(j))
Traceback (most recent call last): File "/tmp/tmpu3d5db3g/tmp88mplq1z.py", line 7, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s468609896
p02408
u150984829
1524758527
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} {i}'not in e:print(s,r)
Traceback (most recent call last): File "/tmp/tmpdl0_htv3/tmpeyo65yft.py", line 1, in <module> e=[input()for _ in[0]*int(input())] ^^^^^^^ EOFError: EOF when reading a line
s181365002
p02408
u908651435
1525702431
Python
Python3
py
Runtime Error
0
0
369
n=int(input()) x={0:'S',1:'H',2:'C',3:'D'} c=[[0]*13,[0]*13,[0]*13,[0]*13] for i in range(n): a,b=input().split() if a=='S': c[0].insert(b,b) elif a=='H': c[1].insert(b,b) elif a=='C': c[2].insert(b,b) else: c[3].insert(b,b) for i in range(4): for j in range(13): ...
Traceback (most recent call last): File "/tmp/tmppu8nywh9/tmpmjnpp_5w.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s308007902
p02408
u800997102
1525865999
Python
Python3
py
Runtime Error
0
0
248
c={ 'S':[1]*13, 'H':[1]*13, 'C':[1]*13, 'D':[1]*13 } n=int(input()) for i in range(n): a,b=input().split c[a][int(b)-1]=0 for i in ['S','H','C','D']: for j in range(13): if c[i][j]==1: print(i,j+1)
Traceback (most recent call last): File "/tmp/tmp6nb6uhwy/tmpvrx162vb.py", line 7, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s319958569
p02408
u921038488
1525871522
Python
Python3
py
Runtime Error
0
0
366
tramps = { "S": [0] * 13, "H": [0] * 13, "C": [0] * 13, "D": [0] * 13 } # print(tramps) # 持っているカード n = int(input()) for i in range(n): kind, num = input().split() tramps[kind][num - 1] = 1 for i in ["S", "H", "C", "D"]: for j in range(13): tramp = tramps[i][j] if tramp == ...
Traceback (most recent call last): File "/tmp/tmp6k30g5y0/tmpylmxhaxe.py", line 10, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s879230425
p02408
u986478725
1526020182
Python
Python3
py
Runtime Error
0
0
511
suits = [('S', 0), ('H', 1), ('C', 2), ('D', 3)] def tonum(suit): for i in range(4): if suit == suits[i][0]: return suits[i][1] def tosuit(num): return suits[num][0] def main(): n = int(input()) cards = [i for i in range(52)] for i in range(n): a = input().split() cards.re...
Traceback (most recent call last): File "/tmp/tmplce5e75_/tmps85i2pmp.py", line 30, in <module> main() File "/tmp/tmplce5e75_/tmps85i2pmp.py", line 11, in main n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s892760019
p02408
u986478725
1526020358
Python
Python3
py
Runtime Error
0
0
504
def tonum(suit): if suit == 'S': return 0 if suit == 'H': return 1 if suit == 'C': return 2 if suit == 'D': return 3 def tosuit(num): suits = ['S', 'H', 'C', 'D'] return suits[num] def main(): n = int(input()) cards = [i for i in range(52)] for i in range(n): a = input().sp...
Traceback (most recent call last): File "/tmp/tmphy1ko3ik/tmptlub07m1.py", line 22, in <module> main() File "/tmp/tmphy1ko3ik/tmptlub07m1.py", line 12, in main n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s885760957
p02408
u986478725
1526020587
Python
Python3
py
Runtime Error
0
0
507
def tonum(suit): if suit == 'S': return 0 if suit == 'H': return 1 if suit == 'C': return 2 if suit == 'D': return 3 def tosuit(num): suits = ['S', 'H', 'C', 'D'] return suits[num] def main(): n = int(input()) cards = [i for i in range(52)] for i in range(n): a = input()....
Traceback (most recent call last): File "/tmp/tmpt1sgamn0/tmp2xoan4py.py", line 22, in <module> main() File "/tmp/tmpt1sgamn0/tmp2xoan4py.py", line 12, in main n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s112853027
p02408
u648117624
1526260668
Python
Python3
py
Runtime Error
0
0
272
import sys SUITS = ('S', 'H', 'C', 'D') cards = {suit:{i for i in range(1, 14)} for suit in SUITS} input() for line in sys.stdin: suit, number = line.split() cards[suit].discard(int(number)) for suit in SUITS: for i in cards[suit]: print(suit, i)
File "/tmp/tmp364smkvm/tmpvmi6oipq.py", line 14 print(suit, i) ^ IndentationError: expected an indented block after 'for' statement on line 13
s815686268
p02408
u648117624
1526260780
Python
Python3
py
Runtime Error
0
0
276
import sys SUITS = ('S', 'H', 'C', 'D') cards = {suit:{i for i in range(1, 14)} for suit in SUITS} n = input() for line in sys.stdin: suit, number = line.split() cards[suit].discard(int(number)) for suit in SUITS: for i in cards[suit]: print(suit, i)
File "/tmp/tmpv20hwq9i/tmpy7evwv49.py", line 14 print(suit, i) ^ IndentationError: expected an indented block after 'for' statement on line 13
s197107842
p02408
u327546577
1528139809
Python
Python3
py
Runtime Error
0
0
377
n = int(input()) card = { 'S':[False for _ in range(13)], 'H':[False for _ in range(13)], 'C':[False for _ in range(13)], 'D':[False for _ in range(13)] } for _ in range(n): mark, num = map(int, input().split()) card[mark][num-1] = True for mark in "SHCD": for num in range(13): if c...
Traceback (most recent call last): File "/tmp/tmp679_fila/tmpi227zmy0.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s196791186
p02408
u123669391
1530087753
Python
Python3
py
Runtime Error
0
0
182
n = int(input()) cards = [] for i in range(1, n): s, r = input().split() cards.append((s, int(r))) for s in "SHCD": for r in range(1, 14) if (s, r)not in cards: print(s, r)
File "/tmp/tmp5byhsage/tmp1c4t0cqi.py", line 7 for r in range(1, 14) ^ SyntaxError: expected ':'
s025011614
p02408
u912237403
1370898459
Python
Python
py
Runtime Error
0
0
418
import sys i = 0 x = [] for line in open('test.txt','r'):#sys.stdin: if i==0: x.append(int(line)) else: s1 = 'SHCD'.index(line[0]) s2 = int(line[2:]) x.append((s1,s2)) i = 1 r4 = range(4) r13 = range(13) lx = x.pop(0) cards = [[0 for i in r13] for j in r4] for j,i in x: card...
File "/tmp/tmpb8n9nx8z/tmp0d_p2sgw.py", line 21 if cards[j][i]==0: print 'SHCD'[j],i+1 ^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s746743918
p02408
u912237403
1370898771
Python
Python
py
Runtime Error
0
0
422
import sys i = 0 x = [] for line in open('in1.txt','r'):#sys.stdin: if i==0: x.append(int(line)) else: s1 = 'SHCD'.index(line[0]) s2 = int(line[2:]) x.append((s1,s2)) i = 1 r4 = range(4) r13 = range(13) lx = x.pop(0) cards = [[0 for i in r13] for j in r4] for j,i in x: cards...
File "/tmp/tmpt7ulyn5q/tmpotm8k86n.py", line 21 if cards[j][i]==0: print 'SHCD'[j],str(i+1) ^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s389263126
p02408
u912237403
1371215942
Python
Python
py
Runtime Error
0
0
314
r4 = range(4) r13 = range(13) cards = [[0 for i in r13] for j in r4] while True: n = inpur() for i in range(n): s1, s2 = raw_input().split() s1 = 'SHCD'.index(s1) s2 = int(s2)-1 cards[s1][s2] = 1 for j in r4: for i in r13: if cards[j][i]==0: print 'SHCD'[j],i+1
File "/tmp/tmpi69rvskx/tmpu935i067.py", line 14 if cards[j][i]==0: print 'SHCD'[j],i+1 ^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s068480159
p02408
u912237403
1371215968
Python
Python
py
Runtime Error
0
0
314
r4 = range(4) r13 = range(13) cards = [[0 for i in r13] for j in r4] while True: n = input() for i in range(n): s1, s2 = raw_input().split() s1 = 'SHCD'.index(s1) s2 = int(s2)-1 cards[s1][s2] = 1 for j in r4: for i in r13: if cards[j][i]==0: print 'SHCD'[j],i+1
File "/tmp/tmpt8b0r302/tmppl5v9ueq.py", line 14 if cards[j][i]==0: print 'SHCD'[j],i+1 ^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s899106124
p02408
u912237403
1371216213
Python
Python
py
Runtime Error
0
0
334
r4 = range(4) r13 = range(13) cards = [[0 for i in r13] for j in r4] while True: n = input() for i in range(n): s1, s2 = raw_input().split() s1 = 'SHCD'.index(s1) s2 = int(s2)-1 print s1,s2 cards[s1][s2] = 1 for j in r4: for i in r13: if cards[j][i]==0: print...
File "/tmp/tmpng63mgf0/tmp6dbjvc8e.py", line 10 print s1,s2 ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s739123150
p02408
u904989881
1391757786
Python
Python
py
Runtime Error
0
0
267
n = input() x = {'S':[], 'H':[], 'C':[], 'D':[]} for i in range(n): a = raw_input().split() x[a[0]].append(int(a[1])) for key in ['s', 'H', 'C', 'D']: for i in range(13): for j in x[key]: if i+1 == j: break else: print key, i+1
File "/tmp/tmp69k5yvpf/tmpfuo_qwfg.py", line 10 else: print key, i+1 ^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s146718601
p02408
u633068244
1393322696
Python
Python
py
Runtime Error
0
0
608
Sp = [1,2,3,4,5,6,7,8,9,10,11,12,13] Hu = [1,2,3,4,5,6,7,8,9,10,11,12,13] Cr = [1,2,3,4,5,6,7,8,9,10,11,12,13] Dy = [1,2,3,4,5,6,7,8,9,10,11,12,13] num = input() i = 0 while i < num: suit, n = input() if suit == "S": Sp[n-1] = 0 elif suit == "H": Hu[n-1] = 0 elif suit == "C": ...
File "/tmp/tmp0qvhybaz/tmp_elhj17h.py", line 22 print "S", Sp[i] ^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s402894413
p02408
u633068244
1393322782
Python
Python
py
Runtime Error
0
0
618
Sp = [1,2,3,4,5,6,7,8,9,10,11,12,13] Hu = [1,2,3,4,5,6,7,8,9,10,11,12,13] Cr = [1,2,3,4,5,6,7,8,9,10,11,12,13] Dy = [1,2,3,4,5,6,7,8,9,10,11,12,13] num = input() i = 0 while i < num: suit, n = raw_input().split if suit == "S": Sp[n-1] = 0 elif suit == "H": Hu[n-1] = 0 elif suit == "...
File "/tmp/tmp_yowgy7r/tmpt7brwwct.py", line 22 print "S", Sp[i] ^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s723279158
p02408
u633068244
1393322839
Python
Python
py
Runtime Error
0
0
634
Sp = [1,2,3,4,5,6,7,8,9,10,11,12,13] Hu = [1,2,3,4,5,6,7,8,9,10,11,12,13] Cr = [1,2,3,4,5,6,7,8,9,10,11,12,13] Dy = [1,2,3,4,5,6,7,8,9,10,11,12,13] num = input() i = 0 while i < num: suit, n = raw_input().split n = int(n) if suit == "S": Sp[n-1] = 0 elif suit == "H": Hu[n-1] = 0 ...
File "/tmp/tmplcn5m_89/tmpdn1pafvb.py", line 23 print "S", Sp[i] ^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s488021756
p02408
u633068244
1393322884
Python
Python
py
Runtime Error
0
0
602
Sp = [1,2,3,4,5,6,7,8,9,10,11,12,13] Hu = [1,2,3,4,5,6,7,8,9,10,11,12,13] Cr = [1,2,3,4,5,6,7,8,9,10,11,12,13] Dy = [1,2,3,4,5,6,7,8,9,10,11,12,13] num = input() i = 0 while i < num: suit, n = raw_input().split n = int(n) if suit == "S": Sp[n-1] = 0 elif suit == "H": Hu[n-1] = 0 ...
File "/tmp/tmpb6pvp4ye/tmpuk27p0z6.py", line 23 print "S", i ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s031197440
p02408
u633068244
1393322904
Python
Python
py
Runtime Error
0
0
607
Sp = [1,2,3,4,5,6,7,8,9,10,11,12,13] Hu = [1,2,3,4,5,6,7,8,9,10,11,12,13] Cr = [1,2,3,4,5,6,7,8,9,10,11,12,13] Dy = [1,2,3,4,5,6,7,8,9,10,11,12,13] num = int(input()) i = 0 while i < num: suit, n = raw_input().split n = int(n) if suit == "S": Sp[n-1] = 0 elif suit == "H": Hu[n-1] = ...
File "/tmp/tmpyb81_hh6/tmpl2r8zrel.py", line 23 print "S", i ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s590056055
p02409
u222716853
1532098383
Python
Python3
py
Runtime Error
0
0
728
num = input() L = [] house = [] for i in range(int(num)): k = input().split() k[0] = int(k[0]) k[1] = int(k[1]) k[2] = int(k[2]) k[3] = int(k[3]) L.append(k) for i in range(3): a = ["","0","0","0","0","0","0","0","0","0","0","0"] b = ["","0","0","0","0","0","0","0","0","0","0","0"] ...
Traceback (most recent call last): File "/tmp/tmp1azucqy6/tmpjx6cwnva.py", line 1, in <module> num = input() ^^^^^^^ EOFError: EOF when reading a line
s330040404
p02409
u222716853
1532098451
Python
Python3
py
Runtime Error
0
0
728
num = input() L = [] house = [] for i in range(int(num)): k = input().split() k[0] = int(k[0]) k[1] = int(k[1]) k[2] = int(k[2]) k[3] = int(k[3]) L.append(k) for i in range(3): a = ["","0","0","0","0","0","0","0","0","0","0","0"] b = ["","0","0","0","0","0","0","0","0","0","0","0"] ...
Traceback (most recent call last): File "/tmp/tmpl4vxclrt/tmp7bcbz1mg.py", line 1, in <module> num = input() ^^^^^^^ EOFError: EOF when reading a line
s222742447
p02409
u222716853
1532098725
Python
Python3
py
Runtime Error
0
0
738
%time num = input() L = [] house = [] for i in range(int(num)): k = input().split() k[0] = int(k[0]) k[1] = int(k[1]) k[2] = int(k[2]) k[3] = int(k[3]) L.append(k) for i in range(3): a = ["","0","0","0","0","0","0","0","0","0","0","0"] b = ["","0","0","0","0","0","0","0","0","0","0","0"...
File "/tmp/tmpny6i_b17/tmpp6wdugi4.py", line 1 %time ^ SyntaxError: invalid syntax
s818034919
p02409
u525366883
1535178440
Python
Python
py
Runtime Error
0
0
303
home = [[[0 for r in range(10)] for f in range(3)] for b in range(4)] n = int(raw_input()) for i in range(n): b, f, r, v = map(int, raw_input().split()) home[b-1][f-1][r-1] += v for i in range(4): for j in range(3): print " ".join(map(str, home[i][j])) if j == 2 and i != 3
File "/tmp/tmpfp0820a7/tmpl7oey0s3.py", line 9 print " ".join(map(str, home[i][j])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s605891355
p02409
u525366883
1535178616
Python
Python
py
Runtime Error
0
0
321
home = [[[0 for r in range(10)] for f in range(3)] for b in range(4)] n = int(raw_input()) for i in range(n): b, f, r, v = map(int, raw_input().split()) home[b-1][f-1][r-1] += v for i in range(4): for j in range(3): print "", print " ".join(map(str, home[i][j])) if j == 2 and i != 3...
File "/tmp/tmp3fbvrvqm/tmp1lv_7zso.py", line 9 print "", ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s553911692
p02409
u525366883
1535178657
Python
Python
py
Runtime Error
0
0
348
home = [[[0 for r in range(10)] for f in range(3)] for b in range(4)] n = int(raw_input()) for i in range(n): b, f, r, v = map(int, raw_input().split()) home[b-1][f-1][r-1] += v for i in range(4): for j in range(3): print "", print " ".join(map(str, home[i][j])) if j == 2 and i != 3...
File "/tmp/tmpabyhqk48/tmpr6rvw9va.py", line 9 print "", ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?