添加链接描述
#includeusing namespace std; const int N=1e3+9,M=1e5+9; struct node { int a,b,c; }t[M]; int fa[N]; bool cmp(node a,node b){ return a.c

添加链接描述
#includeusing namespace std; const int N=1e3+9,M=1e5+9; struct node { int a,b,c; }t[M]; int fa[N]; bool cmp(node a,node b){ return a.c