반응형
# @Author YoungMinKim
# baekjoon
N = int(input())
x=int(input())
ls=list(str(x))
sum=0
for i in ls:
sum+=int(i)
print(sum)
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 11729 (0) | 2020.09.13 |
---|---|
baekjoon - python - 11721 (0) | 2020.09.13 |
baekjoon - python - 11719 (0) | 2020.09.13 |
baekjoon - python - 11718 (0) | 2020.09.13 |
baekjoon - python - 11654 (0) | 2020.09.13 |
댓글