مجموع توان ارقام

#018 · Digit Power Sum · math · easy · python مشاهده راه‌حل در GitHub The Number 512 is interesting because it is equal to the sum of its digits raised to some power: 5 + 1 + 2 = 8, and (8 ** 3) = 512. Another example of a number with this property is 614656 = 28 ** 4. Input: we give you a number with at least two digits! Output: If the given number is 'digit power sum' Print "YES" if it's not, print "NO"!

6 ژوئن 2026 · Amirmahdikahdouii