This website works better with JavaScript
Strona główna
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
AOJTeam
/
Contest1470
Obserwuj
5
Polub
0
Forkuj
0
Pliki
Problemy
0
Oczekujące zmiany
0
Wiki
Gałąź:
master
Gałęzie
Tagi
master
Contest1470
/
1470G.py
1470G.py
118 B
Bezpośredni odnośnik
Historia
Czysty
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)