摘要:
LCS#includeusing namespace std;typedef long long ll;int n,m;char s[1005],t[1005];int dp[1005][1005];int main(){ //scanf("%d %d",&n,&m)... 阅读全文
摘要:
记忆化搜索#includeusing namespace std;typedef long long ll;int n,W;int dp[105][10005];int w[105],v[105];int rec(int i,int j){ if(dp[i][j] >... 阅读全文