@[a1453084652](/user/996998) 注意数据范围
by 2021Changqing60 @ 2023-04-27 16:28:51
@[2021Changqing60](/user/947380) 数据取值没有问题啊感觉
by a1453084652 @ 2023-04-27 17:10:12
```cpp
#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
int s[10000000];//模拟那条路
int main(){
int n,m;
cin>>n>>m;//输入基本数据
for(int i=1;i<=__;i++)//循环多少次?
{
int a,b;
cin>>a>>b;//输入区间首尾
for(int j=__;j<=__;j++)s[__]=1;//标记此处没树
}
int cnt=0;//统计树的棵树
for(int i=__;i<=__;i++)if(s[__]==0)__++;//注:i要从0开始!到哪结束呢?
cout<<cnt;//输出
return 0;
}
```
请填空食用
by Max6700 @ 2023-04-28 21:27:38
可以把
```cpp
cout,cin
```
换成
```cpp
printf,scanf
```
by Max6700 @ 2023-04-28 21:29:55