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

PROGRAMMING:Violent primary school (second grade) - find 4 numbers

Luz5年前 (2021-05-10)题库419
Xiaobo is a sophomore in Xincheng primary school. He is very honest and his grades in mathematics and Chinese are medium. However, once you sit in front of the computer and write code, you will be a bit arrogant, especially good at all kinds of violent methods. This problem is one of the problems of math teacher mo. please solve it with Xiao Bo.
![ 1s.jpg](~/28959bf8-97af-4cc2-b96d-be2e4642fee2.jpg)
###Input format:
The first line gives the sum n (the sum n of the example in the figure is 2000).
###Output format:
The first line outputs the number k of all solutions, and then the K line outputs all solutions from small to large according to the 4-bit number of DCBA.
###Input example:
For example, enter:
```in
two thousand
```
###Output example:
Then output:
```out
two
0965
one thousand four hundred and sixty-five
```







answer:If there is no answer, please comment