随笔分类 - 倍增: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
阅读全文
浙公网安备 33010602011771号