def manacher(x): n=len(x) res=[0]*n i,j=0,0 while i=0 and i+j=0 and k+res[i-k]