Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
43113 李昕霏 A+B 输入输出练习IV Python3 Accepted 44 MS 3788 KB 292 2022-12-04 14:50:56

Tests(1/1):


Code:

lb=[] l=0 b=[] while True: for i in map(int,input().split()): lb.append(i) if lb[0]==0: break for i in range(len(lb)): if i==0: continue l+=lb[i] b.append(l) lb=[] l=0 for i in range(len(b)): print(b[i])