摘要:
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1136题意:裸的最长上升子序列。复杂度O(n^2).#include#include#include#include#include#include#includeusing namespace std;const int maxn=1005;int n;int a[maxn],dp[maxn];int LIS(){ dp[0]=1; int ans=1; for(int i=1;is && a[j]ans) ans=dp[i];... 阅读全文
posted @ 2013-08-19 11:21
∑求和
阅读(190)
评论(0)
推荐(0)


浙公网安备 33010602011771号