Visitors hit counter dreamweaver
摘要: POJ1308并查集的学习#include <iostream>#include <memory.h>using namespace std;int father[5000];bool has_point[5000];int case_number;void Ini_Set(int y){ father[y]=y; has_point[y]=true;}int Find_Set(int x){ if(father[x]!=x){ //不是单独的节点 father[x]=Find_Set(father[x]); } return father[x]... 阅读全文
posted @ 2011-12-14 10:28 Jason Damon 阅读(343) 评论(0) 推荐(0)