삽집하는 개발들/알고리즘

[21일차][프로그래머스][12931]자릿수 더하기

악투 2023. 7. 11. 17:10
반응형
def solution(n):
    return sum([ int(char) for char in str(n) ])

 

반응형