728x90
반응형
단순 정렬 문제이다.
for _ in range(int(input())):
N = int(input())
li = [input().split() for _ in range(N)]
li.sort(key=lambda x:int(x[1]))
print(li[-1][0])
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 11724번 연결 요소의 개수(python) (0) | 2021.03.11 |
---|---|
백준 알고리즘 1302번 베스트셀러(python) (0) | 2021.03.11 |
백준 알고리즘 4963번 섬의 개수(python) (0) | 2021.03.10 |
백준 알고리즘 2583번 영역 구하기(python) (0) | 2021.03.10 |
백준 알고리즘 2468번 안전 영역(python) (0) | 2021.03.10 |