반응형

 

출처: https://swexpertacademy.com/

 

 

T = int(input())
answer = 0
while T > 0:
    div, mod = divmod(T, 10)
    answer += mod
    T = div
print(answer)

 

 

 

반응형

+ Recent posts