mfgnik

Untitled

Oct 30th, 2020
840
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def change(position):
  2.     return position[1], 4 - position[0]
  3.  
  4.  
  5. n = int(input())
  6. positions = [change((line, int(input()) - 1)) for line in range(n)]
  7. positions.sort()
  8. print(*(position[1] + 1 for position in positions), sep='\n')
  9.  
RAW Paste Data