Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- amountOfDays, amounfOfDo = [int(i) for i in input().split()]
- arr = [int(i) for i in input().split()]
- arr.reverse()
- result = ["0" for i in range(amountOfDays + 1)]
- for i in arr:
- result[len(arr) - arr.index(i)] = str(i)
- print(" ".join(result[1:]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement