Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # add your code here
- w = list(map(int, input().split()))
- n = len(w)
- res = [0]*n
- for x in range(n-1):
- cnt = 0
- for i in range(x, n-1):
- if w[i+1] <= w[i]:
- break
- cnt += 1
- res[x] = cnt
- print(' '.join(map(str, res)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement