int get(int x){ if(x==f[x])return x; f[x]=get(f[x]); return f[x]; } void unionn(int x,int y){ int u=get(x),v=get(y); if(u!=v)f[u]=v; }
【算法学习】冰茶姬
猜你喜欢
转载自www.cnblogs.com/rign/p/9997085.html
今日推荐
周排行