Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- res = 0
- resn = 0
- while 1:
- n = int(input())
- if(n == 0):
- break
- if(n > resn):
- resn = n
- res = 1
- elif(n == resn):
- res += 1
- print(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement