随笔分类 -  图论并查集

摘要:#include using namespace std;const int MAXN=1e6+7;int p[MAXN];int _find(int x){ return p[x]==x?x:p[x]=_find(p[x]);}void _union(int ... 阅读全文
posted @ 2018-05-12 15:04 Bryce1010 阅读(62) 评论(0) 推荐(0)