This website works better with JavaScript
Головна сторінка
Огляд
Довідка
Реєстрація
Увійти
AOJTeam
/
Contest1470
Слідкувати
5
Зірка
0
Відгалуження
0
Файли
Проблеми
0
Запити на злиття
0
Wiki
Гілка:
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)