Beakjoon&프로그래머스/파이썬
[백준/파이썬] 11098번 첼시를 도와줘!
현장
2022. 2. 18. 17:02
-코드
for _ in range(int(input())):
cost = 0
result = ''
for _ in range(int(input())):
c, name = input().split()
if int(c) > cost:
cost = int(c)
result = name
print(result)