Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # add your code here
- import sys
- for line in sys.stdin:
- allClimbs = line.split()
- results = [0 for i in range(len(allClimbs))]
- for i in range(len(allClimbs)):
- for j in range(i,len(allClimbs)-1):
- if (int(allClimbs[j])) < (int(allClimbs[j+1])):
- results[i] += 1
- else:
- break
- print(*results,sep = " ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement