二分优化LIS
字典序最小的方案不好求。
于是就倒过来求以一个数开头的最长上升子序列。
字典序小的放前面。
输出时取最优就好。
1 #include2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include
本文共 800 字,大约阅读时间需要 2 分钟。
二分优化LIS
字典序最小的方案不好求。
于是就倒过来求以一个数开头的最长上升子序列。
字典序小的放前面。
输出时取最优就好。
1 #include2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include
转载于:https://www.cnblogs.com/HugeGun/p/5151294.html