贪心cf1144G. Two Merged Sequences
Posted AntiQuality
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了贪心cf1144G. Two Merged Sequences相关的知识,希望对你有一定的参考价值。
题目分析
打算去cf写写大致题解:
There might be another greedy algorithm using LIS/LDS which is more easier to make sense(it doesn‘t need swapping):
To the first element $a_1$,it belongs to the increasing/decreasing sequence.Let‘s only consider it‘s in the increasing sequence,for the other situation is just the same.
以上是关于贪心cf1144G. Two Merged Sequences的主要内容,如果未能解决你的问题,请参考以下文章
Codeforces #550 (Div3) - G.Two Merged Sequences(dp / 贪心)
G - Two Merged Sequences(dp&贪心)
G - Two Merged Sequences(dp&贪心)