백준. 11650번. 좌표 정렬하기 파이썬 풀이

minan·2021년 7월 1일
0

백준

목록 보기
10/35

백준. 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)
profile
https://github.com/minhaaan

0개의 댓글

관련 채용 정보