BOJ - 10814 - 나이순 정렬
Updated:
import sys
def solution():
data = []
for _ in range(int(sys.stdin.readline())):
data.append(list(sys.stdin.readline().split()))
data.sort(key = lambda x: int(x[0]))
for x, y in data:
print(x, y)
solution()
https://www.acmicpc.net/problem/10814
Leave a comment