#P10986. [蓝桥杯 2023 国 Python A] 2023
[蓝桥杯 2023 国 Python A] 2023
Background
It is recommended to use PyPy3 to submit this problem.
Problem Description
Given and , find how many -digit decimal integers contain exactly occurrences of .
For example, is an -digit decimal integer that contains occurrences of .
Since the result may be very large, output the answer modulo .
Input Format
One line contains two integers , separated by a space.
Output Format
One line contains one integer, representing the answer.
5 1
20
Hint
For of the testdata, .
For all testdata, .
Translated by ChatGPT 5