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

PROGRAMMING:Find out three Narcissus numbers

Luz5年前 (2021-05-10)题库536
This problem requires programming, output given positive integer $$M $$and $$n $$range of all three daffodils. 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:
The input gives two positive integers $$M $$and $$n $$($$100 / Le M / Le n / Le 999 $$) in one line.
###Output format:
Output all the three digit Narcissus numbers in the range of $$M $$and $$n $$in sequence, one for each row. If there is no three digit narcissus number in the interval, there is no output.
If $$M $$or $$n $$does not meet the requirements of the title, output 'invalid value.'.
###Input sample 1:
```in
100 400
```
###Output sample 1:
```out
one hundred and fifty-three
three hundred and seventy
three hundred and seventy-one
```
###Input sample 2:
```in
500 600
```
###Output sample 2:
```out
```
###Input sample 3:
```
990 101
```
###Output example 3:
```
Invalid Value.
```







answer:If there is no answer, please comment