mfgnik

Untitled

Oct 30th, 2020
879
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data