会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
purple123
博客园
首页
新随笔
联系
订阅
管理
2024年2月13日
P3367 【模板】并查集
摘要: 原题链接 并查集模板练手。 递归版本 #include<bits/stdc++.h> using namespace std; const int N=1e4+5; int father[N]; int find(int mid){ if (father[mid]!=mid){ father[mid
阅读全文
posted @ 2024-02-13 19:38 黑屿白
阅读(29)
评论(0)
推荐(0)
公告