Codeforces Round #635 (Div. 2) E. Kaavi and Magic Spell(区间dp)
题目给定一个长度为n(nusingnamespacestd;constintN=3e3+10,mod=998244353;intn,m,dp[N][N];chars[N],t[N];boolok(charx,chary){returny=='?'||(x==y);}voidadd(int&x,inty){x+=y;if(x>=mod)x-=mod;}intmain(){scanf("%s%s",s