摘要: /*并查集*/ #include int *a; int *sz; int count; //the number of connected component //union two connected components with weights void union_two_points(int p, int q) { int i = root(p); int j = ro... 阅读全文
posted @ 2018-08-29 10:40 花花与小叮当 阅读(161) 评论(0) 推荐(0) 编辑