Time Limit: 1 second Memory Limit: 1000K Let us denote the sum of digits of the number N by S(N). In this problem, we want you to determine, how often the following equality holds: Input The input file contains a single positive integer K, 0 < K <= 50.Output You should output the number of pairs of Ê-digit numbers A and B to satisfy the above equality. Counting that number you should be aware of the following:
Sample Input 2 Sample Output 1980 |
||