MaxSubsum/armtatevik
MaxSubsum/sus801
n1summ = 0n1summa = 0
2maxsum = 02max_sum = 0
3otr = 03min_cif = 0
4num = int(input())4cifra = int(input())
5while num != 0:5while cifra != 0:
6    summ += num6    summa += cifra
7    if maxsum < summ:7    if max_sum < summa:
8        maxsum = summ8        max_sum = summa
9    elif summ < 0:9    elif summa < 0:
10        summ = 010        summa = 0
11    if num < 0 and otr == 0:11    if cifra < 0 and min_cif == 0:
12        otr = num12        min_cif = cifra
13    if num < 0 and num > otr:13    if cifra < 0 and cifra > min_cif:
14        otr = num14        min_cif = cifra
15    num = int(input())15    cifra = int(input())
16if maxsum != 0:16if max_sum != 0:
17    print(maxsum)17    print(max_sum)
18else:18else:
t19    print(otr)t19    print(min_cif)
2020
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op