100 atcoder#ABC083B. [ABC083B] Some Sums
[ABC083B] Some Sums
Score : points
Problem Statement
Find the sum of the integers between and (inclusive), whose sum of digits written in base is between and (inclusive).
Constraints
- All input values are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the sum of the integers between and (inclusive), whose sum of digits written in base is between and (inclusive).
20 2 5
84
Among the integers not greater than , the ones whose sums of digits are between and , are: and . We should print the sum of these, .
10 1 2
13
100 4 16
4554