MaxSubsum/Chosen__1
MaxSubsum/s_02180027
n1x = int(input())n1d = int(input())
2s = 0
3max = d
4while d:
5    s += d
6    if s > max:
7        max = s
8    if s < 0:
9        s = 0
10    d = int(input())
11else:
12    print(max)
213
t3summ = 0t
4ans = x
5 
6while x != 0:
7    summ += x
8    if summ > ans:
9        ans = summ
10    if summ < 0:
11        summ = 0
12    x = int(input())
13 
14print(ans)
15 
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op