Skip to content

Commit df416f2

Browse files
committed
[BOJ] 11650 좌표 정렬하기 (S5)
1 parent e01dd7d commit df416f2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

심수연/10주차/260305.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# https://www.acmicpc.net/problem/11650
2+
3+
import sys
4+
input = sys.stdin.readline
5+
6+
N = int(input())
7+
graph = [[] for _ in range(N)]
8+
9+
for i in range(N):
10+
graph[i] = list(map(int, input().split()))
11+
12+
graph = sorted(graph, key=lambda x: (x[0], x[1]))
13+
14+
for i in range(len(graph)):
15+
print(*graph[i])

0 commit comments

Comments
 (0)