This website works better with JavaScript
Inicio
Explorar
Ayuda
Registro
Iniciar sesión
AOJTeam
/
Contest1470
Seguir
5
Destacar
0
Fork
0
Archivos
Incidencias
0
Pull Requests
0
Wiki
Rama:
master
Ramas
Etiquetas
master
Contest1470
/
1470G.py
1470G.py
118 B
Permalink
Histórico
Raw
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)