Digit Sum Equals 10
Count integers in [L, R] whose digit sum equals exactly 10.
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
9
Input 2
19 91
Output 2
9
Discussion (opens after you solve — no spoilers before)
No comments yet.