CF489C Given Length and Sum of Digits...
Description
You have a positive integer $ m $ and a non-negative integer $ s $ . Your task is to find the smallest and the largest of the numbers that have length $ m $ and sum of digits $ s $ . The required numbers should be non-negative integers written in the decimal base without leading zeroes.
Input Format
N/A
Output Format
N/A