摘要:
求一下最长数字连续上升的子序列长度,n-长度就是答案O(n)可以出解,dp[i]=dp[i-1]+1,然后找到dp数组最大的值。#include#include#include#includeusing namespace std;const int INF=0x7FFFFFFF;const int... 阅读全文
posted @ 2015-12-15 20:20
Fighting_Heart
阅读(229)
评论(0)
推荐(0)
摘要:
模拟,题意看了一小时/* ***********************************************Author :Zhou ZhentaoEmail :774388357@qq.comCreated Time :2015/12/15 13:19:... 阅读全文
posted @ 2015-12-15 20:18
Fighting_Heart
阅读(280)
评论(0)
推荐(0)
摘要:
水题/* ***********************************************Author :Zhou ZhentaoEmail :774388357@qq.comCreated Time :2015/12/15 12:45:27File N... 阅读全文
posted @ 2015-12-15 20:14
Fighting_Heart
阅读(235)
评论(0)
推荐(0)
摘要:
线段树各种操作+STL#include#include#include#include#includeusing namespace std;const int maxn=50000+10;struct SegTree{ int lsum; int rsum; int msum; ... 阅读全文
posted @ 2015-12-15 09:56
Fighting_Heart
阅读(177)
评论(0)
推荐(0)

浙公网安备 33010602011771号