Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115419 伍长辉 各个位数之和 Python3 Accepted 38 MS 3752 KB 98 2025-03-30 13:43:58

Tests(5/5):


Code:

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