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)