Positive Solutions: Network Flow
Report problem solving:
This question Hao Fan Aung ,,, ,,, but give a lot of variables carefully read through the questions can still $ get $ So I will not again subject to the effect extraction spicy $ QwQ $?
Obviously consider building two rows of points, a row of gains in a row and then spending the minimum flow chant?
Even considering edge? Even number between sushi and $ $ INF Well, even the number and $ T $ $ m \ cdot x ^ {2} $ Well, then on this $ c \ cdot x $ apparently be attributed to each of the sushi No. Well back without the pot by $ QwQ $. consider a mandatory final say on that section if the election is a $ [l, r] $ election would also force the $ [l, r-1] $ and $ [l + 1, r] $ so even a $ inf $ edge Well, then the Eau? think it seems to be found under the right way so he finished the spicy $ QwQ $
Concluded at how to build the side lying $ QwQ $, built on the first two rows of points, then each interval $ [l, r] $ to make a point, a point for each number, and then proceeds to put aside spending again, respectively, and $ ST $ even income / expense, then each side to sushi numbers even $ inf $, each interval corresponding to the edge of the mandatory interval even $ inf $
Run a minimal cut, spicy finish $ QwQQQQQ $!