HDU1159 && POJ1458 Common Subsequence (LCS模版题)
摘要:
题目大意:求出两个串的公共子序列的长度LCS的入门题,读懂题了直接模板就可以#include #include using namespace std;const int N=1000;int a[N][N];int LCS(const char *s1, const char *s2){// s1... 阅读全文
posted @ 2015-04-17 20:43 王老大- 阅读(127) 评论(0) 推荐(0) 编辑