11720번

김범주·2022년 7월 11일
0

백준 파이썬

목록 보기
1/29
post-thumbnail

맨 처음에

import sys
input = sys.stdin.readline

을 적어뒀었는데 이로인해 런타임에러가 발생해 지웠더니 해결되었다.
관련 이슈에 대해서는 좀 더 알아봐야 할 듯

정답

T = int(input())
a = (input())

ans = 0

for i in a:
  ans += int(i)

print(ans)
profile
개발꿈나무

0개의 댓글