难度:3
模型,找一个最长的元素各不相同的连续子序列,这里的思路是进去先给右端点加一,然后进行判断,
#include <bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef vector<int> vi
难度:3
模型,找一个最长的元素各不相同的连续子序列,这里的思路是进去先给右端点加一,然后进行判断,
#include <bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef vector<int> vi