#Lutece1604. two strings
two strings
Migrated from Lutece 1604 two strings
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
memeda有两个字符串。母串只包含小写字母,询问串包含小写字母和通配符。
如果满足以下三种情况中的任意一种 我们可以视为询问串的字符与母串字符匹配
- % (将小写字母
以编号后运算) - 为通配符
memeda想知道询问串在母串中出现了几次 分别出现在什么位置 下标从开始
Input
输入两行 分别为和
Output
第一行为在中出现的次数
接下来行正整数,分别代表每次在中出现的开始位置。按照从小到大的顺序输出。
Samples
aacccaabca
c?caa
1
2
Resources
每周一题 Div1