Manache模板题 #include<cstdio> #include<algorithm> #include<cstring> using namespace std; const int max_n = 1e6+100; void Manacher(char s[],int d[],char ts[]){ int n = strlen(s); fill(d,d+2*n+10,1); for (int i=0,j=0;i<n;++i){ ts[j++]='#';ts[j++]=s[i]; }n=n*...