Skip to content

Commit

Permalink
solve : 11650 좌표 정렬하기
Browse files Browse the repository at this point in the history
  • Loading branch information
wwan13 committed May 8, 2024
1 parent b6c38f4 commit af79bd9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions python/boj_11650.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import sys

input = sys.stdin.readline


def solution(n, data):
answer = sorted(data, key=lambda x: (x[0], x[1]))
return answer


def display_result(answer):
[print(e[0], e[1]) for e in answer]


def main():
n = int(input())
data = [list(map(int, input().split())) for _ in range(n)]
answer = solution(n, data)
display_result(answer)


main()

0 comments on commit af79bd9

Please sign in to comment.