会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bigpower
$\boldsymbol{If the flowers are in full bloom, the butterflies will come. }$
博客园
首页
新随笔
联系
订阅
管理
2022年2月27日
E - Replace the Numbers
摘要: E - Replace the Numbers 考点: 并查集 思路:倒序模拟,先存储所有的修改查询,如果$op = 2$, 把更新值的祖宗结点给被更新值的祖宗节点,如果$op = 1$ 就把添加元素的祖宗结点添上。 #include <iostream> using namespace std;
阅读全文
posted @ 2022-02-27 20:55 合肥学院王星力
阅读(54)
评论(0)
推荐(0)
公告