#24 백준[11720] 숫자의 합
https://www.acmicpc.net/problem/11720
#Solution
a=int(input())
b=list(input())
result=0
for i in b:
result += int(i)
print(result)
'Programming [Python] > 백준 알고리즘 솔루션' 카테고리의 다른 글
#26 백준 파이썬 [9498] 시험 성적 (0) | 2018.04.17 |
---|---|
#25 백준 파이썬 [11721] 열 개씩 끊어 출력하기 (0) | 2018.04.16 |
#23 백준 파이썬 [8393] 합 (0) | 2017.11.08 |
#22 백준 파이썬 [1924] 2007년 (0) | 2017.11.06 |
#21 백준 파이썬 [2441] 별찍기 - 4 (0) | 2017.11.06 |