摘要: 并查集 讲解看如下博客:http://start07.yo2.cn/articles/ural-1003-parity.html#include<iostream>#include<cstring>#include<cstdio>using namespace std;#define BLOCK 10000int HashTable[20000],father[20000],Rank[20000],N;int Hash(int a){ int i; for(i=1;i<N;i++) if(HashTable[i]==a) return i; HashT 阅读全文
posted @ 2012-04-19 21:43 书山有路,学海无涯 阅读(186) 评论(0) 推荐(0) 编辑