
二分搜索
细水会流长
个人博客:micsay.com,微信公众号:micsaycom
展开
-
HDU 5289 Assignment [RMQ区间查询+二分搜索]
题干hdu 5289走你题解/** *RMQ区间查询+二分搜索 **/ #include<cstdio> #include<cmath> #include<algorithm> using namespace std; const int INF = 1e9; const int MAX = 100010; int root[MAX]; int mpmax[MAX*2][65]; int mpmin原创 2016-07-29 11:39:34 · 283 阅读 · 0 评论 -
POJ 2533 最长上升子序列 [动态规划 + 二分搜索]
题干DescriptionA numeric sequence of ai is ordered if a1 < a2 < … < aN. Let the subsequence of the given numeric sequence (a1, a2, …, aN) be any sequence (ai1, ai2, …, aiK), where 1 <= i1 < i2 < … < iK <原创 2016-07-29 15:50:17 · 314 阅读 · 0 评论