参考:https://www.cnblogs.com/wxjor/p/5524447.html 最长下降只要把符号都倒过来就行 在栈中二分找第一个比当前值小的替换就行 转载于:https://www.cnblogs.com/ttttttttrx/p/10261180.html