Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115422 胡海峰老师 各个位数之和 Python3 Accepted 34 MS 3756 KB 88 2025-03-30 13:45:36

Tests(5/5):


Code:

a = int(input()) res =0 while a>0: res = res + a%10 a = a//10 print(res)