Online Judge
Toggle navigation
C++题库系统 OJ
首页
问题列表
状态
排行榜
登录
首页
状态
56045
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)