This website works better with JavaScript
首頁
探索
說明
註冊
登入
AOJTeam
/
Contest1470
關註
5
讚好
0
複刻
0
Files
問題管理
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)