Contains a Seven
Count integers in [L, R] whose decimal form contains at least one digit 7.
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
2
Input 2
70 80
Output 2
10
Discussion (opens after you solve — no spoilers before)
No comments yet.