반응형
https://www.acmicpc.net/problem/10814
# @Author YoungMinKim
# baekjoon
import sys
N = int(sys.stdin.readline())
ls = []
for i in range(N):
x,y = sys.stdin.readline().split()
ls.append((int(x),i,y))
for a,b,c in sorted(ls):
print(a,c)
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 4949 (0) | 2020.09.05 |
---|---|
python - baekjoon - 9012 (0) | 2020.09.05 |
baekjoon - python - 1181 (0) | 2020.09.05 |
baekjoon - python - 10773 (0) | 2020.09.05 |
baekjoon - python - 10952 (0) | 2020.09.05 |
댓글