这题和上一题很像,红。
按照右端点升序排,对于每个区间都从右往左种树,再暴力维护选择的。
By signing up a HFOJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your HFOJ universal account