#include <iostream>
#include <algorithm>
#include <functional>
#include <string.h>
using namespace std;
typedef long long ll;
const int maxn = 1e5 + 7;
int dp[maxn];
int pos[maxn]; // 记录每个数在dp数组里出现的位置。唯一
int ans[maxn];
int arr[maxn]
最长上升子序列【nlogn+路径输出】
最新推荐文章于 2023-09-27 17:46:56 发布