This website works better with JavaScript
Kezdőlap
Felfedezés
Súgó
Regisztráció
Bejelentkezés
AOJTeam
/
Contest1470
Figyelés
5
Kedvenc
0
Másolás
0
Fájlok
Problémák
0
Beolvasztási kérések
0
Wiki
Branch:
master
Branch-ok
Tag-ek
master
Contest1470
/
1470G.py
1470G.py
118 B
Állandó hivatkozás
Előzmények
Nyers
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)