Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lst = []
- while True:
- x = int(input())
- if not x:
- break
- lst.append(x)
- if not len(lst):
- print(0)
- exit()
- m = max(lst)
- print(sum([el == m for el in lst]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement