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