Notice
Recent Posts
Recent Comments
Link
«   2025/11   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Archives
Today
Total
관리 메뉴

DANIELOGIC

[Python] 백준 11557번 Yangjojang of The Year 본문

Algorithm/백준

[Python] 백준 11557번 Yangjojang of The Year

daniel; 2024. 6. 23. 17:52

[Python] 백준 11557번 Yangjojang of The Year

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

문제

코드

t1 = int(input())
for i in range(t1):
    t2 = int(input())
    name = []
    num = []
    for x in range(t2):
        a, b = input().split()
        name.append(a)
        num.append(int(b))
    print(name[num.index(max(num))])

 

'Algorithm > 백준' 카테고리의 다른 글

[Python] 백준 5635번 생일  (0) 2024.06.23
[Python] 백준 1977번 완전제곱수  (0) 2024.06.23
[Python] 백준 7567번 그릇  (0) 2024.06.23
[Python] 백준 2884번 알람 시계  (0) 2024.06.23
[Python] 백준 2754번 학점계산  (0) 2024.06.23