信息学奥赛一本通T1429-线段 一模一样(信息学奥赛一本通T1422-活动安排)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;const int N = 1000000;struct……
2342: 信息学奥赛一本通T1429-线段
#includeusingnamespacestd;#definelllonglongconstintN=1000009;intn,ans;structE{intl,r;booloperator>n;for(inti=0;i>e[i].l>>e[i].r;}sort(e,