atcoder#ABC242C. [ABC242C] 1111gal password
[ABC242C] 1111gal password
Score : points
Problem Statement
Given an integer , find the number of integers that satisfy all of the following conditions, modulo .
- is an -digit positive integer.
- Let be the digits of from top to bottom. They satisfy all of the following:- for all integers ;
- for all integers .
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the answer as an integer.
4
203
Some of the -digit integers satisfying the conditions are .
2
25
1000000
248860093
Be sure to find the count modulo .