题目链接:
找一个最长不要求连续的子序列,如a1 > a3 < a6 > a7 ...
举个例子模拟一下差不多明白了,a[i - 1]与a[i]有依赖关系。
1 //#pragma comment(linker, "/STACK:102400000, 102400000") 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include