숫자의 합

Tiffany ·2024년 4월 19일
0

Baekjoon

목록 보기
1/3

백준의 좋은점은 코드작성과 동시에 문제설명을 읽을수 없어서 문제설명을 머릿속에서 이해하고 있어야 풀이를 시작 할 수 있다.

n = int(input()) 
word = input() 
result = 0

for i in range(0, n):
    result += int(word[i]) 
    
print(result)  
profile
Love what you do and don't quit.

0개의 댓글