Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
43141 | 蔡璟恒 | A+B 输入输出练习IV | Python3 | Accepted | 41 MS | 3784 KB | 295 | 2022-12-04 15:20:28 |
li=[] res=[] while True: for i in map(int,input().split()): li.append(i) if li[0]==0: break count=0 for i in range(len(li)): if i==0: continue count+=li[i] res.append(count) li=[] for i in res: print(i)