본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#24 백준 파이썬 [11720] 숫자의 합

#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)