백준. 11650번. 좌표 정렬하기 파이썬 풀이
문제링크 https://www.acmicpc.net/problem/11650
파이썬 기본 리스트 정렬을하면 요구하는대로 정렬이 된다
n = int(input())
array = []
for _ in range(n):
x, y = map(int, input().split())
array.append([x,y])
array.sort()
for x, y in array:
print(x, y)