#include<iostream>
#include<algorithm>
#include<queue>
using namespace std;
const int N = 1e5;
struct Range{
//利用结构体储存区间
int l, r;
bool operator< (const Range
AcWing 906 区间分组 题解(贪心—区间问题)
最新推荐文章于 2024-07-12 10:45:15 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#include<iostream>
#include<algorithm>
#include<queue>
using namespace std;
const int N = 1e5;
struct Range{
//利用结构体储存区间
int l, r;
bool operator< (const Range