13 lines
183 B
Python
13 lines
183 B
Python
#!/usr/bin/env python3
|
|
|
|
lines = (x.strip() for x in open("input.txt"))
|
|
|
|
mx = 0
|
|
cr = 0
|
|
|
|
for line in lines:
|
|
cr = 0 if line == "" else cr + int(line)
|
|
mx = max(mx, cr)
|
|
|
|
print(mx)
|