Problem K: 脑力达人之分割字串
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:2
Solved:1
Description
Input
第一行,一行字符串
第二行一个正整数 ,表示字典中字符串的数量
接下来 行,每行一个字符串 ,表示字典中的一个字符串。
Output
一个整数,表示最多的分割数。
Sample Input Copy
asdsd
3
as
sd
ds
Sample Output Copy
2
HINT
特殊情况:
如果原字符串不能被分割,请输出 。
数据范围:
对于 的数据,。
对于 的数据,。
其中, 表示字符串 与 的长度。