[백준] 정렬 - 11650

파이톨치·2022년 7월 2일
0

백준

목록 보기
1/12

https://www.acmicpc.net/problem/11650

# 람다 정렬 참고 자료
# https://gorokke.tistory.com/38

num_point = int(input())

array = []

# map 을 이용해서 입력시켜주기
for i in range(num_point):
    array.append(list(map(int, input().split())))

# 람다 정렬 
array.sort(key = lambda x : (x[0], x[1]))

# 출력
for i in range(num_point):
    print(array[i][0], array[i][1])
profile
안알랴줌

0개의 댓글