Lcs hdu1159 Common Subsequence
#include
#include
#include
using namespace std;
const int maxn = 1300;
char str1[maxn];
char str2[maxn];
int dp[maxn][maxn];
int Lcs()
{
memset(dp,0,sizeof(dp));
int length1 = strlen(str1+1);
i
原创
2014-11-13 22:15:30 ·
209 阅读 ·
0 评论