摘要: #include <iostream> using namespace std; const int N=100010; //head 表示头节点的下标 //e[i] 表示i节点的值 //ne[i] 表示i节点的下一个节点的位置,即 //i节点的next指针是多少 //idex 存储当前已经用到了哪 阅读全文
posted @ 2023-01-13 15:22 SaulGoodman1 阅读(33) 评论(0) 推荐(0)
摘要: #include <iostream> #include <algorithm> #include <vector> using namespace std; typedef pair<int,int>PII; const int N=100010; int n; vector<PII>segs; 阅读全文
posted @ 2023-01-13 14:42 SaulGoodman1 阅读(13) 评论(0) 推荐(0)