Luo Gu $ P3308 \ [SDOI2014] LIS $ network flow

Positive Solutions: Network Flow

Report problem solving:

Portal $ QwQ $

Well is not considered additional restrictions on the property, consider these questions how to do?

This first question from the beginning of the name that people can not help think of the longest sequence of sub-24 does not drop in the network flow problem? So likewise considered a pre-$ f $ chant

Then Made, minimum cut grow very well, so the split point, can be constructed even with a weight of maximum length decrease between the promoter sequence INF $ $ side, $ f_ {i} = 1 $ points and $ S $. $ f_ {i} = mxf $ $ T $ point and even a weight of $ $ INF side, open between the point of even a weight of $ b_ {i} $ edges. run smallest cut like $ QwQ $

Now consider how to engage the additional attributes $ QwQ $?

No, cushions, and write $ yep $ tomorrow

Guess you like

Origin www.cnblogs.com/lqsukida/p/11257114.html