#P1362. 兔子数
兔子数
Description
Let denote the sum of the digits of , such as , . If a positive integer satisfies , we call it a Rabbit Number. For example, is a Rabbit Number, because .
Now, given an interval , find the number of Rabbit Numbers within this interval.
Input Format
The input consists of a single line with two numbers and separated by a space.
Output Format
Output a single line containing one integer, the number of Rabbit Numbers in .
22 22
1
484 484
0
1 58
12
58 484
24
1000000000 1000000000
1
Hint
Constraints: For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号