https://www.acmicpc.net/problem/10814
N = int(input())
li = list()
for _ in range(N):
age, name = input().split(" ")
li.append([int(age), name])
li.sort(key=lambda x:x[0])
for age, name in li:
print(age, name)'코딩테스트 > 코딩테스트 문제풀이' 카테고리의 다른 글
| [Python] 백준 <2108-통계학> (0) | 2025.05.21 |
|---|---|
| [Python] 백준 <18870-좌표 압축> (0) | 2025.05.21 |
| [Python] 백준 <11000-강의실 배정> (0) | 2025.05.20 |
| [Python] 백준 <2667-단지번호붙이기> (0) | 2025.05.19 |
| [Python] 프로그래머스 <게임 맵 최단거리> (0) | 2025.05.19 |