All Digits Even
Count integers in [L, R] all of whose digits are even (0, 2, 4, 6, 8).
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 30
Output 1
9
Input 2
20 90
Output 2
20
Discussion (opens after you solve — no spoilers before)
No comments yet.