#P1508. Anthem of Berland
Anthem of Berland
题目描述
给定 串和 串,其中 串包含小写字母和问号, 串只包含小写字母。
假设共有 个问号。你需要给把每个问号变成一个小写字母,共有 种可能。对于每种可能,设 匹配 的次数为 ,请输出 。
输入格式
输入共两行,两个字符串 ,,。
输出格式
输出一个整数表示答案。
winlose???winl???w??
win
5
glo?yto?e??an?
or
3
??c?????
abcab
2