poj3368线段树
摘要:
题意:给出q次询问,求区间内最长的连续序列。 水题。1.RMQ 求法 ,st算法 2.线段树,简单的区间合并#include#include#includeusing namespace std;const int maxn = 111111;const int INF = 99999999;int... 阅读全文
posted @ 2014-10-13 17:42 一个西瓜 阅读(312) 评论(0) 推荐(0)
posted @ 2014-10-13 17:42 一个西瓜 阅读(312) 评论(0) 推荐(0)
posted @ 2014-10-13 13:08 一个西瓜 阅读(230) 评论(0) 推荐(0)