DANIELOGIC
[Python] 백준 11557번 Yangjojang of The Year 본문
[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 |