题意:在主串中寻找子序列 思路:字符串长度都来到了1e6 暴力肯定超时 我们可以先预处理一个next数组来表示主串当前第i个字符到任意26个字母下一个位置是在哪 然后模式串根据next数组匹配 复杂度为 "图片标题") #include <cstdio> #include <cstring> using namespace std; const int N = 1e6+5; const int M = 2e5+5; const int mod = 1e9+7; const int INF = 0x3f3f3f3f; int next[N...