#Lutece2824. 01串计数
01串计数
Migrated from Lutece 2824 01串计数
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
给定一个 串 ,你可以对其进行任意次以下操作:
- 在任意位置删除串 。
- 在任意位置删除串 。
- 在任意位置删除串 。
- 在任意位置添加串 。
- 在任意位置添加串 。
- 在任意位置添加串 。
问有多少个长度为 的串可以由 进行任意次操作(包含0次)得到,答案对 取模。
Input
第一行一个整数 表示 的长度,第二行一个 串 。
第三行一个整数 。
Output
一行一个整数表示答案。
Samples
6
010101
3
1
3
111
2
1
5
10101
35
866826000
Constraints
.
Resources
2022 UESTC ICPC Training for String and Search Algorithm