Online Judge
Toggle navigation
C++题库系统 OJ
首页
问题列表
状态
排行榜
登录
首页
状态
115417
Run ID
作者
问题
语言
测评结果
Time
Memory
代码长度
提交时间
115417
胡海峰老师
各个位数之和
Python3
Accepted
36 MS
3776 KB
115
2025-03-30 13:43:09
Tests(5/5):
Code:
a = int(input()) res =0 while True: res = res + a%10 a = a//10 if a==0: break print(res)