• Home
  • About
    • JOOS photo

      JOOS

      Joos's blog

    • Learn More
    • Email
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

[백준] 11651번 : 좌표 정렬하기2 with python3

23 Oct 2018

Reading time ~1 minute

문제: https://www.acmicpc.net/problem/11651

import sys
read = lambda : sys.stdin.readline().strip()

ans = []
for _ in range(int(read())):
    x, y = map(int, read().split())
    ans.append((y, x))

for y, x in sorted(ans):
    print(x, y)


algorithm백준python Share Tweet +1