2026-02-28 20:01:25 +09:00

6 lines
110 B
Python

a, b = 0, 0
for _ in range(4) :
x, y = map(int, input().split())
a += (y-x)
b = max(b, a)
print(b)