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)