RMQ
文章平均质量分 76
ACMega
精通C/C Java 要饭
展开
-
UVA11235 - Frequent values
RMQ #include #include #include #include #define MAXN 100010 #define INF (~0U >> 2) using std::max; int d[100010][20], a[100010], num[100010], left[100010], right[100010], count[100010], value[1原创 2013-10-25 15:10:57 · 309 阅读 · 0 评论 -
Codeforces Round #256 (Div. 2) - C - Painting Fence
数据比较弱,所以dfs可以过。很好想原创 2014-07-19 00:00:18 · 212 阅读 · 0 评论