摘要: G 最长递增长度 求一下最长上升子序列,这里用了一个典型的$O(n\log n )$的做法就是模拟栈,并且不断替换栈,使得栈中的元素在保持长度不变的情况下尽可能的小 #include<bits/stdc++.h> using namespace std; int read() { int x = 0 阅读全文
posted @ 2022-08-14 21:06 PHarr 阅读(44) 评论(0) 推荐(0) 编辑