Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def change(position, n):
- return position[1], n - position[0] - 1
- n = int(input())
- positions = [change((line, int(input()) - 1), n) for line in range(n)]
- positions.sort()
- print(*(position[1] + 1 for position in positions), sep='\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement