Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
47455 | 李昕霏 | 数字之和 | Python3 | Accepted | 32 MS | 3776 KB | 321 | 2023-04-30 14:12:46 |
a=[] c=0 d=0 e=0 while True: b=int(input()) if b==0: break c=b*b while True: d=int(d+b%10) b=int(b/10) e=int(e+c%10) c=int(c/10) if b==0 and c==0: break a.append(str(d)+" "+str(e)) d=0 e=0 for i in a: print(i)