Skip to content

Commit

Permalink
Create 11557.py
Browse files Browse the repository at this point in the history
  • Loading branch information
park1997 committed Apr 19, 2022
1 parent ab4885a commit c6eb42f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BOJ_11xxx/11557.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Yangjojang of The Year
for i in range(int(input())):
dic = {}
for j in range(int(input())):
name, quantity = map(str,input().split())
dic[name] = int(quantity)
dic = sorted(dic.items(), key=lambda x: x[1], reverse=True)
print(dic[0][0])

0 comments on commit c6eb42f

Please sign in to comment.