Count how many integers x with L ≤ x ≤ R have a digit sum divisible by
D.
A single line: three integers L R D (1 ≤ L ≤ R ≤ 10^18, 1 ≤ D ≤ 81)
A single integer: the count of qualifying integers.
Input:
1 20 3
Output:
6
Case 1
1 9 5
1
Case 2
1 20 3
6
Input
1 9 5
Expected Output
1
Run or submit your code to see output here.