[백준/Python] 11098 - 첼시를 도와줘!

orangesnail·2025년 3월 7일

백준

목록 보기
55/169

https://www.acmicpc.net/problem/11098


11557번 양조장이랑 거의 똑같다!

n = int(input())

for _ in range(n):
    p = int(input())
    players = {}

    for _ in range(p):
        c, name = input().split()

        players[name] = int(c)

    expensive = max(players, key=players.get)
    print(expensive)
profile
초보입니다. 피드백 환영합니다 😗

0개의 댓글