s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s855553889 | p02408 | u724923896 | 1454989164 | Python | Python | py | Runtime Error | 0 | 0 | 650 | n = input()
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
for i in range(0, n):
mk, num = raw_input().split()
if mk == 'S':
S[int(num)-1] = 0
elif mk == 'H':
H[int(num)-1] = 0
elif mk == 'C':
C[int(num)-1] = 0
elif mk == 'D':
... |
s814722001 | p02408 | u724923896 | 1454989307 | Python | Python | py | Runtime Error | 0 | 0 | 806 | n = input()
??????????????????
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
??????????????????
for i in range(0, n):
??????mk, num = raw_input().split()
????????????if mk == 'S':
??????????????????S[int(num)-1] = 0
????????????elif mk == 'H':
??????????????????H[int(num)-1] = 0
????????????elif m... |
s778158152 | p02408 | u724923896 | 1454989484 | Python | Python | py | Runtime Error | 0 | 0 | 605 | n = input()
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
for i in range(0, n):
mk, num = raw_input().split()
if mk == 'S':
S[int(num)-1] = 0
elif mk == 'H':
H[int(num)-1] = 0
elif mk == 'C':
C[int(num)-1] = 0
elif mk == 'D':
D[int(n... |
s745422740 | p02408 | u724923896 | 1454990060 | Python | Python | py | Runtime Error | 0 | 0 | 589 | n = input()
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
for i in range(0, n):
m, n = raw_input().split()
if m == 'S':
S[int(n)-1] = 0
elif m == 'H':
H[int(n)-1] = 0
elif m == 'C':
C[int(n)-1] = 0
elif m == 'D':
D[int(n)-1] = 0
f... |
s608567168 | p02408 | u724923896 | 1454990183 | Python | Python | py | Runtime Error | 0 | 0 | 595 | n = input()
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
for i in range(0, n):
m, k = raw_input().split()
if m == 'S':
S[int(k)-1] = 0
elif m == 'H':
H[int(k)-1] = 0
elif m == 'C':
C[int(k)-1] = 0
elif m == 'D':
D[int(k)-1] = 0
... |
s431767850 | p02408 | u724923896 | 1454990483 | Python | Python | py | Runtime Error | 0 | 0 | 548 | n=input()
S=range(1,14)
H=range(1,14)
C=range(1,14)
D=range(1,14)
for i in range(n):
m, k=raw_input().split()
if m == 'S':
S[int(k)-1] = 0
elif m == 'H':
H[int(k)-1] = 0
elif m == 'C':
C[int(k)-1] = 0
elif m == 'D':
D[int(k)-1] = 0
for i in range(0, 13):
if S[i] != 0:
... |
s198099998 | p02408 | u233232390 | 1455001269 | Python | Python | py | Runtime Error | 0 | 0 | 605 | n = int(raw_input())
s = range(1,14)
h = range(1,14)
c = range(1,14)
d = range(1,14)
for i in range(n):
r = raw_input().split()
if hd == 'S':
s[int(r)-1] = 0
elif hd == 'H':
h[int(r)-1] = 0
elif hd == 'C':
c[int(r)-1] = 0
elif hd == 'D':
d[int(r)-1] = 0
a = 'S'
fo... |
s368037970 | p02408 | u532962080 | 1455014601 | Python | Python | py | Runtime Error | 0 | 0 | 623 | n = input()
S = ['S 1','S 2','S 3','S 4','S 5','S 6','S 7','S 8','S 9','S 10','S 11','S 12','S 13']
H = ['H 1','H 2','H 3','H 4','H 5','H 6','H 7','H 8','H 9','H 10','H 11','H 12','H 13']
C = ['C 1','C 2','C 3','C 4','C 5','C 6','C 7','C 8','C 9','C 10','C 11','C 12','C 13']
D = ['D 1','D 2','D 3','D 4','D 5','D 6','D... |
s982159338 | p02408 | u974554153 | 1455018153 | Python | Python | py | Runtime Error | 0 | 0 | 306 |
S=[0]*13
H=[0]*13
C=[0]*13
D=0]*13
CARD={}
CARD['S']=S
CARD['H']=H
CARD['C']=C
CARD['D']=D
n=input()
for_in xrange(n):
x=raw_input().split()
(CARD[x[0]])[int(x[1])-1]=1
for suit in ['S','H','C','D']:
for i in xrange(13):
if(CARD[card])[i]==0:
print'%s %d'%(card,i+1) |
s468360696 | p02408 | u974554153 | 1455018170 | Python | Python | py | Runtime Error | 0 | 0 | 309 |
S=[0]*13
H=[0]*13
C=[0]*13
D=[0]*13
CARD={}
CARD['S']=S
CARD['H']=H
CARD['C']=C
CARD['D']=D
n=input()
for _ in xrange(n):
x=raw_input().split()
(CARD[x[0]])[int(x[1])-1]=1
for suit in ['S','H','C','D']:
for i in xrange(13):
if(CARD[card])[i]==0:
print'%s %d'%(card,i+1) |
s506881575 | p02408 | u974554153 | 1455018213 | Python | Python | py | Runtime Error | 0 | 0 | 309 | S=[0]*13
H=[0]*13
C=[0]*13
D=[0]*13
CARD={}
CARD['S']=S
CARD['H']=H
CARD['C']=C
CARD['D']=D
n=input()
for _ in xrange(n):
x=raw_input().split()
(CARD[x[0]])[int(x[1])-1]=1
for suit in ['S','H','C','D']:
for i in xrange(13):
if(CARD[card])[i]==0:
print'%s %d' % (card,i+1) |
s270564514 | p02408 | u974554153 | 1455018280 | Python | Python | py | Runtime Error | 0 | 0 | 309 | S=[0]*13
H=[0]*13
C=[0]*13
D=[0]*13
CARD={}
CARD['S']=S
CARD['H']=H
CARD['C']=C
CARD['D']=D
n=input()
for _ in xrange(n):
x=raw_input().split()
(CARD[x[0]])[int(x[1])-1]=1
for suit in ['S','H','C','D']:
for i in xrange(13):
if(CARD[card])[i]==0:
print'%s %d' % (card,i+1) |
s123117907 | p02408 | u974554153 | 1455018341 | Python | Python | py | Runtime Error | 0 | 0 | 330 | S=[0] * 13
H=[0] * 13
C=[0] * 13
D=[0] * 13
CARD={}
CARD['S'] = S
CARD['H'] =H
CARD['C'] = C
CARD['D']= D
n=input()
for _ in xrange(n):
x = raw_input().split()
(CARD[x[0]])[int(x[1])-1] = 1
for suit in ['S','H','C','D']:
for i in xrange(13):
if(CARD[card])[i] == 0:
print'%s %d' % ... |
s059058385 | p02408 | u619765879 | 1455019448 | Python | Python | py | Runtime Error | 0 | 0 | 584 | n = input()
#a,b = map(str,raw_input().split())
a = [raw_input() for i in range(n)]
j=0
for i in range(1,53):
for j in range(n);
if a[j] == 'S %s' % i:
continue
elif j==n-1:
print 'S %s' % i
or i in range(1,53):
for j in range(n);
if a[j] == 'H %s' % i:
continue
elif j==n-1:
... |
s795691161 | p02408 | u834416077 | 1455020569 | Python | Python | py | Runtime Error | 0 | 0 | 266 | n = int(raw_input())
card = {"S":[0]*13, "H":[0]*13, "C":[0]*13, "D":[0]*13}
for i in range(n):
mark, nums = raw_input().split()
deck[mark][nums] = 1
for i in ["S", "H", "C", "D"]:
for j in range(13):
if deck[i][j] == 0:
print "%s %d" % (i, j+1) |
s146443453 | p02408 | u834416077 | 1455020720 | Python | Python | py | Runtime Error | 0 | 0 | 269 | n = int(raw_input())
card = {"S":[0]*13, "H":[0]*13, "C":[0]*13, "D":[0]*13}
for i in range(n):
mark, nums = raw_input().split()
deck[mark][nums] = 1
for i in ["S", "H", "C", "D"]:
for j in range(0,13):
if deck[i][j] == 0:
print "%s %d" % (i, j+1) |
s526912555 | p02408 | u834416077 | 1455020790 | Python | Python | py | Runtime Error | 0 | 0 | 269 | n = int(raw_input())
card = {"S":[0]*13, "H":[0]*13, "C":[0]*13, "D":[0]*13}
for i in range(n):
mark, nums = raw_input().split()
deck[mark][nums-1] = 1
for i in ["S", "H", "C", "D"]:
for j in range(13):
if deck[i][j] == 0:
print "%s %d" % (i, j+1) |
s731588908 | p02408 | u834416077 | 1455020816 | Python | Python | py | Runtime Error | 0 | 0 | 274 | n = int(raw_input())
card = {"S":[0]*13, "H":[0]*13, "C":[0]*13, "D":[0]*13}
for i in range(n):
mark, nums = raw_input().split()
deck[mark][int(nums)-1] = 1
for i in ["S", "H", "C", "D"]:
for j in range(13):
if deck[i][j] == 0:
print "%s %d" % (i, j+1) |
s367175591 | p02408 | u253463900 | 1455022966 | Python | Python3 | py | Runtime Error | 0 | 0 | 593 | S = []
H = []
C = []
D = []
n = int(input())
for i in range(n):
mark, num = [x for x in input().split()]
if mark == 'S':
S.append(int(num))
elif mark == 'H':
H.append(int(num))
elif mark == "C":
C.append(int(num))
else: #D
D.append(int(num))
for i in range(1,14)... |
s516627885 | p02408 | u630265299 | 1455025595 | Python | Python | py | Runtime Error | 0 | 0 | 256 | n = input()
data = []
for i in ['H', 'C', 'S', 'D']:
for j in ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13']:
data.append(i + j)
for i in range(n):
data.remove(raw_input())
for i in range(len(data)):
print data[i] |
s073237705 | p02408 | u630265299 | 1455025602 | Python | Python | py | Runtime Error | 0 | 0 | 256 | n = input()
data = []
for i in ['H', 'C', 'S', 'D']:
for j in ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13']:
data.append(i + j)
for i in range(n):
data.remove(raw_input())
for i in range(len(data)):
print data[i] |
s962826457 | p02408 | u630265299 | 1455026192 | Python | Python | py | Runtime Error | 0 | 0 | 216 | n = input()
data = []
for i in ['S', 'H', 'C', 'D']:
for j in map(str , xrange(1, 14)):
data.append(i + j)
for i in xrange(n):
data.remove(raw_input())
for i in xrange(len(data)):
print data[i] |
s176609419 | p02408 | u630265299 | 1455026217 | Python | Python | py | Runtime Error | 0 | 0 | 223 | n = input()
data = []
a = []
for i in ['S', 'H', 'C', 'D']:
for j in map(str , xrange(1, 14)):
data.append(i + j)
for i in xrange(n):
data.remove(raw_input())
for i in xrange(len(data)):
print data[i] |
s751425914 | p02408 | u630265299 | 1455026290 | Python | Python | py | Runtime Error | 0 | 0 | 224 | n = input()
data = []
a = []
for i in ['D', 'C', 'H', 'S']:
for j in map( str , xrange(1, 14)):
data.append(i + j)
for i in xrange(n):
data.remove(raw_input())
for i in xrange(len(data)):
print data[i] |
s890451850 | p02408 | u663227983 | 1455028787 | Python | Python | py | Runtime Error | 0 | 0 | 687 | # coding: utf-8
# Here your code !
S =[i+1 for i in xrange(13)]
H =[i+1 for i in xrange(13)]
C =[i+1 for i in xrange(13)]
D =[i+1 for i in xrange(13)]
#[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
n = input()
for i in xrange(n):
c, a = raw_input().split()
if c == "S":
del S[int(a)-1]
elif c == "H":... |
s194346709 | p02408 | u663227983 | 1455028804 | Python | Python | py | Runtime Error | 0 | 0 | 651 | S =[i+1 for i in xrange(13)]
H =[i+1 for i in xrange(13)]
C =[i+1 for i in xrange(13)]
D =[i+1 for i in xrange(13)]
#[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
n = input()
for i in xrange(n):
c, a = raw_input().split()
if c == "S":
del S[int(a)-1]
elif c == "H":
del H[int(a)-1]
... |
s261147774 | p02408 | u075836834 | 1457450760 | Python | Python3 | py | Runtime Error | 0 | 0 | 179 | n = int(input())
cards = []
for i in range(n):
s,r=input().split()
card.append((s,int(r)))
for s,r in [(s,r) for s in 'SHCD' for r in range(1,14) if not in cards]:
print(s,r)
|
s730947548 | p02408 | u075836834 | 1457450846 | Python | Python3 | py | Runtime Error | 0 | 0 | 180 | n = int(input())
cards = []
for i in range(n):
s,r=input().split()
cards.append((s,int(r)))
for s,r in [(s,r) for s in 'SHCD' for r in range(1,14) if not in cards]:
print(s,r)
|
s631295469 | p02408 | u146647066 | 1462099660 | Python | Python | py | Runtime Error | 0 | 0 | 394 | n=input()
S=[range(1,14) for j in range(4)]
for i in range(n):
ip=raw_input().split()
if ip[0]=='S':
S[0].remove(ip[1])
elif ip[0]=='H':
S[1].remove(ip[1])
elif ip[0]=='C':
S[2].remove(ip[1])
else :
S[3].remove(ip[1])
for i in S[0]:
print 'S '+i
for i in S[1]:
... |
s409830287 | p02408 | u762833208 | 1462171898 | Python | Python | py | Runtime Error | 0 | 0 | 608 | n = input()
s = []
h = []
c = []
d = []
for i in range(n):
card = raw_input().split(" ")
card[1] = int(card[1])
if card[0] == "S":
s.append(card[1])
if card[0] == "H":
h.append(card[1])
if card[0] == "C":
c.append(card[1])
if card[0] == "D":
d.append(card[1])
def sort_list(lst):
#make a tempor... |
s269797916 | p02408 | u762833208 | 1462173789 | Python | Python | py | Runtime Error | 0 | 0 | 608 | n = input()
s = []
h = []
c = []
d = []
for i in range(n):
card = raw_input().split(" ")
card[1] = int(card[1])
if card[0] == "S":
s.append(card[1])
if card[0] == "H":
h.append(card[1])
if card[0] == "C":
c.append(card[1])
if card[0] == "D":
d.append(card[1])
def sort_list(lst):
#make a tempor... |
s407655914 | p02408 | u762833208 | 1462176080 | Python | Python | py | Runtime Error | 0 | 0 | 242 | n = input()
d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13}
for i in range(n):
x, y = raw_input().split()
d[x][int(y)-1] = True
for k in ["S","H","C","D"]:
for i in range(13):
if not d[k][i]:
print ("%s %d"%(k, i+1)) |
s482966380 | p02408 | u762833208 | 1462176378 | Python | Python | py | Runtime Error | 0 | 0 | 246 | n = input()
d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13}
for i in range(n):
x, y = raw_input().split()
d[x][int(y)-1] = True
for k in ["S","H","C","D"]:
for i in range(13):
if d[k][i] == True:
print ("%s %d"%(k, i+1)) |
s913816058 | p02408 | u762833208 | 1462176402 | Python | Python | py | Runtime Error | 0 | 0 | 238 | n = input()
d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13}
for i in range(n):
x, y = raw_input().split()
d[x][int(y)-1] = True
for k in ["S","H","C","D"]:
for i in range(13):
if d[k][i]:
print ("%s %d"%(k, i+1)) |
s694073265 | p02408 | u762833208 | 1462177345 | Python | Python | py | Runtime Error | 0 | 0 | 250 | n = input()
d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13}
for i in range(n):
x, y = raw_input().split()
d[x][int(y)-1] = True
for k in ["S","H","C","D"]:
for i in range(13):
if d[k][i]:
continue
print ("%s %d"%(k, i+1)) |
s553362183 | p02408 | u762833208 | 1462180993 | Python | Python | py | Runtime Error | 0 | 0 | 290 | n = int(raw_input)
lst = []
#store all the cards
for i in ["S","H","C","D"]:
for j in xrange(1,14):
lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
a = raw_input()
if a in lst:
lst.remove(a)
#print the result
for i in xrange(0,len(lst)):
print a[i] |
s237823716 | p02408 | u762833208 | 1462181023 | Python | Python | py | Runtime Error | 0 | 0 | 292 | n = int(raw_input)
lst = []
#store all the cards
for i in ["S","H","C","D"]:
for j in xrange(1,14):
lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
a = raw_input()
if a in lst:
lst.remove(a)
#print the result
for i in xrange(0,len(lst)):
print lst[i] |
s595869473 | p02408 | u762833208 | 1462181080 | Python | Python | py | Runtime Error | 0 | 0 | 277 | n = int(raw_input)
lst = []
#store all the cards
for i in ["S","H","C","D"]:
for j in xrange(1,14):
lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
a = raw_input()
lst.remove(a)
#print the result
for i in xrange(0,len(lst)):
print lst[i] |
s038861575 | p02408 | u762833208 | 1462181406 | Python | Python | py | Runtime Error | 0 | 0 | 279 | n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
for j in xrange(1,14):
lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
a = raw_input()
lst.remove(a)
#print the result
for i in xrange(0,len(lst)):
print lst[i] |
s762301040 | p02408 | u762833208 | 1462181434 | Python | Python | py | Runtime Error | 0 | 0 | 257 | n = int(raw_input)
lst = []
#store all the cards
for i in ["S","H","C","D"]:
for j in xrange(1,14):
lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
a = raw_input()
lst.remove(a)
#print the result
for i in lst:
print i |
s356318299 | p02408 | u762833208 | 1462181442 | Python | Python | py | Runtime Error | 0 | 0 | 259 | n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
for j in xrange(1,14):
lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
a = raw_input()
lst.remove(a)
#print the result
for i in lst:
print i |
s617130640 | p02408 | u587193722 | 1469634815 | Python | Python3 | py | Runtime Error | 0 | 0 | 627 | S = []
H = []
C = []
D = []
for i in (S, H, C, D):
for k in range(1, 13+1):
i.append(k)
for u in range(0, int(input())):
x, y = (i for i in input().split())
if x == "S":
S.remove(int(y))
elif x == "H":
H.remove(int(y))
elif x == "C":
H.remove(int(y))
els... |
s863462096 | p02408 | u264632995 | 1469684912 | Python | Python3 | py | Runtime Error | 0 | 0 | 202 | data = [
"{0} {1}".format(s, r)
for s in ('S', 'H', 'C', 'D')
for r in range(1, 13 + 1)
]
count = int(input())
for c in range(count):
card = input()
data.remove(card)
print(dat |
s731001284 | p02408 | u498041957 | 1469685279 | Python | Python3 | py | Runtime Error | 0 | 0 | 209 | data = [
"{0} {1}".format(s,r)
for s in ('S', 'H', 'C', 'D')
for r in range(1, 13, + 1)
]
count = int(input())
for c in range()
card = input()
data.remove(card)
print("\n".join(data)) |
s779458538 | p02408 | u498041957 | 1469685414 | Python | Python3 | py | Runtime Error | 0 | 0 | 214 | data = [
"{0} {1}".format(s,r)
for s in ('S', 'H', 'C', 'D')
for r in range(1, 13, + 1)
]
count = int(input())
for c in range()
card = input()
data.remove(card)
for c in data:
print(c) |
s446024434 | p02408 | u498041957 | 1469685455 | Python | Python3 | py | Runtime Error | 0 | 0 | 220 | data = [
"{0} {1}".format(s,r)
for s in ('S', 'H', 'C', 'D')
for r in range(1, 13, + 1)
]
count = int(input())
for c in range(count):
card = input()
data.remove(card)
for c in data:
print(c) |
s077936565 | p02408 | u644636020 | 1469685465 | Python | Python3 | py | Runtime Error | 0 | 0 | 203 | data = ["{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1)]
count = int(input())
for c in range(count):
card = input()
data.remove(card)
for c in data:
print(c) |
s660150806 | p02408 | u498041957 | 1469685515 | Python | Python3 | py | Runtime Error | 0 | 0 | 221 | data = [
"{0} {1}".format(s, r)
for s in ('S', 'H', 'C', 'D')
for r in range(1, 13, + 1)
]
count = int(input())
for c in range(count):
card = input()
data.remove(card)
for c in data:
print(c) |
s404133529 | p02408 | u382316013 | 1469685525 | Python | Python3 | py | Runtime Error | 0 | 0 | 221 | data = [
"{0} {1}".format(s, r)
for s in ('S', 'H', 'C', 'D')]
for r in range(1, 13 + 1)
]
count = int(input())
for c in range(count):
card = input()
data.remove(card)
for c in data:
print(c) |
s400406082 | p02408 | u644636020 | 1469685536 | Python | Python3 | py | Runtime Error | 0 | 0 | 203 | data = ["{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1)]
count = int(input())
for c in range(count):
card = input()
data.remove(card)
for c in data:
print(c) |
s719641811 | p02408 | u644636020 | 1469685825 | Python | Python3 | py | Runtime Error | 0 | 0 | 203 | data = ["{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1)]
count = int(input())
for c in range(count):
card = input()
data.remove(card)
for c in data:
print(c) |
s147697076 | p02408 | u111053265 | 1474560283 | Python | Python3 | py | Runtime Error | 0 | 0 | 402 | N = int(input())
a = [input().split() for i in range(N)]
Set = {}
n = list(range(1,14))
Set['S'] = n.copy()
Set['H'] = n.copy()
Set['C'] = n.copy()
Set['D'] = n.copy()
for suit,num in a:
Set[suit].remove(num)
for i in Set['S']:
print("S {}".format(i))
for i in Set['H']:
print("H {}".format(i))
for i in Se... |
s099032220 | p02408 | u801346721 | 1476783374 | Python | Python3 | py | Runtime Error | 0 | 0 | 407 | n = int(input())
S = ['S']
H = ['H']
C = ['C']
D = ['D']
for i in range(0, n):
x = input().split()
if x[0] == 'S':
S.append(int(x[1])
elif x[0] == 'H':
H.append(int(x[1])
elif x[0] == 'C':
C.append(int(x[1])
else:
D.append(int(x[1])
def print(list):
list.sort()
for i in range(1, 14):
if i not in list:
... |
s214186353 | p02408 | u801346721 | 1476783726 | Python | Python3 | py | Runtime Error | 0 | 0 | 413 | n = int(input())
S = ['S']
H = ['H']
C = ['C']
D = ['D']
for i in range(0, n):
x = list(input().split())
if x[0] == 'S':
S.append(int(x[1])
elif x[0] == 'H':
H.append(int(x[1])
elif x[0] == 'C':
C.append(int(x[1])
else:
D.append(int(x[1])
def print(list):
list.sort()
for i in range(1, 14):
if i not in ... |
s654748578 | p02408 | u801346721 | 1476783828 | Python | Python3 | py | Runtime Error | 0 | 0 | 417 | n = int(input())
S = ['S']
H = ['H']
C = ['C']
D = ['D']
for i in range(0, n):
x = list(input().split())
if x[0] == 'S':
S.append(int(x[1]))
elif x[0] == 'H':
H.append(int(x[1]))
elif x[0] == 'C':
C.append(int(x[1]))
else:
D.append(int(x[1]))
def print(list):
list.sort()
for i in range(1, 14):
if i not... |
s628362793 | p02408 | u801346721 | 1476783882 | Python | Python3 | py | Runtime Error | 0 | 0 | 418 | n = int(input())
S = ['S']
H = ['H']
C = ['C']
D = ['D']
for i in range(0, n):
x = list(input().split())
if x[0] == 'S':
S.append(int(x[1]))
elif x[0] == 'H':
H.append(int(x[1]))
elif x[0] == 'C':
C.append(int(x[1]))
else:
D.append(int(x[1]))
def print(list):
list.sort()
for i in range(1, 14):
if i not... |
s333683871 | p02408 | u801346721 | 1476783899 | Python | Python3 | py | Runtime Error | 0 | 0 | 417 | n = int(input())
S = ['S']
H = ['H']
C = ['C']
D = ['D']
for i in range(0, n):
x = list(input().split())
if x[0] == 'S':
S.append(int(x[1]))
elif x[0] == 'H':
H.append(int(x[1]))
elif x[0] == 'C':
C.append(int(x[1]))
else:
D.append(int(x[1]))
def print(list):
list.sort()
for i in range(1, 14):
if i not... |
s082823632 | p02408 | u801346721 | 1476784133 | Python | Python3 | py | Runtime Error | 0 | 0 | 428 | n = int(input())
S = []
H = []
C = []
D = []
for i in range(0, n):
x = list(input().split())
if x[0] == 'S':
S.append(int(x[1]))
elif x[0] == 'H':
H.append(int(x[1]))
elif x[0] == 'C':
C.append(int(x[1]))
else:
D.append(int(x[1]))
def print(list, type):
list.sort()
for i in range(1, 14):
if i not in li... |
s042953786 | p02408 | u996758922 | 1477144870 | Python | Python3 | py | Runtime Error | 0 | 0 | 491 | my_cards = []
for i in range(n):
my_cards.append(input())
all_cards =[]
for i in range(13):
all_cards.append("S "+str(i+1))
for i in range(13):
all_cards.append("H "+str(i+1))
for i in range(13):
all_cards.append("C "+str(i+1))
for i in range(13):
all_cards.append("D "+str(i+1))
print(my_cards)
... |
s435040745 | p02408 | u996758922 | 1477144947 | Python | Python3 | py | Runtime Error | 0 | 0 | 474 | my_cards = []
for i in range(n):
my_cards.append(input())
all_cards =[]
for i in range(13):
all_cards.append("S "+str(i+1))
for i in range(13):
all_cards.append("H "+str(i+1))
for i in range(13):
all_cards.append("C "+str(i+1))
for i in range(13):
all_cards.append("D "+str(i+1))
lost_cards = []
f... |
s929484416 | p02408 | u236295012 | 1478000976 | Python | Python3 | py | Runtime Error | 0 | 0 | 763 | S = list('0'*13)
H = list('1'*13)
C = list('2'*13)
D = list('3'*13)
card_all = [S,H,C,D]
n = int(input())
for i in range(n):
card = input().split()
if card[0] == 'S':
card_all[0][int(card[1])-1] = int(card[1])
elif card[0] == 'H':
card_all[1][int(card[1])-1] = int(card[1])
elif card[0] ... |
s696255242 | p02408 | u236295012 | 1478001004 | Python | Python3 | py | Runtime Error | 0 | 0 | 763 | S = list('0'*13)
H = list('1'*13)
C = list('2'*13)
D = list('3'*13)
card_all = [S,H,C,D]
n = int(input())
for i in range(n):
card = input().split()
if card[0] == 'S':
card_all[0][int(card[1])-1] = int(card[1])
elif card[0] == 'H':
card_all[1][int(card[1])-1] = int(card[1])
elif card[0] ... |
s672975234 | p02408 | u236295012 | 1478001080 | Python | Python3 | py | Runtime Error | 0 | 0 | 751 | S = list('0'*13)
H = list('1'*13)
C = list('2'*13)
D = list('3'*13)
card_all = [S,H,C,D]
n = int(input())
for i in range(n):
card = input().split()
if card[0] == 'S':
card_all[0][int(card[1])-1] = int(card[1])
elif card[0] == 'H':
card_all[1][int(card[1])-1] = int(card[1])
elif card[0] ... |
s816551357 | p02408 | u236295012 | 1478001270 | Python | Python3 | py | Runtime Error | 0 | 0 | 751 | S = list('0'*13)
H = list('1'*13)
C = list('2'*13)
D = list('3'*13)
card_all = [S,H,C,D]
n = int(input())
for i in range(n):
card = input().split()
if card[0] == 'S':
card_all[0][int(card[1])-1] = int(card[1])
elif card[0] == 'H':
card_all[1][int(card[1])-1] = int(card[1])
elif card[0] ... |
s605745873 | p02408 | u236295012 | 1478001608 | Python | Python3 | py | Runtime Error | 0 | 0 | 751 | S = list('0'*13)
H = list('1'*13)
C = list('2'*13)
D = list('3'*13)
card_all = [S,H,C,D]
n = int(input())
for i in range(n):
card = input().split()
if card[0] == 'S':
card_all[0][int(card[1])-1] = int(card[1])
elif card[0] == 'H':
card_all[1][int(card[1])-1] = int(card[1])
elif card[0] ... |
s090035775 | p02408 | u236295012 | 1478001902 | Python | Python3 | py | Runtime Error | 0 | 0 | 751 | S = list('0'*13)
H = list('1'*13)
C = list('2'*13)
D = list('3'*13)
card_all = [S,H,C,D]
n = int(input())
for i in range(n):
card = input().split()
if card[0] == 'S':
card_all[0][int(card[1])-1] = int(card[1])
elif card[0] == 'H':
card_all[1][int(card[1])-1] = int(card[1])
elif card[0] ... |
s111192815 | p02408 | u236295012 | 1478001935 | Python | Python3 | py | Runtime Error | 0 | 0 | 751 | S = list('0'*13)
H = list('1'*13)
C = list('2'*13)
D = list('3'*13)
card_all = [S,H,C,D]
n = int(input())
for i in range(n):
card = input().split()
if card[0] == 'S':
card_all[0][int(card[1])-1] = int(card[1])
elif card[0] == 'H':
card_all[1][int(card[1])-1] = int(card[1])
elif card[0] ... |
s909770440 | p02408 | u222741219 | 1478786062 | Python | Python | py | Runtime Error | 0 | 0 | 411 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import fileinput
# ['S', 'H', 'C', 'D']
number = range(1, 52)
m_number = range(1, 4)
card = (m_number, number)
if __name__ == '__main__':
line = fileinput.input()
count = int(line)
for i in range(1, count):
line = fileinput.input()
tokens = l... |
s398769415 | p02408 | u285015144 | 1478947874 | Python | Python3 | py | Runtime Error | 0 | 0 | 403 | flag = [False] * 53
n = int(input())
for i in range(n):
c, n = map(str, input().split())
n = int(n)
if(c == "S"):
flag[n] = True
elif(c == "H"):
flag[13 + n] = True
elif(c == "C"):
flag[26 + n] = True
else:
flag[39 + n] = True
suit = ["S", "H", "C", "D"]
for i in ... |
s084028055 | p02408 | u082526811 | 1479003256 | Python | Python3 | py | Runtime Error | 0 | 0 | 397 | if __name__ == "__main__":
cords = {
'S': [ i+1 for i in range(13) ],
'H': [ i+1 for i in range(13) ],
'C': [ i+1 for i in range(13) ],
'D': [ i+1 for i in range(13) ]
}
num = int(input())
for i in range(num):
cha, number = input().split()
cards[cha][int(number)] = 0
for i in ('S','H','C','D'):
f... |
s629225654 | p02408 | u082526811 | 1479004693 | Python | Python3 | py | Runtime Error | 0 | 0 | 397 | if __name__ == "__main__":
cards = {
'S': [ i+1 for i in range(13) ],
'H': [ i+1 for i in range(13) ],
'C': [ i+1 for i in range(13) ],
'D': [ i+1 for i in range(13) ]
}
num = int(input())
for i in range(num):
cha, number = input().split()
cards[cha][int(number)] = 0
for i in ('S','H','C','D'):
f... |
s204265947 | p02408 | u082526811 | 1479004784 | Python | Python3 | py | Runtime Error | 0 | 0 | 397 | if __name__ == "__main__":
cards = {
'S': [ i+1 for i in range(13) ],
'H': [ i+1 for i in range(13) ],
'C': [ i+1 for i in range(13) ],
'D': [ i+1 for i in range(13) ]
}
num = int(input())
for i in range(num):
cha, number = input().split()
cards[cha][int(number)] = 0
for i in ('S','H','C','D'):
f... |
s759959076 | p02408 | u216804574 | 1479174256 | Python | Python3 | py | Runtime Error | 0 | 0 | 458 | n = int(input())
s_l = h_l = c_l = d_l = [1,2,3,4,5,6,7,8,9,10,11,12,13]
for i in range(0, n):
mark, num = input().split()
if mark == "S":
s_l.remove(int(num))
if mark == "H":
h_l.remove(int(num))
if mark == "C":
c_l.remove(int(num))
if mark == "D":
d_l.remove(int(num))
for s in s_l:
print... |
s832320395 | p02408 | u854978981 | 1479629611 | Python | Python3 | py | Runtime Error | 0 | 0 | 487 | s = range(1,14)
h = range(1,14)
c = range(1,14)
d = range(1,14)
n = int(input())
while n > 0:
x = input().split(' ')
if x[0] == 'S':
s[x[1]-1] = 0
elif x[0] == 'H':
h[x[1]-1] = 0
elif x[0] == 'C':
c[x[1]-1] = 0
elif x[0] == 'D':
d[x[1]-1] = 0
n -= 1
for t in s:
... |
s993209265 | p02408 | u870718588 | 1481169050 | Python | Python3 | py | Runtime Error | 0 | 0 | 413 | cards = [[False] * 14 for i in range(4)]
n = int(input())
for i in range(n):
suit, rank = input().split()
r = int(rank)
if suit == "S":
s == 0
elif suit == "H":
s == 1
elif suit == "C":
s == 2
else:
s == 3
cards[s][r] = True
name = ["S", "H", "C", "D"]
for s ... |
s465368817 | p02408 | u494314211 | 1481413293 | Python | Python3 | py | Runtime Error | 0 | 0 | 156 | l=[]
for mark in ["S","H","C","D"]:
for i in range(1,14):
l.append(mark+" "+str(i))
n=input()
for i in range(n):
l.remove(input())
for i in l:
print(i) |
s049160948 | p02408 | u494314211 | 1481413391 | Python | Python3 | py | Runtime Error | 0 | 0 | 156 | l=[]
for mark in ["S","H","C","D"]:
for i in range(1,14):
l.append(mark+" "+str(i))
n=input()
for i in range(n):
l.remove(input())
for i in l:
print(i) |
s043655477 | p02408 | u494314211 | 1481413678 | Python | Python3 | py | Runtime Error | 30 | 7600 | 179 | l=[]
for mark in ["S","H","C","D"]:
for i in range(1,14):
l.append(mark+" "+str(i))
n=input()
for i in range(int(n)):
l.remove(input())
for i in l[:-1]:
print(i)
print(l[-1]) |
s783490334 | p02408 | u513411598 | 1481726402 | Python | Python3 | py | Runtime Error | 0 | 0 | 362 | suits = {"S":0, "H":1, "C":2, "D":3}
cards = [[0 for i2 in range(13)] for i1 in ("S", "H", "C", "D")]
n = int(input())
for i in range(n):
(suit, rank) = input().split(" ")
cards[suits[suit]][int(rank)] = 1
for suit in ("S", "H", "C", "D"):
for number in range(13):
if cards[suits[suit]][number + 1]... |
s466935951 | p02408 | u957840591 | 1481903890 | Python | Python | py | Runtime Error | 0 | 0 | 251 | n=input()
s=c=h=d=range(1,14)
trump={'S':s,'C':c,'H':h,'D':d}
for i in range(n):
suit,num=raw_input().split()
num=int(num)
trump[suit].remove(num)
for suit in ['S','H','C','D']:
for num in trump[suit]:
print('%s %d'%(suit,num)) |
s875857913 | p02408 | u957840591 | 1481904243 | Python | Python | py | Runtime Error | 0 | 0 | 251 | n=input()
s=c=h=d=range(1,14)
trump={'S':s,'C':c,'H':h,'D':d}
for i in range(n):
suit,num=raw_input().split()
num=int(num)
trump[suit].remove(num)
for suit in ['S','H','C','D']:
for num in trump[suit]:
print('%s %d'%(suit,num)) |
s950917369 | p02408 | u957840591 | 1481905065 | Python | Python | py | Runtime Error | 0 | 0 | 251 | n=input()
s=c=h=d=range(1,14)
trump={'S':s,'C':c,'H':h,'D':d}
for i in range(n):
suit,num=raw_input().split()
num=int(num)
trump[suit].remove(num)
for suit in ['S','H','C','D']:
for num in trump[suit]:
print('%s %d'%(suit,num)) |
s279179390 | p02408 | u918276501 | 1484200651 | Python | Python3 | py | Runtime Error | 0 | 0 | 169 | l=[]
for x in ['S','H','C','D']:
for y in [str(i+1) for i in range(13)]:
l += [x+' '+y]
for n in range(input()):
l.remove(input())
for i in l:
print(i) |
s399720439 | p02408 | u918276501 | 1484200866 | Python | Python3 | py | Runtime Error | 0 | 0 | 173 | l=[]
for x in ['S','H','C','D']:
for y in [str(i+1) for i in range(13)]:
l += [x+' '+y]
for n in range(int(input()):
l.remove(input())
for i in l:
print(i) |
s721380831 | p02408 | u144068724 | 1486153903 | Python | Python3 | py | Runtime Error | 0 | 0 | 215 | cards = []
mark = ["S","H","C","D"]
for i in (mark):
for j in range(1,14):
cards.append( i + " " + str(j) )
print(cards)
n = int(input())
for i in range(n+1):
a = input()
cards.remove(a)
print(a) |
s840321153 | p02408 | u144068724 | 1486153935 | Python | Python3 | py | Runtime Error | 0 | 0 | 215 | cards = []
mark = ["S","H","C","D"]
for i in (mark):
for j in range(1,14):
cards.append( i + " " + str(j) )
print(cards)
n = int(input())
for i in range(n+1):
a = input()
cards.remove(a)
print(a) |
s173706126 | p02408 | u144068724 | 1486154008 | Python | Python3 | py | Runtime Error | 0 | 0 | 215 | cards = []
mark = ["S","H","C","D"]
for i in (mark):
for j in range(1,14):
cards.append( i + " " + str(j) )
print(cards)
n = int(input())
for i in range(n+1):
a = input()
cards.remove(a)
print(a) |
s705046445 | p02408 | u144068724 | 1486154111 | Python | Python3 | py | Runtime Error | 0 | 0 | 219 | cards = []
mark = ["S","H","C","D"]
for i in (mark):
for j in range(1,14):
cards.append( i + " " + str(j) )
print(cards)
n = int(input())
for i in range(n+1):
a = input()
cards.remove(a)
print(cards) |
s784032402 | p02408 | u104171359 | 1486437954 | Python | Python3 | py | Runtime Error | 0 | 0 | 552 | #!usr/bin/env python3
import sys
def main():
# s: spades
# h: hearts
# c: clubs
# d: diamonds
card_deck = {'S': [], 'H': [], 'C': [], 'D': []}
card_symbols = ['S', 'H', 'C', 'D']
lst = [card for card in sys.stdin.readline().split()]
card_deck[lst[0]].append(lst[1])
for key, valu... |
s931248077 | p02408 | u104171359 | 1486441641 | Python | Python3 | py | Runtime Error | 0 | 0 | 699 | #!usr/bin/env python3
import sys
def init_card_deck():
# S: spades
# H: hearts
# C: clubs
# D: diamonds
card_deck = {'S': [], 'H': [], 'C': [], 'D': []}
n = int(sys.stdin.readline())
for i in range(n):
lst = [card for card in sys.stdin.readline().split()]
card_deck[lst[0]... |
s940784436 | p02408 | u104171359 | 1486441676 | Python | Python3 | py | Runtime Error | 0 | 0 | 700 | #!usr/bin/env python3
import sys
def init_card_deck():
# S: spades
# H: hearts
# C: clubs
# D: diamonds
card_deck = {'S': [], 'H': [], 'C': [], 'D': []}
n = int(sys.stdin.readline())
for i in range(n):
lst = [card for card in sys.stdin.readline().split()]
card_deck[lst[0]... |
s278289265 | p02408 | u227438830 | 1487621631 | Python | Python3 | py | Runtime Error | 0 | 0 | 206 | n = int(input())
cards = []
for i in range(n):
s, a = input().split()
cards.append((s, a))
l = [(s, a) for s in "SHCD" and a in range(1,14) and (s,a)not in cards]
for b in l:
print(s + " " + a) |
s673404524 | p02408 | u024715419 | 1488262009 | Python | Python3 | py | Runtime Error | 0 | 0 | 200 | card = []
suit = ["S","H","C","D"]
for s in suit:
for i in range(1,14):
card.append(s + " " + str(i))
n = int(input())
for i in range(n)
card.remove(input())
for c in card:
print(c) |
s705489044 | p02408 | u343748576 | 1489389532 | Python | Python3 | py | Runtime Error | 0 | 0 | 636 | for i in range(52):
for j in range(1,5):
for k in range(1,14):
cardlist[i] = [j, k]
luckcard = []
num = int(input())
for i in range(num):
card[i] = [int(x) for x in input().split() if x.isdigit()]
count = 1
while True:
if card[i] == cardlist[count]:
break
... |
s199831080 | p02408 | u645985665 | 1494034915 | Python | Python3 | py | Runtime Error | 0 | 0 | 262 | n=int(input())
card={"S":[0]*13,"H":[0]*13,"C":[0]*13,"D":[0]*13}
for i in range(n):
mark, number = input().split()
card[mark][int(number)-1] = 1
for a in ("S","H","C","D"):
for b in range(13):
if cards[a][b] == 0:
print(a,b+1) |
s034726996 | p02408 | u213265973 | 1494391239 | Python | Python3 | py | Runtime Error | 0 | 0 | 443 | n = int(input())
cards = [s + " " + str(i) for i in range(1,14)] for s in ["S","H","C","D"]
for _ in range(n):
suit, num = input().split(" ")
if suit == "S":
cards[0][int(num) - 1] = 0
elif suit == "H":
cards[1][int(num) - 1] = 0
elif suit == "C":
cards[2][int(num) - 1] = 0
e... |
s706858781 | p02408 | u213265973 | 1494391428 | Python | Python3 | py | Runtime Error | 0 | 0 | 444 | n = int(input())
cards = [s + " " + str(i) for i in range(1,14)] for s in ["S","H","C","D"]]
for _ in range(n):
suit, num = input().split(" ")
if suit == "S":
cards[0][int(num) - 1] = 0
elif suit == "H":
cards[1][int(num) - 1] = 0
elif suit == "C":
cards[2][int(num) - 1] = 0
... |
s303528661 | p02408 | u440180827 | 1495986777 | Python | Python3 | py | Runtime Error | 0 | 0 | 612 | n = int(input())
cards = [[0 for i in range(13)] for j in range(4)]
n = int(input())
for i in range(n):
card = list(input().split())
card[1] = int(card[1])
if card[0] == 'S':
suit = 0
elif card[0] == 'H':
suit = 1
elif card[0] == 'C':
suit = 2
elif card[0] == 'D':
... |
s790040958 | p02408 | u440180827 | 1495987712 | Python | Python3 | py | Runtime Error | 0 | 0 | 520 | n = int(input())
cards = [[0 for i in range(13)] for j in range(4)]
s2n = {'S': 0, 'H': 1, 'C': 2, 'D': 3}
n2s = 'SHCD'
n = int(input())
for i in range(n):
card = list(input().split())
card[1] = int(card[1])
if card[0] == 'S':
suit = 0
elif card[0] == 'H':
suit = 1
elif card[0] == ... |
s425607062 | p02408 | u999594662 | 1496462827 | Python | Python3 | py | Runtime Error | 0 | 0 | 340 | c = {
'S' : [0 for _ in range(13)], ???H??? : [0 for _ in range(13)],
'C' : [0 for _ in range(13)], ???D??? : [0 for _ in range(13)]
}
x = int(input())
for _ in range(x):
(a, b) = input().split()
b = int(b)
c[a][b - 1] = b
for a in ('S', 'H', 'C', 'D'):
for b in range(13):
if c[a][b] == 0:
print('{0:s} {1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.