Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
43142 | 张子莘 | A+B 输入输出练习IV | Python3 | Accepted | 50 MS | 3784 KB | 291 | 2022-12-04 15:21:45 |
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)