poj-3264 Balanced Lineup *
摘要:
/* * 入门题 * RMQ Sparse-Table : O(nlgn) - O(1) * * 2000ms... * */#include <cstdio>using namespace std;const int maxN = 50000 + 10;const int maxK = 50;int height[maxN], n, q;//记录的是坐标int dMax[maxN][maxK], dMin[maxN][maxK];inline int max(int lhs, int rhs){ return (height[lhs] > height[rhs] ? lhs 阅读全文
posted @ 2011-10-14 23:09 龙豆 阅读(236) 评论(0) 推荐(0)
浙公网安备 33010602011771号