摘要: 题目传送门题意:求删掉连续L长度后的LIS分析:记rdp[i]表示以a[i]为开始的LIS长度,用nlogn的办法,二分查找-a[i]。dp[i]表示以a[i]为结尾并且删去[i-L-1, i-1]的LIS,ans = max(dp[i] + rdp[i] - 1),还要特别考虑删去最后L的长度/*... 阅读全文
posted @ 2015-09-29 16:24 Running_Time 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 水A - Vasya the Hipster/************************************************* Author :Running_Time* Created Time :2015/9/28 星期一 16:58:13* File Name... 阅读全文
posted @ 2015-09-29 14:22 Running_Time 阅读(234) 评论(0) 推荐(0) 编辑