#Lutece1740. 字符串匹配
字符串匹配
Migrated from Lutece 1740 字符串匹配
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
字符集大小为,给定一个长为的字符串,求出所有长为到的串中,不包含子串的共有几个?
Input
输入的第一行包含三个整数
接下来一行包含个整数,表示串.
Output
输出行表示答案,因为答案可能较大,你只需输出其在意义下的值
Samples
5 5 10
1 2 1 2 1
5
25
125
625
3124
15615
78051
390135
1950075
9747376
Resources
Prepared by xiper