摘要: input 6 2 ioi 1 3 output 26 input 5 2 ioi 1 2 output 0 #题意 给定原始串的长度以及一个模板串p。给出模板串在原始串中出现的位置,问有多少种情况是满足条件的; #思路 求出在原始串中模板串和模板串之间可能叠加的位置 ———— 也就是两个模板串同时 阅读全文
posted @ 2020-10-12 23:56 youngman-f 阅读(121) 评论(0) 推荐(0) 编辑