Def1 [Python] 자릿수 합 n=int(input()) a=list(map(int, input().split())) max = -21470000000 def digit_sum(x): sum = 0 while x>0: sum += x%10 x = x//10 return sum for x in a : tmp=digit_sum(x) if max 2022. 1. 18. 이전 1 다음