摘要: 并查集模板#include#includeconst int N=1000; using namespace std;int ptr[N];// 结点的上级int find(int x)//查找上级 { int r=x; while(pre[r]!=r)// 上级不是... 阅读全文
posted @ 2017-04-23 18:28 Sizaif 阅读(124) 评论(0) 推荐(0) 编辑