HDU - 6183 动态开点线段树

HDU - 6183 动态开点线段树+维护最值 题目连接 考虑对每种颜色都沿y轴创建线段树,维护区间点的x坐标的最小值。 线段树须要动态开点否则会mle #include <algorithm> #include <cstdio> #include <cstring> const int N = 1000005*51; const int INF = 0x3f3f3f3f; int c[N], l
相关文章
相关标签/搜索