1234567章鱼君
【章某鱼的学习笔记】并查集
>>
完整版
将一个集合的元素都指向一个根节点
例题在这→【链接登录后可见】
#include<bits/stdc++.h>
using namespace std;
const int MAX=200010;
int f;
int find(int x);
void fun(int x,int y)
【查看更多内容请登录哈】