
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 · 403 阅读 · 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 · 286 阅读 · 0 评论