案例参考
while True:
try:
a, b = map(int, input().strip().split())
print(a+b)
except EOFError:
break
tcase = int(input().strip())
for case in range(tcase):
a, b = map(int, input().strip().split())
print(a + b)
while True:
a, b = map(int, input().strip().split())
if a == 0 and b == 0:
break
print(a+b)
while True:
data = list(map(int, input().strip().split()))
n, array = data[0], data[1:]
if n == 0:
break
print(sum(array))