Skip to content

Commit 69ad8d4

Browse files
authored
#14 : 11650_좌표 정렬하기
#14 : Week3_예원이티
1 parent da61eee commit 69ad8d4

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import sys
2+
3+
n = int(sys.stdin.readline())
4+
5+
array = []
6+
7+
for _ in range(n):
8+
x, y = map(int, input().split())
9+
array.append((x, y))
10+
11+
array.sort(key = lambda x: (x[0], x[1]))
12+
13+
for x, y in array:
14+
print(x, y)

0 commit comments

Comments
 (0)