会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
20203246
博客园
首页
新随笔
联系
订阅
管理
2021年5月3日
并查集(区间修改)
摘要: #include <bits/stdc++.h> typedef long long ll; using namespace std; const int maxn=1e6+10; int f[maxn],col[maxn]; int find(int x){ return f[x]==x?x:f[
阅读全文
posted @ 2021-05-03 22:57 Acception
阅读(65)
评论(0)
推荐(0)