传送门 fftfftfft好题. 题意简述:给两个字符串s,ts,ts,t,问ttt在sss中出现了几次,字符串只由A,T,C,GA,T,C,GA,T,C,G构成. 两个字符匹配的定义: 当si−k,si−k+1,...,si+k−1,si+ks_{i-k},s_{i-k+1},...,s_{i+k-1},s_{i+k}si−k,si−k+1,...,si+k−1,si+k中存在至少一个字符使得sj=tls_j=t_lsj=tl时,我们称sis_isi与tlt_ltl匹配. 题目…