摘要: 原题:合并回文子串 (nowcoder.com) 题意:输入两个字符串a和b,要求将其合并成字符串c,同时保持a和b中字符顺序不变,求能合成的最长回文子串长度。 分析:区间dp,具体看代码注解。 题解: #include <bits/stdc++.h> using namespace std; co 阅读全文
posted @ 2021-08-25 10:53 AtomsH 阅读(116) 评论(0) 推荐(0)