Common Subsequence POJ-1458 //最长公共子序列问题 #include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #include<string> using namespace std; string a,b; int dp[1003][1003]; int main(){ while(cin>>a>>b){…
LCS最长公共子序列 模板代码: #include <iostream> #include <string.h> #include <string> using namespace std; int dp[110][110]; int main() { string a,b; memset(dp,0,sizeof(dp)); cin>>a>>b; int lena = a.size(); int lenb = b.size(); for(int…
http://acm.hust.edu.cn/vjudge/contest/view.action?cid=74662#problem/C A B C D E C - Largest Rectangle in a Histogram Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Practice UVA 111 Description Background Many…