Even Number of Digits
Count integers in [L, R] that have an even number of 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 100
Output 1
90
Input 2
5 50
Output 2
41
Discussion (opens after you solve — no spoilers before)
No comments yet.