题解 P2434 【[SDOI2005]区间】
贪心…
代码简单易懂
一条华丽的分割线
#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#define maxn 1000100
using namespace std;
struct node
{
int l,r;
}a[maxn];
int n,num=0,ans=0;
bool cmp(node a,node b)
{
return a.l<b
原创
2020-10-27 20:34:09 ·
149 阅读 ·
0 评论