Городецкая Агнесса Алексеевна 418 MaxSubsum 599
adhanin MaxSubsum 805
n1cur_sum = max_sum = int(input())n1current = best = int(input())
2while cur_sum != 0:2while current != 0:
3    num = int(input())3    x = int(input())
4    if num == 0:4    if x == 0:
5        break5        break
t6    cur_sum = max(num, cur_sum + num)t6    current = max(x, current + x)
7    max_sum = max(max_sum, cur_sum)7    best = max(best, current)
8print(max_sum)8print(best)
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op