Pro.ID22242 TitleNine Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22242 AC2 Submit20 Ratio10.00% 时间&空间限制描述One day, Merlin found something strange. He can make a number between 1 and 100 using 1 to 9 once and only once. For example, 7436 You problem is that to show all the solutions of giving numbers. To simply the problem, you have only one form like this: C 输入This problem has multiple test cases. Each case has one line of only one integer A between 1 and 100 (included 1 and 100). The input is terminated by one line of one number 0. 输出Description One day, Merlin found something strange. He can make a number between 1 and 100 using 1 to 9 once and only once. For example, 7436 You problem is that to show all the solutions of giving numbers. To simply the problem, you have only one form like this: C Input This problem has multiple test cases. Each case has one line of only one integer A between 1 and 100 (included 1 and 100). The input is terminated by one line of one number 0. Output You must print all the solutions of each input number A using the print form like the sample output. You must print the smaller B first, and then the smaller C. If it can't make the number, print a string of "impossible". Sample Input 45 Sample Output 3564 Source 样例输入45 样例输出 3564 作者 |