摘要:
#include<bits/stdc++.h> using namespace std; int n,m; int parent[1000005]; void init(int n){ for(int i=1; i<=n; i++){ parent[i]=i; } } int find(int x) 阅读全文
posted @ 2023-08-05 15:04
竹余居居居居居
阅读(21)
评论(0)
推荐(0)
摘要:
基础代码如下 struct edge{ int u,v,w; }e[305*305]; bool cmp(edge x,edge y){ return x.w<y.w; }//对w排序 void Init(int n){ for(int i=1; i<=n; i++){ fa[i]=i; } } i 阅读全文
posted @ 2023-08-05 09:44
竹余居居居居居
阅读(19)
评论(0)
推荐(0)

浙公网安备 33010602011771号