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

PROGRAMMING:Narcissistic number

Luz5年前 (2021-05-10)题库427
Develop a program that will determine if a 3-digit-number is a narcissistic number. (Narcissistic number: integer expressible as the sum of (number of digit)th power of each of its digit.)
### Input Specification:
Each input file contains one test case, which gives a integer A (1000>A>99).
### Output Specification:
For each test case, print in a line "`A` is a Narcissistic number" or "`A` is not a Narcissistic number".
### Sample Input 1:
```in
one hundred and fifty-three
```
### Sample Output 1:
```out
153 is a Narcissistic number
```
### Sample Input 2:
```in
eight hundred and ninety-five
```
### Sample Output 2:
```out
895 is not a Narcissistic number
```






answer:If there is no answer, please comment