atcoder#DPS. Digit Sum
Digit Sum
Score : points
Problem Statement
Find the number of integers between and (inclusive) satisfying the following condition, modulo :
- The sum of the digits in base ten is a multiple of .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of integers satisfying the condition, modulo .
30
4
6
Those six integers are: and .
1000000009
1
2
Be sure to print the number modulo .
98765432109876543210
58
635270834