This website works better with JavaScript
Home
Esplora
Aiuto
Registrati
Accedi
AOJTeam
/
Contest1470
Segui
5
Vota
0
Forka
0
File
Problemi
0
Pull Requests
0
Wiki
Ramo (Branch):
master
Rami (Branch)
Tag
master
Contest1470
/
1470G.py
1470G.py
118 B
Permalink
Cronologia
Originale
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)