Created
April 4, 2017 19:26
-
-
Save mikl745/04a783510b7304cb5c56b99bac2371f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
w = int(input()) | |
a = [list(map(int, input().split())) for x in range(w)] | |
y = 0 | |
j = [] | |
for i in range(w): | |
if i == 0: | |
y = 1 | |
else: | |
if a[i-1]==a[i]: | |
y=y+1 | |
else: | |
j.append(y,a[i-1]) | |
t = max(j) | |
print(*t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment