[백준] 2231 - 분해합 (파이썬)
[백준] 2231 - 분해합 (파이썬)
2020.04.02num = int(input()) low = 0 def number(low_num): e = list(map(int, str(low_num))) result = low_num + sum(e) return result while number(low) != num: if low == num : low = 0 break else : low += 1 print(low)