Advertisement
mfgnik

Untitled

Oct 30th, 2020
2,017
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement