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

PROGRAMMING:Judge whether a three digit number is narcissus number

Luz5年前 (2021-05-10)题库536
This problem requires the preparation of procedures to determine whether a given number of three digits is narcissus number. The three digit narcissus number, that is, the cubic sum of its individual, ten and hundred digits, is equal to the number itself.
###Input format:
Enter an integer $$n $$($$100 / Le n / Le 999 $$) to be judged in one line.
###Output format:
If $$n $$is the number of daffodils, output 'yes' in one line, otherwise output' no '. If $$n $$is not a three digit number, 'invalid value.'Is output.
###Input sample 1:
```in
one hundred and fifty-three
```
###Output sample 1:
```out
Yes
```
###Input sample 2:
```in
five hundred
```
###Output sample 2:
```out
No
```
###Input sample 3:
```in
-2
```
###Output sample 3:
```out
Invalid Value.
```






answer:If there is no answer, please comment