会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
域Anton
博客园
首页
新随笔
联系
订阅
管理
2019年4月27日
带权并查集 - How Many Answers Are Wrong
摘要: 思路: 带权并查集+向量偏移 1 #include <iostream> 2 using namespace std; 3 int n, m; 4 int pre[200005]; 5 int f[200005]; // 到根节点的距离 6 int ans = 0; 7 8 void init()
阅读全文
posted @ 2019-04-27 23:02 域Anton
阅读(255)
评论(0)
推荐(0)
公告