This website works better with JavaScript
Ana Sayfa
Keşfet
Yardım
Üye Ol
Giriş Yap
AOJTeam
/
Contest1470
İzle
5
Yıldızla
0
Çatalla
0
Dosyalar
Sorunlar
0
Değişiklik İstekleri
0
Wiki
Dal:
master
Dallar
Biçim İmleri
master
Contest1470
/
1470G.py
1470G.py
118 B
Kalıcı Bağlantı
Geçmiş
Ham
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)