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
相關文章
相關標籤/搜索