随笔分类 - 贪心
摘要:1046[HAOI2007]上升序列 Description 对于一个给定的S={a1,a2,a3,…,an},若有P={ax1,ax2,ax3,…,axm},满足(x1 < x2 < … < xm)且( ax1 < ax2 < … < axm)。那么就称P为S的一个上升序列。如果有多个P满足条件,
阅读全文
摘要: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...
阅读全文