会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lemonsbiscuit
The greatest test of courage on earth is to bear defeat without losing heart.
博客园
首页
新随笔
联系
订阅
管理
2021年4月2日
AcWing 240. 食物链
摘要: 带权并查集,用权值维护是不是属于同一类 #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 50010; int fa[N],d[N];//d[i]维护i到自己祖
阅读全文
posted @ 2021-04-02 11:18 lemonsbiscuit
阅读(52)
评论(0)
推荐(0)
编辑
公告