Advertisement
mfgnik

Untitled

Oct 30th, 2020
2,088
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def change(position, n):
  2.     return position[1], n - position[0] - 1
  3.  
  4.  
  5. n = int(input())
  6. positions = [change((line, int(input()) - 1), n) 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