This website works better with JavaScript
홈
탐색
도움말
가입하기
로그인
AOJTeam
/
Contest1470
Watch
5
Star
0
포크
0
파일
이슈
0
풀 리퀘스트
0
위키
브렌치:
master
브랜치
태그
master
Contest1470
/
1470G.py
1470G.py
118 B
고유링크
히스토리
Raw
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)