본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 7280번 Kortos

by 현장 2023. 11. 18.

-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()