This website works better with JavaScript
صفحهٔ اصلی
گشتوگذار
راهنما
ثبت نام
ورود
AOJTeam
/
Contest1470
دنبال کردن
5
ستاره دار
0
انشعاب
0
پروندهها
مشکلات
0
درخواست واکشی
0
ویکی
شاخه:
master
شاخهها
تگها
master
Contest1470
/
1470G.py
1470G.py
118 B
لینک دائمی
تاريخچه
خام
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)