Divisible by Digit Count
Count integers in [L, R] that are divisible by their own number of decimal digits.
Input: one line with two integers L and R.
Output: the count in [L, R].
Constraints:
- 1 ≤ L ≤ R ≤ 1018
Sample Tests
Input 1
1 20
Output 1
15
Input 2
10 30
Output 2
11
Discussion (opens after you solve — no spoilers before)
No comments yet.