Advertisement
PlotnikovPhilipp

Untitled

Oct 6th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. amountOfDays, amounfOfDo = [int(i) for i in input().split()]
  2. arr = [int(i) for i in input().split()]
  3. arr.reverse()
  4. result = ["0" for i in range(amountOfDays + 1)]
  5. for i in arr:
  6.   result[len(arr) - arr.index(i)] = str(i)
  7. print(" ".join(result[1:]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement