https://codeforces.com/contest/650/problem/D
考虑修改每个位置 \(i\) 后序列的 LIS,对两种情况取较大值:
https://ideone.com/iHuO3i
CF650D Zip-line
原文:https://www.cnblogs.com/iefnah06/p/12659628.html