Union-Find算法详解 - labuladong 的算法小抄 (gitbook.io)
并查集(模板)
UF 类
1 | class UF { |
使用说明
1 |
|
P3367 【模板】并查集
https://www.luogu.com.cn/problem/P3367
1 |
|
P1551 亲戚
https://www.luogu.com.cn/problem/P1551
1 |
|
P1111 修复公路
- TODO
1 |
|
Union-Find算法详解 - labuladong 的算法小抄 (gitbook.io)
1 | class UF { |
1 | #include <vector> |
https://www.luogu.com.cn/problem/P3367
1 | #include <iostream> |
https://www.luogu.com.cn/problem/P1551
1 | #include <iostream> |
1 | #include <iostream> |