This website works better with JavaScript
Почетна
Преглед
Помоћ
Регистрација
Пријавите се
AOJTeam
/
Contest1470
Прати
5
Волим
0
Креирај огранак
0
Датотеке
Дискусије
0
Захтеви за спајање
0
Вики
Грана:
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)