atcoder#ABC238C. [ABC238C] digitnum
[ABC238C] digitnum
Score : points
Problem Statement
Given an integer , solve the following problem.
Let (The number of positive integers at most with the same number of digits as ). Find modulo .
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the answer as an integer.
16
73
- For a positive integer between and , the positive integers at most with the same number of digits as are .- Thus, we have .
- For a positive integer between and , the positive integers at most with the same number of digits as are .- Thus, we have .
The final answer is .
238
13870
999999999999999999
762062362
Be sure to find the sum modulo .