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

Tests(5/5):


Code:

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