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