网站首页
编程语言
数据库
系统相关
其他分享
编程问答
P4555
2024-07-22
P4555 [国家集训队] 最长双回文串
原题链接题解先求出以所有最长回文子串,然后记录以每个点作为回文串的右端点时的最小左端点和作为回文串的左端点时的最大右端点code#include<bits/stdc++.h>#definelllonglongusingnamespacestd;intr[200005],l[200005],p[200005];voidsolve(){strings;