This website works better with JavaScript
首页
发现
帮助
注册
登录
AOJTeam
/
Contest1470
关注
5
点赞
0
派生
0
文件
工单管理
0
合并请求
0
Wiki
分支:
master
分支列表
标签列表
master
Contest1470
/
1470G.py
1470G.py
118 B
永久链接
文件历史
原始文件
1
2
3
4
5
6
7
8
while True:
n = int(input().strip())
s = 0
while n > 0:
s += n % 10
n //= 10
print(s)