Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def zlicz():
- N = int(input())
- numbers = input().split(" ")
- max = int(numbers[0])
- count = 1
- j = 1
- while j < N:
- if int(numbers[j]) > max:
- max = int(numbers[j])
- count = 1
- elif int(numbers[j]) == max:
- count = count +1
- j = j +1
- print(count)
- zlicz()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement