1074: the sum of digits ( Recursion)
[Creator : ]
Description
Given an integer D ( 2 <= D <= 8 ) and an integer N, print all the D-digit integers whose digit sum is equal to the N.
Input
Two integers D and N in one line
Output
one line of integers in ascending order and seperated by space
Sample Input Copy
2 8
Sample Output Copy
17 26 35 44 53 62 71 80