摘要:
并查集 讲解看如下博客: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 阅读全文