Advertisement
pavelperc

Untitled

Dec 20th, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. lst = []
  2. while True:
  3.     x = int(input())
  4.     if not x:
  5.         break
  6.     lst.append(x)
  7.  
  8. if not len(lst):
  9.     print(0)
  10.     exit()
  11.  
  12. m = max(lst)
  13. print(sum([el == m for el in lst]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement