[백준] #11720 필요없는 input 날리기 python

2022. 12. 22. 10:23

https://www.acmicpc.net/problem/11720

 

11720번: 숫자의 합

첫째 줄에 숫자의 개수 N (1 ≤ N ≤ 100)이 주어진다. 둘째 줄에 숫자 N개가 공백없이 주어진다.

www.acmicpc.net

 

 

 

input으로 들어오지만 필요 없다면 따로 저장하지 않았다.

 

input()
num_l = input()
result = 0
for i in num_l:
    result += int(i)
print(result)

BELATED ARTICLES

more