-->
当前位置:首页 > 题库

PROGRAMMING:Narcissistic number

Luz5年前 (2021-05-10)题库500
Print out all the Narcissus numbers. The so-called "narcissus number" refers to a three digit number whose cubic sum of each digit is equal to the number itself.
For example, 153 is a narcissus number, because 153 = 1 * 1 * 1 + 5 * 5 * 5 + 3 * 3.
###Input format:
###Output format:
Output all the number of Narcissus, one Narcissus per line. The output format is: 153 = 1 * 1 * 1 + 5 * 5 * 5 + 3 * 3 * 3
###Input example:
Here is a set of inputs. For example:
```in
```
###Output example:
The corresponding output is given here. For example:
```out
153=1*1*1+5*5*5+3*3*3
370=3*3*3+7*7*7+0*0*0
371=3*3*3+7*7*7+1*1*1
407=4*4*4+0*0*0+7*7*7
```







answer:If there is no answer, please comment