-Code
dic = {
"S": [],
"B": [],
"V": [],
"K": []
}
for _ in range(51):
word, num = input().split()
dic[word].append(int(num))
for word in dic:
for n in range(1, 14):
if n not in dic[word]:
print(word, n)
exit()
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 30684번 모르고리즘 회장 정하기 (1) | 2023.11.20 |
---|---|
[백준/파이썬] 30676번 이 별은 무슨 색일까 (0) | 2023.11.19 |
[백준/파이썬] 26432번 Walktober (0) | 2023.11.17 |
[백준/파이썬] 12352번 Hedgemony (Large) (0) | 2023.11.16 |
[백준/파이썬] 7181번 Mõttemeister (0) | 2023.11.15 |