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

PROGRAMMING:3-digit 1 satisfying the condition

Luz5年前 (2021-05-10)题库660
Write a program to achieve the following functions
Read in an integer num from the keyboard, and output all the three digits that meet the conditions in the order from small to large: "the sum of squares of the digits" plus "the number / 2" equals num.
###Input format:
Enter an integer
###Output format:
For the qualified 3-digit, each output data occupies 5 columns, and the space is filled on the left
If there are no qualified 3 digits, output not find!
###Input sample 1:
```in
two hundred and ninety-three
```
###Output sample 1:
```out
289 368 455 504
```
###Input sample 2:
```in
one hundred and ninety-nine
```
###Output sample 2:
```out
not Find!
```







answer:If there is no answer, please comment