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

[백준/파이썬] 31994번 강당 대관

by 현장 2024. 6. 19.

-Code

dic = {}

for _ in range(7):
    name, cnt = input().split()
    dic[name] = int(cnt)

print(max(dic, key=dic.get))