正文
增加 2 行删除 2 行
43 行未改动4445464748495051527 行未改动6061626364656667684 行未改动43 行未改动while(q--){int k,l,r,x,y;string tmp="";cin>>k;if(k&1)y=(k+1)/2,x=y-1;else x=k/2-1,y=k/2+1;for(l=x,r=y;l>=1&&r<=n;--l,++r);++l,--r;for(int i=l,j=r;i<=r;++i,--j)tmp+=s[i],tmp+=s[j];ans=0,manacher(tmp);cout<<ans<<'\n';7 行未改动10111415*/signed main(){//freopen(".in","r",stdin);//freopen(".out","w",stdout);cfast;int _=1;//cin>>_;4 行未改动43 行未改动4445464748495051527 行未改动6061626364656667684 行未改动43 行未改动while(q--){int k,l,r,x,y;string tmp="";cin>>k;if(k&1)y=(k+1)/2,x=y-1;else x=k/2-1,y=k/2+1;for(l=x,r=y;l>=1&&r<=n;--l,++r);++l,--r;for(int i=l,j=r;i<=r;++i,--j)tmp+=s[i],tmp+=s[j];ans=0,manacher(tmp);cout<<ans<<'\n';7 行未改动10111415*/signed main(){//freopen(".in","r",stdin);//freopen(".out","w",stdout);cfast;int _=1;//cin>>_;4 行未改动