PS/BOJ

[백준] 좌표 정렬하기

RUBY_루비 2020. 10. 5. 23:59

출처:: www.acmicpc.net/problem/11650

분류:: 정렬

 

1. 문제 이해 및 해결과정

 

2. 풀이방법

 1. [ python ] 

#좌표 정렬하기
#https://www.acmicpc.net/problem/11650
import sys
sys.stdin = open("input.txt","r")
n=int(input())
arr=[]
for i in range(n):
    x,y=map(int,input().split())
    arr.append((x,y))
arr.sort()
for x,y in arr:
    print(x,y)

 

3. 오답원인

 

4. 알게된 점