摘要:
#include <bits/stdc++.h> using namespace std; // 定义line结构,一条边的2个端点(x,y) 和权重 quan struct line{ int x; int y; int quan; }; // 自定义比较器,按quan 升序排列 bool cmp 阅读全文
摘要:
#include<stdc++.h> #include <iostream> using namespace std; class ufset{ public: static const int N = 100010; int p[N]; // p[i]看做i的指针,该指针指向其父节点。 int c 阅读全文