随笔分类 -  并查集

摘要:带权并查集 有蜘蛛纸牌内味。 code: int find(int x) { if(father[x]==x)return x; int fx=find(father[x]); front[x]=front[x]+front[father[x]]; return father[x]=fx; } vo 阅读全文
posted @ 2020-11-22 18:55 GUO_dx 阅读(96) 评论(0) 推荐(0)