Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
56045 木木老师 【入门】求任意三位数各个数位上数字的和 Python3 Accepted 32 MS 3756 KB 130 2023-08-06 13:58:48

Tests(10/10):


Code:

a=int(input()) count=0 while True: if a//10==0: count+=a break count+=a%10 a//=10 print(count)