码迷,mamicode.com
首页 > 其他好文 > 详细

【贪心】cf1144G. Two Merged Sequences

时间:2019-04-18 22:07:38      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:not   seq   ppi   ide   only   using   make   wap   app   

 

 

题目分析

打算去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

标签:not   seq   ppi   ide   only   using   make   wap   app   

原文地址:https://www.cnblogs.com/antiquality/p/10732496.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!