摘要: A 求字符串插入多少字符后可以变为回文串。 将字符串翻转后与原字符串求最长公共子串。 $ans=\min(i+j-2*f_{i,j}).(i+j=n-(n\mod 2))$ code #include<algorithm> #include<cstdio> #include<cstring> #in 阅读全文
posted @ 2022-09-03 16:28 s1monG 阅读(35) 评论(0) 推荐(0)