http://codeup.kr/problem.php?id=1420
Codeup 1420 - 3등 찾기
n = int(input())hash_record = {}for i in range(0, n): name, score = input().split() hash_record[name] = int(score)data = sorted(hash_record.items(), key=lambda t: t[1], reverse=True)print(data[2][0])
'알고리즘 문제 풀기 > Codeup' 카테고리의 다른 글
| Codeup 1430 - 기억력 테스트 2 (0) | 2019.03.12 |
|---|---|
| Codeup 1425 - 자리 배치 (0) | 2019.03.12 |
| Codeup 1419 - love 2 (0) | 2019.03.11 |
| Codeup 1418 - t를 찾아라 (0) | 2019.03.10 |
| Codeup 1417 - 범인을 잡아라 2 (0) | 2019.03.10 |