随笔分类 -  字符串匹配

摘要:View Code 1 /* 2 注意: 3 题非常简单,读题有误 4 不是求最长回文子串 5 而是求 原串的一个子串 ,这个子串反转后还是原串的子串 6 相当于求原串和他的反转串 的最长公共子序列(连续) 7 */ 8 9 #include<iostream>10 #include<cstdio>11 #include<cstdlib>12 #include<cstring>13 using namespace std;14 15 char ch[60];16 char tc[60];17 18 int main()19 {20 int i,j 阅读全文
posted @ 2012-05-01 16:29 知行执行 阅读(192) 评论(0) 推荐(0)