UVA 10534 Wavio Sequence DP LIS
摘要:
题意:求一个波浪子序列,就是是前一半是上升子序列,后一半是下降子序列(子序列的长度必须为奇数)。分别从左右两个方向求LIS,然后在统计最大值就行了 //#pragma comment(linker, "/STACK:1024000000,1024000000")#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;typedef long long ll;typede 阅读全文
posted @ 2013-08-10 17:20 BMan、 阅读(208) 评论(0) 推荐(0)
浙公网安备 33010602011771号