随笔分类 -  贪心

摘要:1046[HAOI2007]上升序列 Description 对于一个给定的S={a1,a2,a3,…,an},若有P={ax1,ax2,ax3,…,axm},满足(x1 < x2 < … < xm)且( ax1 < ax2 < … < axm)。那么就称P为S的一个上升序列。如果有多个P满足条件, 阅读全文
posted @ 2018-01-21 16:23 _wsy 阅读(131) 评论(0) 推荐(0)
摘要:2811: [Apio2012]GuardTime Limit: 10 Sec Memory Limit: 128 MBSubmit: 905 Solved: 387[Submit][Status][Discuss] Description Input Output Sample Input 5 3 41 2 13 4 14 4 04 5 1 Sample Output 3 5 HIN... 阅读全文
posted @ 2017-12-20 16:38 _wsy 阅读(291) 评论(0) 推荐(1)