This website works better with JavaScript
Sākums
Izpētīt
Palīdzība
Reģistrēties
Pierakstīties
AOJTeam
/
Contest1470
Vērot
5
Pievienot zvaigznīti
0
Atdalīts
0
Faili
Problēmas
0
Izmaiņu pieprasījumi
0
Vikivietne
Atzars:
master
Atzari
Tagi
master
Contest1470
/
1470G.py
1470G.py
118 B
Patstāvīgā saite
Vēsture
Neapstrādāts
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)