This website works better with JavaScript
Startsida
Utforska
Hjälp
Registrera dig
Logga in
AOJTeam
/
Contest1470
Bevaka
5
Stjärnmärk
0
Fork
0
Filer
Ärenden
0
Pull-förfrågningar
0
Wiki
Gren:
master
Grenar
Taggar
master
Contest1470
/
1470G.py
1470G.py
118 B
Permalänk
Historik
Rå
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)