没有难度的模板题 我们可以直接先上Manacher然后就能够找到最长的回文子串 然后我们对字串进行解码如何进行解码?巧妙地利用取模。试几次就出来了 #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int max_n = 2e5+100; void Manacher(char s[],int d[],char ts[]){ int n = strlen(s); fill(d,d+n*2+10,1); for (int i=0,j=0;i<...