Comments

Thanks!

I used DSU to get when each point is first added to the connected graph, and then use segment tree to query the maximum values within the range [L+1, R].Why I couldn't get a accepted?my submisson

On pengyuleMe needing help Bingo, 4 years ago
+18

why-25