Manacher
int p[N];
inline int manacher(string &t, int l){
string s = " ";
for(int i = 0; i < l; i ++){
s += t[i];
s += ' ';
}
int n = s.size();
int r = 0, c = 0;
for(int i = 0; i < n; i ++){
p[i] = (i <= r ? min(p[(c << 1) - i], r - i) : 1);
while(i - p[i] >= 0 && i + p[i] < n && s[i - p[i]] == s[i + p[i]]) p[i] ++;
p[i] --;
if(i + p[i] > r){
c = i;
r = i + p[i];
}
}
int ans = 0;
for(int i = 0; i < n; i ++){
ans = max(ans, p[i]);
}
return ans;
}