This website works better with JavaScript
Etusivu
Tutki
Apua
Rekisteröidy
Kirjaudu sisään
AOJTeam
/
Contest1470
Tarkkaile
5
Äänestä
0
Fork
0
Tiedostot
Ongelmat
0
Pull-pyynnöt
0
Wiki
Branch:
master
Branchit
Tagit
master
Contest1470
/
1470G.py
1470G.py
118 B
Pysyvä linkki
Historia
Raaka
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)