- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 poj2192(Zipper)
题目链接:http://poj.org/problem?id=2192 题意:给你三个字符串,问第三个字符串能否由前两个字符串按顺序组成(第三字符串的长度等于前两个字符串长度之和) 搜索的办法(比较容易看懂): Code: #include #include char a[250],b[250],ab[500]; int Case,T; int dfs(int
2012-06-08 23:41:09 592
原创 poj1458(Common Subsequence)
题目连接:http://poj.org/problem?id=1458 题目大意:求两字符串的最长公共子串 Code: #include #include char s1[500],s2[500]; int com[500][500]; int len1,len2; int max(int a,int b) { return a>b ? a : b; }
2012-06-05 23:23:11 438
原创 poj1159(Palindrome+回文串)
题目链接:http://poj.org/problem?id=1159 题目大意:回文串是顺序和逆序相同的字符串,该题求给一字符串,求出至少要给该字符串添加多少个字符使所得串是回文串。 分析:设s是所给串,S为所得串; A:S中与该字符对称的字符不属于s; B: S中与该字符
2012-06-01 23:33:29 641
heritrix1.14.4源码包
2013-07-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人