You are viewing a single comment's thread. Return to all comments →
arr = list(map(int, input().split()))
EDIT: My mistake, i've missread the description :(. So the rest of the comment is invalid.
This doesn't work. It only counts how many times the highest element from the list (max(arr)) is in the list. In some test cases it works. In some it doesn't -> it's not a correct solution
i don't understand. it's what we are looking for, is it not?? ;)
You're right, I've missread the description.
Hi I also use the same way to count in Python print(arr.count(max(arr))), but the result is always 2, none, which show me the worng answer. I do not know why it show me (2, none) instead of just 2.
Try to return the value from the function instead of printing.