随笔分类 -  倍增:RMQ

【POJ3264】Balanced Lineup
摘要:RMQ模板题 1 #include<cstdio> 2 #include<cstring> 3 using namespace std; 4 const int N=50001,M=30; 5 int n,q,h[N],minl[N][M],maxl[N][M]; 6 int RMQ(int,int 阅读全文
posted @ 2016-08-31 21:58 Absolutezero 阅读(197) 评论(0) 推荐(0)