#include #include #include #include using namespace std; const int N = 1e5 + 10, M = 1e6 + 10; char buffs[N], buffp[N], p[N], s[M]; int n, m; int ne[N]; void delete_char(char *str, char target) { int i, j; for (i = 0, j = 0; str[i] != '