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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s781574273 | p02408 | u482227082 | 1556432796 | Python | Python3 | py | Runtime Error | 0 | 0 | 543 | s = [0] * 13
h = [0] * 13
c = [0] * 13
d = [0] * 13
num = int(input())
for i in range(num):
m, n = input().split()
n = int(n)
if m == "S":
s[n] = 1
if m == "H":
h[n] = 1
if m == "C":
c[n] = 1
if m == "D":
d[n] = 1
for i in range(1,13):
if s[i] == 0:
... | Traceback (most recent call last):
File "/tmp/tmpl3g4xnp1/tmprlx4z1c4.py", line 6, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s552997574 | p02408 | u482227082 | 1556432835 | Python | Python3 | py | Runtime Error | 0 | 0 | 543 | s = [0] * 13
h = [0] * 13
c = [0] * 13
d = [0] * 13
num = int(input())
for i in range(num):
m, n = input().split()
x = int(n)
if m == "S":
s[x] = 1
if m == "H":
h[x] = 1
if m == "C":
c[x] = 1
if m == "D":
d[x] = 1
for i in range(1,13):
if s[i] == 0:
... | Traceback (most recent call last):
File "/tmp/tmpwy9n0ira/tmpt4cl1v54.py", line 6, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s457345862 | p02408 | u482227082 | 1556432866 | Python | Python3 | py | Runtime Error | 0 | 0 | 559 | s = [0] * 13
h = [0] * 13
c = [0] * 13
d = [0] * 13
num = int(input())
for i in range(num):
m, n = input().split()
x = int(n)
if m == "S":
s[x] = 1
elif m == "H":
h[x] = 1
elif m == "C":
c[x] = 1
elif m == "D":
d[x] = 1
else:
for i in range(1,13):
if s[i... | File "/tmp/tmpt28eco5x/tmppxjya58q.py", line 20
for i in range(1,13):
IndentationError: expected an indented block after 'else' statement on line 18
| |
s461638924 | p02408 | u482227082 | 1556432883 | Python | Python3 | py | Runtime Error | 0 | 0 | 573 | s = [0] * 13
h = [0] * 13
c = [0] * 13
d = [0] * 13
num = int(input())
for i in range(num):
m, n = input().split()
x = int(n)
if m == "S":
s[x] = 1
elif m == "H":
h[x] = 1
elif m == "C":
c[x] = 1
elif m == "D":
d[x] = 1
else:
break
for i in range(1,1... | Traceback (most recent call last):
File "/tmp/tmpk4xihkyk/tmpalqhpbv9.py", line 6, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s898926047 | p02408 | u482227082 | 1556432904 | Python | Python3 | py | Runtime Error | 0 | 0 | 573 | s = [0] * 13
h = [0] * 13
c = [0] * 13
d = [0] * 13
num = int(input())
for i in range(num):
m, n = input().split()
x = int(n)
if m == "S":
s[x] = 1
elif m == "H":
h[x] = 1
elif m == "C":
c[x] = 1
elif m == "D":
d[x] = 1
else:
break
for i in range(1,1... | Traceback (most recent call last):
File "/tmp/tmprfyfrli5/tmppppps554.py", line 6, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s938176503 | p02408 | u482227082 | 1556433328 | Python | Python3 | py | Runtime Error | 0 | 0 | 573 | s = [0] * 13
h = [0] * 13
c = [0] * 13
d = [0] * 13
num = int(input())
for i in range(num):
m, n = input().split()
x = int(n)
if m == "S":
s[x] = 1
elif m == "H":
h[x] = 1
elif m == "C":
c[x] = 1
elif m == "D":
d[x] = 1
else:
break
for i in range(1,1... | Traceback (most recent call last):
File "/tmp/tmpaxkt33oh/tmpvccqvlz6.py", line 6, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s224641195 | p02408 | u482227082 | 1556433340 | Python | Python3 | py | Runtime Error | 0 | 0 | 573 | s = [0] * 13
h = [0] * 13
c = [0] * 13
d = [0] * 13
num = int(input())
for i in range(num):
m, n = input().split()
x = int(n)
if m == "S":
s[x] = 1
elif m == "H":
h[x] = 1
elif m == "C":
c[x] = 1
elif m == "D":
d[x] = 1
else:
break
for i in range(1,1... | Traceback (most recent call last):
File "/tmp/tmpydlzeyy_/tmpcq1b4aj6.py", line 6, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s061561606 | p02408 | u482227082 | 1556433460 | Python | Python3 | py | Runtime Error | 0 | 0 | 577 | s = [0] * 13
h = [0] * 13
c = [0] * 13
d = [0] * 13
num = int(input())
for i in range(num):
m, n = input().split()
x = int(n) - 1
if m == "S":
s[x] = 1
elif m == "H":
h[x] = 1
elif m == "C":
c[x] = 1
elif m == "D":
d[x] = 1
else:
break
for i in range... | Traceback (most recent call last):
File "/tmp/tmpzey9fvid/tmp1b3ufzcg.py", line 6, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s985193931 | p02408 | u009961299 | 1556552961 | Python | Python3 | py | Runtime Error | 0 | 0 | 237 | import itertools
n = int(input())
a = [input() for _ in range(n)]
suits = ['S', 'H', 'C', 'D']
cards = ["%s %d" % (s, r) for s, r in suits, range(1, 14)]
answers = [c for c in cards if c not in a]
for card in answers:
print(card)
| File "/tmp/tmp6v9rp3nw/tmp9vj2xy22.py", line 7
cards = ["%s %d" % (s, r) for s, r in suits, range(1, 14)]
^
SyntaxError: invalid syntax
| |
s755275305 | p02408 | u805716376 | 1556710649 | Python | Python3 | py | Runtime Error | 0 | 0 | 238 | a = {}
for s in ["S", "H", "C", "D"]:
a.update({f'{s} {i}': 0 for i in range(1, 14)})
n = int(input())
for _ in range(n):
s = input()
print(s)
del a[s]
a = list(a)
for i in len(a):
print(a[i])
| Traceback (most recent call last):
File "/tmp/tmppt3zx38y/tmpj2xyusd5.py", line 4, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s320142586 | p02408 | u610816226 | 1556710965 | Python | Python3 | py | Runtime Error | 0 | 0 | 322 | all_set = ['S ' + str(i) for i in range(1, 14)] + ['H ' + str(i) for i in range(1, 14)] + ['C ' + str(i) for i in range(1, 14)] + ['D ' + str(i) for i in range(1, 14)]
r = int(input())
for _ in range(r):
x = input()
if x in all_set:
del all_set[all_set.index(x)]
for i in all_set:
print(i)
| File "/tmp/tmpak1_e9v1/tmpel4lvg5t.py", line 1
all_set = ['S ' + str(i) for i in range(1, 14)] + ['H ' + str(i) for i in range(1, 14)] + ['C ' + str(i) for i in range(1, 14)] + ['D ' + str(i) for i in range(1, 14)]
^
SyntaxError: invalid non-printable character U... | |
s853243054 | p02408 | u500935997 | 1558935169 | Python | Python3 | py | Runtime Error | 0 | 0 | 210 | cards = [
"{} {}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13 + 1)
]
count = int(input()
for n in range(count):
card = input()
cards.remove(card)
for n in cards:
print(n)
| File "/tmp/tmp0xgr5rsk/tmppayx08eh.py", line 5
count = int(input()
^
SyntaxError: '(' was never closed
| |
s806975459 | p02408 | u250040203 | 1558935736 | Python | Python3 | py | Runtime Error | 0 | 0 | 524 | #ITP1_6_B
n= int(input())
T=[[0 for j in range(13)]for m in range(4)]
format(T)
for i in range(n):
a,b = input().split()
b=int(b)
if a=='S':
T[0][b] = 1
elif a=='H':
T[1][b] = 1
elif a=='C':
T[2][b] = 1
else:
T[3][b] = 1
c=int(0)
d=int(0)
for j in range(4):
f... | Traceback (most recent call last):
File "/tmp/tmpms90iv_d/tmpjw92xo2j.py", line 4, in <module>
n= int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s251541445 | p02408 | u250040203 | 1558935993 | Python | Python3 | py | Runtime Error | 0 | 0 | 532 | #ITP1_6_B
n= int(input())
T=[[0 for j in range(13)]for m in range(4)]
format(T)
for i in range(n):
a,b = input().split()
b=int(b)
if a=='S':
T[0][b-1] = 1
elif a=='H':
T[1][b-1] = 1
elif a=='C':
T[2][b-1] = 1
else:
T[3][b-1] = 1
c=int(0)
d=int(0)
for j in range(4... | Traceback (most recent call last):
File "/tmp/tmpyrcpen22/tmpjh81l6c4.py", line 4, in <module>
n= int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s777241239 | p02408 | u250040203 | 1558936255 | Python | Python3 | py | Runtime Error | 0 | 0 | 540 | #ITP1_6_B
n= int(input())
T=[[0 for j in range(13)]for m in range(4)]
format(T)
for i in range(n):
a,b = input().split()
b=int(b)
if a=='S':
T[0][b-1] = 1
elif a=='H':
T[1][b-1] = 1
elif a=='C':
T[2][b-1] = 1
else:
T[3][b-1] = 1
c=0
c=int(c)
d=0
d=int(d)
for j in... | Traceback (most recent call last):
File "/tmp/tmp7icnyeyr/tmpaszmedcl.py", line 4, in <module>
n= int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s122890448 | p02408 | u250040203 | 1558936357 | Python | Python3 | py | Runtime Error | 0 | 0 | 480 | n= int(input())
T=[[0 for j in range(13)]for m in range(4)]
format(T)
for i in range(n):
a,b = input().split()
b=int(b)
if a=='S':
T[0][b-1] = 1
elif a=='H':
T[1][b-1] = 1
elif a=='C':
T[2][b-1] = 1
else:
T[3][b-1] = 1
for j in range(4):
for i in range (13):
... | Traceback (most recent call last):
File "/tmp/tmpdy7ajdgp/tmp4f3yxbd1.py", line 1, in <module>
n= int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s626793981 | p02408 | u250040203 | 1558936410 | Python | Python3 | py | Runtime Error | 0 | 0 | 480 | n= int(input())
T=[[0 for j in range(13)]for m in range(4)]
format(T)
for i in range(n):
a,b = input().split()
b=int(b)
if a=='S':
T[0][b-1] = 1
elif a=='H':
T[1][b-1] = 1
elif a=='C':
T[2][b-1] = 1
else:
T[3][b-1] = 1
for j in range(4):
for i in range (13):
... | Traceback (most recent call last):
File "/tmp/tmpejfwr_6z/tmp41q9gq8e.py", line 1, in <module>
n= int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s678576685 | p02408 | u239237743 | 1558936504 | Python | Python3 | py | Runtime Error | 0 | 0 | 509 | cards = [[0 for i in range(13)] for j in range(4)]
pattern = ["S", "H", "C", "D"]
n = int(input())
ch_list=[]
rank_list_0=[]
while n > 0:
ch, rank = input().split()
ch_list.append(ch)
rank_list_0.append(rank)
n = n - 1
rank_list = [int(rank_list) for rank_list in rank_list_0]
for (chlist, ranklist) in zip(... | File "/tmp/tmp_a363nxq/tmp88vosxel.py", line 21
for j in range(0, 12)
^
SyntaxError: expected ':'
| |
s925465888 | p02408 | u535719732 | 1559217965 | Python | Python3 | py | Runtime Error | 0 | 0 | 653 | cards = int(input())
i = 0
cardlist = []
while(i < cards):
cardlist.append(list(map(str,input().split())))
i += 1
SP = [0] * 13
HR = [0] * 13
CL = [0] * 13
DY = [0] * 13
for i in cardlist:
num = int(i[1])
if (i[0] == S):
SP[num] = 1
elif(i[0] == H):
HR[num] = 1
elif(i[0] ==... | Traceback (most recent call last):
File "/tmp/tmpk6l2v4xd/tmpah4rnf01.py", line 1, in <module>
cards = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s002022652 | p02408 | u535719732 | 1559217980 | Python | Python3 | py | Runtime Error | 0 | 0 | 662 | cards = int(input())
i = 0
cardlist = []
while(i < cards):
cardlist.append(list(map(str,input().split())))
i += 1
SP = [0] * 13
HR = [0] * 13
CL = [0] * 13
DY = [0] * 13
for i in cardlist:
num = int(i[1])
if (i[0] == "S"):
SP[num] = 1
elif(i[0] == ""H"):
HR[num] = 1
elif(i[... | File "/tmp/tmpmkh9npq8/tmps5vb22l2.py", line 16
elif(i[0] == ""H"):
^
SyntaxError: unterminated string literal (detected at line 16)
| |
s571771610 | p02408 | u535719732 | 1559217989 | Python | Python3 | py | Runtime Error | 0 | 0 | 661 | cards = int(input())
i = 0
cardlist = []
while(i < cards):
cardlist.append(list(map(str,input().split())))
i += 1
SP = [0] * 13
HR = [0] * 13
CL = [0] * 13
DY = [0] * 13
for i in cardlist:
num = int(i[1])
if (i[0] == "S"):
SP[num] = 1
elif(i[0] == "H"):
HR[num] = 1
elif(i[0... | Traceback (most recent call last):
File "/tmp/tmprq73dpve/tmp2t7aiqy1.py", line 1, in <module>
cards = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s592173784 | p02408 | u535719732 | 1559218057 | Python | Python3 | py | Runtime Error | 0 | 0 | 705 | cards = int(input())
i = 0
cardlist = []
while(i < cards):
cardlist.append(list(map(str,input().split())))
i += 1
SP = [False] * 13
HR = [False] * 13
CL = [False] * 13
DY = [False] * 13
for i in cardlist:
num = int(i[1])
if (i[0] == "S"):
SP[num] = True
elif(i[0] == "H"):
HR[nu... | Traceback (most recent call last):
File "/tmp/tmp5au55i1j/tmptamvw5nu.py", line 1, in <module>
cards = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s808277917 | p02408 | u535719732 | 1559218142 | Python | Python3 | py | Runtime Error | 0 | 0 | 701 | cards = int(input())
i = 0
cardlist = []
while(i < cards):
cardlist.append(list(map(str,input().split())))
i += 1
SP = [False] * 13
HR = [False] * 13
CL = [False] * 13
DY = [False] * 13
for i in cardlist:
num = int(i[1])
if (i[0] == "S"):
SP[num] = True
elif(i[0] == "H"):
HR[num] =... | Traceback (most recent call last):
File "/tmp/tmpwojhnx3_/tmpwhjjy__c.py", line 1, in <module>
cards = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s301128831 | p02408 | u839788696 | 1559523057 | Python | Python3 | py | Runtime Error | 0 | 0 | 295 | cards = ([False in i in range(13)] for j in range(4))
pattern = ['S','H','C','D']
n = int(input())
for i in range(n):
x, y = input().split()
y = int(y)
cards = [patterrn.index(x)][y-1]
for i in range(4):
for j in range(13):
if cards[i][j] == False:
print(pattern[i][j-1])
| Traceback (most recent call last):
File "/tmp/tmpxhcx7nur/tmpob_mqfmw.py", line 4, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s033841733 | p02408 | u839788696 | 1559523100 | Python | Python3 | py | Runtime Error | 0 | 0 | 294 | cards = ([False in i in range(13)] for j in range(4))
pattern = ['S','H','C','D']
n = int(input())
for i in range(n):
x, y = input().split()
y = int(y)
cards = [pattern.index(x)][y-1]
for i in range(4):
for j in range(13):
if cards[i][j] == False:
print(pattern[i][j-1])
| Traceback (most recent call last):
File "/tmp/tmputvlmw2n/tmptm4su8if.py", line 4, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s240956208 | p02408 | u839788696 | 1559523284 | Python | Python3 | py | Runtime Error | 0 | 0 | 294 | cards = ([False in i in range(13)] for j in range(4))
pattern = ['S','H','C','D']
n = int(input())
for i in range(n):
x, y = input().split()
y = int(y)
cards = [pattern.index(x)][y-1]
for i in range(4):
for j in range(13):
if cards[i][j] == False:
print(pattern[i][j-1])
| Traceback (most recent call last):
File "/tmp/tmppobc5reu/tmp_coj193w.py", line 4, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s332532304 | p02408 | u839788696 | 1559523322 | Python | Python3 | py | Runtime Error | 0 | 0 | 301 | cards = ([False in i in range(13)] for j in range(4))
pattern = ['S','H','C','D']
n = int(input())
for i in range(n):
x, y = input().split()
y = int(y)
cards = [pattern.index(x)][y-1] = True
for i in range(4):
for j in range(13):
if cards[i][j] == False:
print(pattern[i][j-1])
| Traceback (most recent call last):
File "/tmp/tmpaflp6jyl/tmpx2gc0sz7.py", line 4, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s293785087 | p02408 | u839788696 | 1559523370 | Python | Python3 | py | Runtime Error | 0 | 0 | 298 | cards = ([False in i in range(13)] for j in range(4))
pattern = ['S','H','C','D']
n = int(input())
for i in range(n):
x, y = input().split()
y = int(y)
cards[pattern.index(x)][y-1] = True
for i in range(4):
for j in range(13):
if cards[i][j] == False:
print(pattern[i][j-1])
| Traceback (most recent call last):
File "/tmp/tmpobacz5l3/tmpzj4uz106.py", line 4, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s259656544 | p02408 | u839788696 | 1559523448 | Python | Python3 | py | Runtime Error | 0 | 0 | 306 | cards = [([False in i in range(13)] for j in range(4)]
pattern = ['S','H','C','D']
n = int(input())
for i in range(n):
x, y = input().split()
y = int(y)
cards[pattern.index(x)][y-1] = True
for i in range(4):
for j in range(13):
if cards[i][j] == False:
print(pattern[i],[j-1])
| File "/tmp/tmpfpfx3hn9/tmp00qohj38.py", line 1
cards = [([False in i in range(13)] for j in range(4)]
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
| |
s529947036 | p02408 | u839788696 | 1559523458 | Python | Python3 | py | Runtime Error | 0 | 0 | 300 | cards = [([False in i in range(13)] for j in range(4)]
pattern = ['S','H','C','D']
n = int(input())
for i in range(n):
x, y = input().split()
y = int(y)
cards[pattern.index(x)][y-1] = True
for i in range(4):
for j in range(13):
if cards[i][j] == False:
print(pattern[i],[j-1])
| File "/tmp/tmpqaays4gz/tmpeo6ba94i.py", line 1
cards = [([False in i in range(13)] for j in range(4)]
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
| |
s410898203 | p02408 | u839788696 | 1559523474 | Python | Python3 | py | Runtime Error | 0 | 0 | 299 | cards = [[False in i in range(13)] for j in range(4)]
pattern = ['S','H','C','D']
n = int(input())
for i in range(n):
x, y = input().split()
y = int(y)
cards[pattern.index(x)][y-1] = True
for i in range(4):
for j in range(13):
if cards[i][j] == False:
print(pattern[i],[j-1])
| Traceback (most recent call last):
File "/tmp/tmpwfzxivui/tmp9qcvyd3d.py", line 1, in <module>
cards = [[False in i in range(13)] for j in range(4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmpwfzxivui/tmp9qcvyd3d.py", line 1, in <listcomp>
cards = [[False in i in range(13)] for ... | |
s410071352 | p02408 | u839788696 | 1559527937 | Python | Python3 | py | Runtime Error | 0 | 0 | 216 | cards =[]
symbol = ['S','H','C','D']
for sym in symbol:
for i in range(1,14):
cards.append(sym + '' + str(i))
n = int(input())
for j in range(n):
cards.remove(input())
for card in cards:
print(card)
| Traceback (most recent call last):
File "/tmp/tmpl0i92a48/tmp09o_wkgw.py", line 8, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s260499202 | p02408 | u839788696 | 1559527972 | Python | Python3 | py | Runtime Error | 0 | 0 | 226 | cards = []
symbol = ['S', 'H', 'C', 'D']
for sym in symbol:
for i in range(1, 14):
cards.append(sym + '' + str(i))
n = int(input())
for i in range(n):
cards.remove(input())
for card in cards:
print(card)
| Traceback (most recent call last):
File "/tmp/tmpbyawydj9/tmpk5sub3co.py", line 7, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s412854608 | p02408 | u839788696 | 1559528558 | Python | Python3 | py | Runtime Error | 0 | 0 | 163 | n = int(input())
card=[i + '' + str(j) for i in ['S','H','C','D'] for j in range(1,14)]
for i in range(n):
card.remove(input())
for i in card:
print(card)
| Traceback (most recent call last):
File "/tmp/tmpc0p6zqh4/tmpmjyig5hu.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s744153134 | p02408 | u839788696 | 1559528756 | Python | Python3 | py | Runtime Error | 0 | 0 | 166 | n = int(input())
card=[i+""+str(j) for i in ['S','H','C','D'] for j in range(1,14)]
for i in range(n):
card.remove(input())
for i in card:
print(card)
| Traceback (most recent call last):
File "/tmp/tmpife_ni37/tmpcjn_tfq0.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s513690649 | p02408 | u814278309 | 1559538269 | Python | Python3 | py | Runtime Error | 0 | 0 | 181 | n=input()
d={}
for i in range(n):
card=input()
d[card]=True
for c in ["S","H","C","D"]:
for i in brange(1,13):
card=c+' '+str(n)
if not key in d:
print(key)
| Traceback (most recent call last):
File "/tmp/tmpeauqnt_v/tmp9utdtqyt.py", line 1, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s945156749 | p02408 | u847360154 | 1559538303 | Python | Python3 | py | Runtime Error | 0 | 0 | 252 | n = int(input())
cards = {} #からの辞書
for i in range(n):
card = input()
cards[card] = 1
#print(d)
for c in ['S', 'H', 'C', 'D']:
for n in rarge(1, 13):
key = c + ' ' + str(n)
if not key in cards:
print(key)
| Traceback (most recent call last):
File "/tmp/tmpqnz9_8nb/tmpia9hcc4j.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s195464768 | p02408 | u427219397 | 1559538427 | Python | Python3 | py | Runtime Error | 0 | 0 | 255 | n = int(input())
d = {} #空の辞書
for i in range(n):
card = input()
d[card] = 1
#print(cards)
for c in ['S', 'H', 'C', 'D']:
for n in range(1, 13):
key = c +' ' +str(n)
if not key in cards:
print(key)
| Traceback (most recent call last):
File "/tmp/tmpikuew36d/tmp1bm3l3s_.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s255198460 | p02408 | u433250944 | 1559538485 | Python | Python3 | py | Runtime Error | 0 | 0 | 259 | n = int(input())
cards = {} #空の辞書
for i in range(n):
card = input()
cards[card] = 1
#print(cards)
for c in range['S','H','C ','D']:
for n in range(1,13):
key = C + ' '+ str(n)
if not key in cards:
print(key)
| Traceback (most recent call last):
File "/tmp/tmpa_pspk12/tmp64e1_0nw.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s382608784 | p02408 | u313600138 | 1559538487 | Python | Python3 | py | Runtime Error | 0 | 0 | 208 | n=int(input())
d={} #空の辞書
for i in range(n):
cards=input()
cards[card]=1
for c in ['S', 'H', 'C', 'D']:
for n in range(1,13):
key=c+' '+str(n)
if not key in cards:
print(key)key)
| File "/tmp/tmpfb65e3l8/tmp03aiooxo.py", line 11
print(key)key)
^
SyntaxError: unmatched ')'
| |
s361461518 | p02408 | u586792237 | 1559538490 | Python | Python3 | py | Runtime Error | 0 | 0 | 261 | n = int(input())
cards = {} #空の辞書
for i in range(n):
card = input()
cards[card] = 1
#print(cards)
for c in ['S', 'H', 'C', 'D']:
for n in range(1,13):
card = c + ' ' + str(n)
if not key in cards:
print(key)
| Traceback (most recent call last):
File "/tmp/tmpmou40vt_/tmpyby8djll.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s802686418 | p02408 | u313600138 | 1559538502 | Python | Python3 | py | Runtime Error | 0 | 0 | 208 | n=int(input())
d={} #空の辞書
for i in range(n):
cards=input()
cards[card]=1
for c in ['S', 'H', 'C', 'D']:
for n in range(1,13):
key=c+' '+str(n)
if not key in cards:
print(key)key)
| File "/tmp/tmpfdwseeu0/tmptfp1ks84.py", line 11
print(key)key)
^
SyntaxError: unmatched ')'
| |
s959636589 | p02408 | u003684951 | 1559538755 | Python | Python3 | py | Runtime Error | 0 | 0 | 205 | n = int(input())
cards ={}
for i in rang(n):
card = input()
cards[card] =1
for c in ['S','H','C','D']:
for c in range(1,13):
card = c + ' ' + str(n)
if not card in cards:
print(card)
| Traceback (most recent call last):
File "/tmp/tmpdjrpk7lz/tmprdzmi77o.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s194051987 | p02408 | u313600138 | 1559538760 | Python | Python3 | py | Runtime Error | 0 | 0 | 204 | n=int(input())
d={} #空の辞書
for i in range(n):
cards=input()
cards[card]=1
for c in ['S', 'H', 'C', 'D']:
for n in range(1,13):
key=c+' '+str(n)
if not key in cards:
print(key)
| Traceback (most recent call last):
File "/tmp/tmpw2847lxx/tmp_2h1rkr3.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s542907792 | p02408 | u586792237 | 1559538762 | Python | Python3 | py | Runtime Error | 0 | 0 | 261 | n = int(input())
cards = {} #空の辞書
for i in range(n):
card = input()
cards[card] = 1
#print(cards)
for c in ['S', 'H', 'C', 'D']:
for n in range(1,14):
card = c + ' ' + str(n)
if not key in cards:
print(key)
| Traceback (most recent call last):
File "/tmp/tmp4nw2k0mk/tmppa_88ixh.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s368381408 | p02408 | u313600138 | 1559538837 | Python | Python3 | py | Runtime Error | 0 | 0 | 204 | n=int(input())
d={} #空の辞書
for i in range(n):
cards=input()
cards[card]=1
for c in ['S', 'H', 'C', 'D']:
for n in range(1,14):
key=c+' '+str(n)
if not key in cards:
print(key)
| Traceback (most recent call last):
File "/tmp/tmpxebyd01r/tmpmtc0n9tr.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s147333120 | p02408 | u847360154 | 1559538841 | Python | Python3 | py | Runtime Error | 0 | 0 | 260 | n = int(input())
cards = {} #からの辞書
for i in range(n):
card = input()
cards[card] = 1
#print(d)
for c in ['S', 'H', 'C', 'D']:
for n in rarge(1, 14):
key = c + ' ' + str(n)
if not key in cards:
print(key)
| Traceback (most recent call last):
File "/tmp/tmpu2cz_ahz/tmpw18wsx6b.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s746094185 | p02408 | u003684951 | 1559538944 | Python | Python3 | py | Runtime Error | 0 | 0 | 206 | 47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 5
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
| File "/tmp/tmp4c2osvw3/tmp4_gvvf_x.py", line 2
S 10
^^
SyntaxError: invalid syntax
| |
s651713788 | p02408 | u596870465 | 1559540959 | Python | Python3 | py | Runtime Error | 0 | 0 | 203 | n = int(input())
d = {
for i in range(n):
card = input()
cards[card] = 1
for c in ['S','H','C','D']:
for n in range(1,14):
card = c + ' ' + str(n)
if not key in cards:
print(card)
| File "/tmp/tmpzn71x9m5/tmp7jx7k7tn.py", line 2
d = {
^
SyntaxError: '{' was never closed
| |
s699652104 | p02408 | u596870465 | 1559541026 | Python | Python3 | py | Runtime Error | 0 | 0 | 207 | n = int(input())
cards = {}
for i in range(n):
card = input()
cards[card] = 1
for c in ['S','H','C','D']:
for n in range(1,14):
card = c + ' ' + str(n)
if not key in cards:
print(key)
| Traceback (most recent call last):
File "/tmp/tmpz1s657fb/tmpo4gomxiu.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s047407735 | p02408 | u327972099 | 1409676733 | Python | Python3 | py | Runtime Error | 0 | 0 | 273 | n = int(input())
count = 0
card = {"S": card_(), "H": card_(), "C": card_(), "D": card_()}
while count < n:
i = list(input().split(" "))
card[i[0]] -= {int(i[1])}
count += 1
mark = ["S", "H", "C", "D"]
for m in mark:
for c in sorted(card[m]):
print("%s %d" % (m, c)) | Traceback (most recent call last):
File "/tmp/tmpwgyv1yua/tmpsb2xl75v.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s970838875 | p02408 | u792834675 | 1417252836 | Python | Python | py | Runtime Error | 0 | 0 | 242 | z = input()
d = {}
while 1:
x = raw_input().split()
print x
if x[0] == '0':
break
else:
d[x[0]] = d.get(x[0],[]) + [x[1]]
L = ['S','H','C','D']
for i in L:
for j in sorted(d[i]):
print i + " " + j | File "/tmp/tmpgbcgmy6r/tmpr6z1vmk2.py", line 5
print x
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s293001587 | p02408 | u792834675 | 1417253412 | Python | Python | py | Runtime Error | 0 | 0 | 296 | z = input()
d = {}
L = ['S','H','C','D']
for i in L:
for j in range(1,14):
d[i] = d.get(i,[]) + [str(j)]
while 1:
x = raw_input().split()
if x[0] == '0':
break
else:
d[x[0]].remove(x[1])
for i in L:
for j in sorted(d[i]):
print i + " " + j | File "/tmp/tmpo7e2kqd0/tmp3uwndfcp.py", line 20
print i + " " + j
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s590163702 | p02408 | u567380442 | 1420967984 | Python | Python3 | py | Runtime Error | 0 | 0 | 307 | import sys
SUITS = ['S', 'H', 'C', 'D']
exist_cards = {suit:[] for suit in suits}
n = input()
for line in sys.stdin:
suit, number = line.split()
exist_cards[suit].append(int(number))
for suit in SUITS:
for i in range(1, 14):
if i not in exist_cards[suit]:
print(suit, i) | Traceback (most recent call last):
File "/tmp/tmp7djjoglt/tmp1tw85r3u.py", line 4, in <module>
exist_cards = {suit:[] for suit in suits}
^^^^^
NameError: name 'suits' is not defined. Did you mean: 'quit'?
| |
s097130826 | p02408 | u839573768 | 1423108123 | Python | Python | py | Runtime Error | 0 | 0 | 1291 | n = input()
a = []
flag = {}
for j in range(1, 14):
flag[('S',j)] = 0
flag[('H',j)] = 0
flag[('C',j)] = 0
flag[('D',j)] = 0
for i in range(n):
temp = map(str, raw_input().split())
a.append((temp[0],temp[1]))
print a[i][0]
print a[i][1]
#Sについて
for i in range(n):
if(a[i][0] == 'S'):... | File "/tmp/tmp8blj3x3b/tmpesr4twu0.py", line 14
print a[i][0]
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s716056465 | p02408 | u839573768 | 1423108221 | Python | Python | py | Runtime Error | 0 | 0 | 1300 | n = input()
a = []
flag = {}
for j in range(1, 14):
flag[('S',j)] = 0
flag[('H',j)] = 0
flag[('C',j)] = 0
flag[('D',j)] = 0
for i in range(n):
temp = map(str, raw_input().split())
a.append((temp[0],temp[1]))
print a[i][0]
print a[i][1]
#Sについて
for i in range(n):
if(a[i][0] == 'S'):... | File "/tmp/tmps0ocr8zs/tmplgd_rflu.py", line 14
print a[i][0]
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s261658758 | p02408 | u839573768 | 1423108467 | Python | Python | py | Runtime Error | 0 | 0 | 1295 | n = input()
a = []
flag = {}
for j in range(1, 14):
flag[('S',j)] = 0
flag[('H',j)] = 0
flag[('C',j)] = 0
flag[('D',j)] = 0
for i in range(n):
temp = map(str, raw_input().split())
a.append((temp[0],temp[1]))
#print a[i][0]
#print a[i][1]
#Sについて
for i in range(n):
if(a[i][0] == 'S'... | File "/tmp/tmpkkwrcz0j/tmpu9np8h_7.py", line 45
print 'S' ' ' '%d' %(j)
^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s760597910 | p02408 | u839573768 | 1423111253 | Python | Python | py | Runtime Error | 0 | 0 | 1312 | n = input()
a = []
flag = {}
for j in range(1, 14):
flag[('S',j)] = 0
flag[('H',j)] = 0
flag[('C',j)] = 0
flag[('D',j)] = 0
for i in range(n):
temp = map(str, raw_input().split())
a.append((temp[0],temp[1]))
#print a[i][0]
#print a[i][1]
#Sについて
for i in range(n):
if(a[i][0] == 'S'... | File "/tmp/tmpn70fto6h/tmp6yuwhsae.py", line 45
print 'S' ' ' '%d' %(j)
^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s570877859 | p02408 | u193599711 | 1423797408 | Python | Python3 | py | Runtime Error | 0 | 0 | 691 | NumberOfSheet = int(input())
OwnedCards = [[str(i) for i in input().split()] for loop in range(NumberOfSheet)]
S = [int(0) for i in range(13)]
H = [int(0) for i in range(13)]
C = [int(0) for i in range(13)]
D = [int(0) for i in range(13)]
for i in OwnedCards:
if i[0] == 'S' or i[0] == 'H' or i[0] == 'C' or i[0] == 'D... | File "/tmp/tmpvsr5ncx2/tmp4wdbb9zu.py", line 14
for i in range(13): if S[i] == 0: print('S',i + 1)
^^
SyntaxError: invalid syntax
| |
s532752054 | p02408 | u442346200 | 1424054572 | Python | Python3 | py | Runtime Error | 0 | 0 | 342 | cards = {
'S': [r for f in range(1,13+1)],
'H': [r for f in range(1,13+1)],
'C': [r for f in range(1,13+1)],
'D': [r for f in range(1,13+1)],
}
n = int(input())
for nc in range(n):
(s, r) = input().split()
index = cards[s].index(int(r))
del cards[s][index]
for s in ['S', 'H', 'C', 'D']:
for r in car... | Traceback (most recent call last):
File "/tmp/tmp72ecn_1i/tmpwivdkrzy.py", line 2, in <module>
'S': [r for f in range(1,13+1)],
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmp72ecn_1i/tmpwivdkrzy.py", line 2, in <listcomp>
'S': [r for f in range(1,13+1)],
^
NameError: name 'r' is not defined
| |
s181257551 | p02408 | u088816384 | 1425723887 | Python | Python | py | Runtime Error | 0 | 0 | 471 | x = input()
S = H = C = D = [1,2,3,4,5,6,7,8,9,10,11,12,13]
for i in range(x):
mark, num = map(str, raw_input().split())
if mark == 'S':
S.remove(int(num))
elif mark == 'H':
H.remove(int(num))
elif mark == 'C':
C.remove(int(num))
elif mark == 'D':
D.remove(int(num))
for i in range(len(S)):
print "S " + st... | File "/tmp/tmp1e6obrlk/tmp2x9usuls.py", line 14
print "S " + str(S[i])
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s806163646 | p02408 | u088816384 | 1425723993 | Python | Python3 | py | Runtime Error | 0 | 0 | 471 | x = input()
S = H = C = D = [1,2,3,4,5,6,7,8,9,10,11,12,13]
for i in range(x):
mark, num = map(str, raw_input().split())
if mark == 'S':
S.remove(int(num))
elif mark == 'H':
H.remove(int(num))
elif mark == 'C':
C.remove(int(num))
elif mark == 'D':
D.remove(int(num))
for i in range(len(S)):
print "S " + st... | File "/tmp/tmpxh11r70t/tmp8654c5uw.py", line 14
print "S " + str(S[i])
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s144828538 | p02408 | u370429022 | 1426178096 | Python | Python3 | py | Runtime Error | 0 | 0 | 313 | def to_str(symbol, num):
return '{0} {1}'.format(symbol, num)
if __name__ == '__main__':
symbols = ['S','H','C','D']
cards = [to_str(x,y) for x in symbols for y in range(1,14)]
n = int(input())
if n == 52: break
for i in range(n):
cards.remove(input())
print('\n'.join(cards)) | File "/tmp/tmp1wm_nfbh/tmpl6gxtt5v.py", line 8
if n == 52: break
^^^^^
SyntaxError: 'break' outside loop
| |
s037265172 | p02408 | u370429022 | 1426178116 | Python | Python3 | py | Runtime Error | 0 | 0 | 319 | def to_str(symbol, num):
return '{0} {1}'.format(symbol, num)
if __name__ == '__main__':
symbols = ['S','H','C','D']
cards = [to_str(x,y) for x in symbols for y in range(1,14)]
n = int(input())
if n == 52: return None
for i in range(n):
cards.remove(input())
print('\n'.join(cards)) | File "/tmp/tmpqo5hz3_s/tmp_rr8u_be.py", line 8
if n == 52: return None
^^^^^^^^^^^
SyntaxError: 'return' outside function
| |
s606996037 | p02408 | u828455902 | 1428605506 | Python | Python | py | Runtime Error | 0 | 0 | 137 | n=input();a=[];b="SHCD"
for i in range(4*13):a.append(b[i/13]+" "+str(i%13+1))
for i in range(n):c.remove(raw_input())
for i in c:print i | File "/tmp/tmp9naldt8d/tmpuxnd2mix.py", line 4
for i in c:print i
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s599616452 | p02408 | u828455902 | 1428605577 | Python | Python | py | Runtime Error | 0 | 0 | 137 | n=input();a=[];b="SHCD"
for i in range(4*13):a.append(b[i/13]+" "+str(i%13+1))
for i in range(n):a.remove(raw_input())
for i in c:print i | File "/tmp/tmpo4xk9dqp/tmp_4tx1gr9.py", line 4
for i in c:print i
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s467053507 | p02408 | u828455902 | 1428653170 | Python | Python | py | Runtime Error | 0 | 0 | 123 | a=[];n=input()
for i in range(52):
a.append("SHCD"[i/13]+" "+str(i%13+1))
if i<n:a.remove(raw_input())
for i in a:print i | File "/tmp/tmp5zphc5ha/tmp8cjfq07c.py", line 5
for i in a:print i
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s088770792 | p02408 | u527848444 | 1438566373 | Python | Python3 | py | Runtime Error | 0 | 0 | 394 | data = {
'S':[int(x) for x in range(1,14)],
'H':[int(x) for x in range(1,14)],
'C':[int(x) for x in range(1,14)],
'D':[int(x) for x in range(1,14)]
}
count = int(input())
n = int(input())
for nc in range(n):
(s, r) = input().split()
index = cards[s].index(int(r))
del cards[s][index]
... | Traceback (most recent call last):
File "/tmp/tmphqqwcgao/tmp0uuhlqzs.py", line 8, in <module>
count = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s767908392 | p02408 | u527848444 | 1438566466 | Python | Python3 | py | Runtime Error | 0 | 0 | 373 | data = {
'S':[int(x) for x in range(1,14)],
'H':[int(x) for x in range(1,14)],
'C':[int(x) for x in range(1,14)],
'D':[int(x) for x in range(1,14)]
}
n = int(input())
for nc in range(n):
(s, r) = input().split()
index = cards[s].index(int(r))
del cards[s][index]
for s in ['S', 'H', ... | Traceback (most recent call last):
File "/tmp/tmp1ketaotp/tmppns8lmib.py", line 8, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s417483596 | p02408 | u527848444 | 1438566532 | Python | Python3 | py | Runtime Error | 0 | 0 | 373 | data = {
'S':[int(x) for x in range(1,14)],
'H':[int(x) for x in range(1,14)],
'C':[int(x) for x in range(1,14)],
'D':[int(x) for x in range(1,14)]
}
n = int(input())
for nc in range(n):
(s, r) = input().split()
index = cards[s].index(int(r))
del cards[s][index]
for s in ['S', 'H', ... | Traceback (most recent call last):
File "/tmp/tmpf0hifq7b/tmpxc6qrpc9.py", line 8, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s983796725 | p02408 | u446066125 | 1438566705 | Python | Python3 | py | Runtime Error | 0 | 0 | 366 | cards = {
'S': [0 for _ in range(13)],
'H': [0 for _ in range(13)],
'C': [0 for _ in range(13)],
'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n) :
(s, r) = input().split()
index = cards[s].index(int(r))
del cards[s][index]
for s in ['S', 'H', 'C', 'D']... | Traceback (most recent call last):
File "/tmp/tmpm8i9irq0/tmpeoqgskbn.py", line 8, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s431780634 | p02408 | u527848444 | 1438566750 | Python | Python3 | py | Runtime Error | 0 | 0 | 348 | data = {
'S':[0 for _ in range(13)],
'H':[0 for _ in range(13)],
'C':[0 for _ in range(13)],
'D':[0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input().split()
index = cards[s].index(int(r))
cards[s][int(r) - 1] = 1
for s in ['S', 'H', 'C', 'D']:
for r in ran... | Traceback (most recent call last):
File "/tmp/tmp4iislf39/tmpeupzesj7.py", line 8, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s848342244 | p02408 | u527848444 | 1438566877 | Python | Python3 | py | Runtime Error | 0 | 0 | 385 | data = {
'S':[0 for _ in range(13)],
'H':[0 for _ in range(13)],
'C':[0 for _ in range(13)],
'D':[0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input().split()
index = cards[s].index(int(r))
cards[s][int(r) - 1] = 1
for s in ['S', 'H', 'C', 'D']:
for r in r... | Traceback (most recent call last):
File "/tmp/tmpcphbux0n/tmp2njnuyfj.py", line 8, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s539719328 | p02408 | u306530296 | 1438566990 | Python | Python3 | py | Runtime Error | 0 | 0 | 315 | cards = {
'S': [0 for _ in range(13)],
'H': [0 for _ in range(13)],
'C': [0 for _ in range(13)],
'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input().split()
??????cords[s][int(r) - 1] = 1
for s in ('S', 'H', 'C', 'D'):
for r in range(13): | File "/tmp/tmpgvs3_nyt/tmpzhzjhnki.py", line 10
??????cords[s][int(r) - 1] = 1
^
SyntaxError: invalid syntax
| |
s021835071 | p02408 | u763673519 | 1438567006 | Python | Python3 | py | Runtime Error | 0 | 0 | 342 | cards = {
'S': [0 for _ in range(13)],
'H': [0 for _ in range(13)],
'C': [0 for _ in range(13)],
'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input.().split()
cards[s][int(r) - 1] = 1
for s in ('S', 'H', 'C', 'D',):
for r in range(13):
if cards [s] [r] ==... | File "/tmp/tmpp1joqwsg/tmpszrxg54q.py", line 9
(s, r) = input.().split()
^
SyntaxError: invalid syntax
| |
s572427375 | p02408 | u763673519 | 1438567421 | Python | Python3 | py | Runtime Error | 0 | 0 | 346 | cards = {
'S': [0 for _ in range(13)],
'H': [0 for _ in range(13)],
'C': [0 for _ in range(13)],
'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input.().split()
cards[s][int(r) - 1] = 1
for s in ('S', 'H', 'C', 'D',):
for r in range(13):
if cards [s] [r... | File "/tmp/tmpdtjf_euq/tmp8rq3g4wd.py", line 9
(s, r) = input.().split()
^
SyntaxError: invalid syntax
| |
s104299523 | p02408 | u389610071 | 1438568978 | Python | Python3 | py | Runtime Error | 0 | 0 | 398 | cards = {
'S': [0 for _ in range(13)],
'H': [0 for _ in range(13)],
'C': [0 for _ in range(13)],
'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input().split()
cards[s][int(r) - 1] = 1
print(data)
for s in ('S', 'H', 'C', 'D']:
for r in range(13... | File "/tmp/tmp_8660u8_/tmpjnhkjkjw.py", line 14
for s in ('S', 'H', 'C', 'D']:
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
| |
s274746193 | p02408 | u389610071 | 1438569060 | Python | Python3 | py | Runtime Error | 0 | 0 | 398 | cards = {
'S': [0 for _ in range(13)],
'H': [0 for _ in range(13)],
'C': [0 for _ in range(13)],
'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input().split()
cards[s][int(r) - 1] = 1
print(data)
for s in ('S', 'H', 'C', 'D'):
for r in range(13... | File "/tmp/tmp2mb9eap7/tmpin_0tudz.py", line 17
print('{0:s} {1:d}.format(s, r+1))
^
SyntaxError: unterminated string literal (detected at line 17)
| |
s944166000 | p02408 | u389610071 | 1438569210 | Python | Python3 | py | Runtime Error | 0 | 0 | 393 | cards = {
'S': [0 for _ in range(13)],
'H': [0 for _ in range(13)],
'C': [0 for _ in range(13)],
'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input().split()
cards[s][r - 1] = r
print(data)
for s in ('S', 'H', 'C', 'D'):
for r in range(13):
... | File "/tmp/tmpt_g8ctas/tmp2dyo6s93.py", line 17
print('{0:s} {1:d}.format(s, r+1))
^
SyntaxError: unterminated string literal (detected at line 17)
| |
s034058075 | p02408 | u389610071 | 1438569263 | Python | Python3 | py | Runtime Error | 0 | 0 | 408 | cards = {
'S': [0 for _ in range(13)],
'H': [0 for _ in range(13)],
'C': [0 for _ in range(13)],
'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input().split()
r = int(r)
cards[s][r - 1] = r
print(data)
for s in ('S', 'H', 'C', 'D'):
for r i... | File "/tmp/tmpbwj1stjw/tmp784_61rn.py", line 18
print('{0:s} {1:d}.format(s, r+1))
^
SyntaxError: unterminated string literal (detected at line 18)
| |
s561003208 | p02408 | u389610071 | 1438569338 | Python | Python3 | py | Runtime Error | 0 | 0 | 409 | cards = {
'S': [0 for _ in range(13)],
'H': [0 for _ in range(13)],
'C': [0 for _ in range(13)],
'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input().split()
r = int(r)
cards[s][r - 1] = r
print(data)
for s in ('S', 'H', 'C', 'D'):
for r i... | Traceback (most recent call last):
File "/tmp/tmpnqki6nb_/tmpe48ci5io.py", line 8, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s935699259 | p02408 | u446066125 | 1439130850 | Python | Python3 | py | Runtime Error | 0 | 0 | 408 | cards = {
'S':[0 for _ in range(13)],
'H':[0 for _ in range(13)],
'C':[0 for _ in range(13)],
'D':[0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input().split()
r = int(r)
cards[s][r - 1] = r
for s in ( 'S', 'H', 'C', 'D'):
for r in ... | Traceback (most recent call last):
File "/tmp/tmpmdb3re92/tmpqe4usqkt.py", line 8, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s073682758 | p02408 | u389610071 | 1439169240 | Python | Python3 | py | Runtime Error | 0 | 0 | 454 | data = [
[
[
0 for r in range(10)
] for f in range(3)
] for b in range(4)
]
n = int(input())
for _ in range(n):
(b, f, r, v) = [int(i) for i in input().split()]
data[b - 1][f - 1][r - 1] += v
for b in range(4):
for f in range(3):
for r in r... | Traceback (most recent call last):
File "/tmp/tmpr1yrfc9z/tmp1wcsilsh.py", line 9, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s871168451 | p02408 | u389610071 | 1439169296 | Python | Python3 | py | Runtime Error | 0 | 0 | 454 | data = [
[
[
0 for r in range(10)
] for f in range(3)
] for b in range(4)
]
n = int(input())
for s in range(n):
(b, f, r, v) = [int(i) for i in input().split()]
data[b - 1][f - 1][r - 1] += v
for b in range(4):
for f in range(3):
for r in r... | Traceback (most recent call last):
File "/tmp/tmpks59mpen/tmp63m_xllt.py", line 9, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s187933803 | p02408 | u389610071 | 1439169380 | Python | Python3 | py | Runtime Error | 0 | 0 | 455 | data = [
[
[
0 for r in range(10)
] for f in range(3)
] for b in range(4)
]
n = int(input())
for _ in range(n):
(b, f, r, v) = [int(i) for i in input().split()]
data[b - 1][f - 1][r - 1] += v
for b in range(4):
for f in range(3):
for r in r... | Traceback (most recent call last):
File "/tmp/tmpvo6ogivc/tmpj08z2e0l.py", line 9, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s116409253 | p02408 | u938745275 | 1439824501 | Python | Python | py | Runtime Error | 0 | 0 | 805 | n = int(raw_input())
i = 0
s = []
h = []
c = []
d = []
def order_list(list):
l = len(list)
for i in xrange(l):
j = i + 1
while j < l:
if list[i] > list[j]:
temp = list[i]
list[i] = list[j]
list[j] = temp
j += 1
return list
def not_enough_cards(mark, list):
list = ... | File "/tmp/tmpom8vo0r2/tmpxbjjs9gt.py", line 27
print mark + " " + str(x)
^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s578039429 | p02408 | u473077745 | 1439860511 | Python | Python3 | py | Runtime Error | 0 | 0 | 341 | cards = {
'S': [0 for - in range(13)],
'H': [0 for - in range(13)],
'C': [0 for - in range(13)],
'D': [0 for - in range(13)],
}
n = int(input())
for _ in range(n):
(s, r) = input().split()
cards[s][int(r) - 1] = 1
for s in ('S' 'H' 'C' 'D'):
(s, r) = input().split()
card... | File "/tmp/tmpe4tr5wd5/tmpqkmc7xos.py", line 2
'S': [0 for - in range(13)],
^
SyntaxError: invalid syntax
| |
s718918926 | p02408 | u389610071 | 1440638798 | Python | Python3 | py | Runtime Error | 0 | 0 | 564 | 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):
hd,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 '
for i in range(13):
if s... | File "/tmp/tmpfc0xi3s8/tmp_kwlp34d.py", line 21
print a +str(s[i])
^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s756803097 | p02408 | u627893595 | 1443599403 | Python | Python3 | py | Runtime Error | 0 | 0 | 676 | ?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include<stdio.h>
int main()
{
int n;
scanf("%d", &n);
int i, rank;
char sym;
int card[4][14] = {0};
for (i = 1; i <= n; ... | File "/tmp/tmp7df98p0l/tmpzjzh4m4z.py", line 1
?
^
SyntaxError: invalid syntax
| |
s933151122 | p02408 | u775586391 | 1447818606 | Python | Python3 | py | Runtime Error | 0 | 0 | 161 | l = [x+' '+y for x in ['S','H','C','D'] for y in [str(i) for i in range(1,14)]]
n = int(input())
while n > 0:
l.remove(input())
n += 1
for i in l:
print(i) | Traceback (most recent call last):
File "/tmp/tmpe6lf4wys/tmpx16d6r41.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s033624846 | p02408 | u047737909 | 1454685385 | Python | Python | py | Runtime Error | 0 | 0 | 256 | num = int(input())
cards = list()
for i in range(num):
cards.append(input())
sort = ['S', 'H', 'C', 'D']
nums = [str(i) for i in range(1, 14)]
for p in sort:
for n in nums:
c = p+' '+n
if not c in cards:
print(c) | Traceback (most recent call last):
File "/tmp/tmpnpsiamcr/tmpaif_yua7.py", line 1, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s458092026 | p02408 | u047737909 | 1454685394 | Python | Python | py | Runtime Error | 0 | 0 | 256 | num = int(input())
cards = list()
for i in range(num):
cards.append(input())
sort = ['S', 'H', 'C', 'D']
nums = [str(i) for i in range(1, 14)]
for p in sort:
for n in nums:
c = p+' '+n
if not c in cards:
print(c) | Traceback (most recent call last):
File "/tmp/tmpyksoe6ql/tmp4r6iyvfe.py", line 1, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s641022784 | p02408 | u724923896 | 1454987576 | Python | Python | py | Runtime Error | 0 | 0 | 434 | 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 = map(int,raw_input()split())
if mk == 'S':
S[str(num)-1] = 0
elif mk == 'H':
S[str(num)-1] = 0
elif mk == 'C':
S[str(num)-1] = 0
elif mk == 'D':
... | File "/tmp/tmpz9pr_9dw/tmpeeozghn2.py", line 9
mk, num = map(int,raw_input()split())
^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s783021076 | p02408 | u724923896 | 1454987981 | Python | Python | py | Runtime Error | 0 | 0 | 549 | 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 = map(int,raw_input()split())
if mk == 'S':
S[str(num)-1] = 0
elif mk == 'H':
S[str(num)-1] = 0
elif mk == 'C':
S[str(num)-1] = 0
elif mk == 'D':
... | File "/tmp/tmpesb93jb9/tmpdlzmxyb2.py", line 9
mk, num = map(int,raw_input()split())
^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s659962377 | p02408 | u724923896 | 1454988193 | Python | Python | py | Runtime Error | 0 | 0 | 571 | 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[str(num)-1] = 0
elif mk == 'H':
S[str(num)-1] = 0
elif mk == 'C':
S[str(num)-1] = 0
elif mk == 'D':
S[st... | File "/tmp/tmpjrcovod1/tmpqq1h01wa.py", line 9
mk, num = raw_input()split()
^^^^^
SyntaxError: invalid syntax
| |
s999055984 | p02408 | u724923896 | 1454988335 | Python | Python | py | Runtime Error | 0 | 0 | 569 | 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 = raw_input()split()
num = int, raw_input()split()
if mk == 'S':
S[r-1] = 0
elif mk == 'H':
S[r-1] = 0
elif mk == 'C':
S[r-1] = 0
elif mk == 'D':
... | File "/tmp/tmp391dgezf/tmp6r41dn5i.py", line 9
mk = raw_input()split()
^^^^^
SyntaxError: invalid syntax
| |
s849995445 | p02408 | u724923896 | 1454988388 | Python | Python | py | Runtime Error | 0 | 0 | 583 | 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 = raw_input()split()
num = int, raw_input()split()
if mk == 'S':
S[num-1] = 0
elif mk == 'H':
S[num-1] = 0
elif mk == 'C':
S[num-1] = 0
elif mk == '... | File "/tmp/tmpd2s8k8q3/tmp72_d0abz.py", line 9
mk = raw_input()split()
^^^^^
SyntaxError: invalid syntax
| |
s202349342 | p02408 | u724923896 | 1454988542 | Python | Python | py | Runtime Error | 0 | 0 | 593 | 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 = raw_input()split()
num = int, raw_input()split()
if mk == 'S':
S[num-1] = 0
elif mk == 'H':
H[num-1] = 0
elif mk == 'C':
C[num-1] = 0
elif mk ==... | File "/tmp/tmp03apoi5w/tmpeh6rysxu.py", line 9
mk = raw_input()split()
^^^^^
SyntaxError: invalid syntax
| |
s969135613 | p02408 | u724923896 | 1454988902 | Python | Python | py | Runtime Error | 0 | 0 | 645 | 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 = raw_input()split()
num = int, raw_input()split()
if mk == 'S':
S[num-1] = 0
elif mk == 'H':
H[num-1] = 0
elif mk == 'C':
C[num-1] = 0
elif mk ... | File "/tmp/tmp1tbl1f4p/tmpedbt1_k8.py", line 9
mk = raw_input()split()
^^^^^
SyntaxError: invalid syntax
| |
s877293084 | p02408 | u724923896 | 1454989045 | Python | Python | py | Runtime Error | 0 | 0 | 643 | 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/tmpbq6_74ai/tmp18uknd6r.py", line 9
mk, num = raw_input()split()
^^^^^
SyntaxError: invalid syntax
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.