Repdigits in Range
Count integers in [L, R] all of whose digits are identical (like 777).
Input: one line with two integers L and R.
Output: the count of repdigits in [L, R].
Constraints:
- 1 ≤ L ≤ R ≤ 1018
Sample Tests
Input 1
1 30
Output 1
11
Input 2
100 800
Output 2
7
Discussion (opens after you solve — no spoilers before)
No comments yet.