https://www.acmicpc.net/problem/31994
1 2 3 4 5 6 7 8 9 | def sol(seminar_list): seminar_list.sort(key=lambda x: -int(x[1])) return seminar_list[0][0] if __name__ == '__main__': seminar_list = [input().split() for i in range(7)] print(sol(seminar_list)) | cs |
반응형
'python-algorithm' 카테고리의 다른 글
leetcode 1684. Count the Number of Consistent Strings (0) | 2024.09.12 |
---|---|
leetcode 3270. Find the Key of the Numbers (0) | 2024.09.02 |
백준 32025 체육은 수학과목 입니다 (0) | 2024.07.15 |
백준 30979 유치원생 파댕이 돌보기 (0) | 2024.06.19 |
leetcode 2000. Reverse Prefix of Word (0) | 2024.05.02 |
댓글