![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM-并查集
My_day_Hyt
Stay folish ,Stay hungry.
展开
-
并查集 POJ 1330
#include <iostream> #include<stdio.h> #include<string.h> using namespace std; const int maxn = 10010; int t,n; int x,y; int father[maxn],bj[maxn]; void bl(int n) { while(n !=father[n]) {原创 2016-08-27 21:49:48 · 365 阅读 · 0 评论 -
并查集小结
## 并查集小结(一) ## POJ 1703 Description The police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Gang Snake. However, the po原创 2016-07-24 19:14:46 · 247 阅读 · 0 评论