摘要: #include#include#include#include#include#include#include#include#include#include#define max(a, b) a>b?a:b;#define min(a, b) a<b?a:b;using namespace st... 阅读全文
posted @ 2015-07-24 12:57 花开须臾 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;const int N = 100005;int r[N], father[N];//定义一个关系数组,定义一个父亲(路径)数组;int Find(int x);//寻找根节点,并且找这个点与根节点的关系int ... 阅读全文
posted @ 2015-07-24 12:56 花开须臾 阅读(111) 评论(0) 推荐(0) 编辑