Pro.ID21958 TitleDigits Count Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21958 AC0 Submit0 Ratio- 时间&空间限制描述Diana is going to write a list of all positive integers between A and B, inclusive, in base 10 and without any leading zeros. She wants to know how many times each digit is going to be used. 输入Each test case is given in a single line that contains two integers A and B (1 ≤ A ≤ B ≤ 108). The last test case is followed by a line containing two zeros. 输出Description Diana is going to write a list of all positive integers between A and B, inclusive, in base 10 and without any leading zeros. She wants to know how many times each digit is going to be used. Input Each test case is given in a single line that contains two integers A and B (1 ≤ A ≤ B ≤ 108). The last test case is followed by a line containing two zeros. Output For each test case output a single line with 10 integers representing the number of times each digit is used when writing all integers between A and B, inclusive, in base 10 and without leading zeros. Write the counter for each digit in increasing order from 0 to 9. Sample Input 1 9 Sample Output 0 1 1 1 1 1 1 1 1 1 Source 样例输入1 9 样例输出0 1 1 1 1 1 1 1 1 1 作者 |