会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
superPG
博客园
首页
新随笔
联系
订阅
管理
2022年8月6日
2023.6.8 AcWing LeetCode
摘要: AcWing 二分 + DFS树遍历 注意,虽然树中边的数量为顶点数-1,但是由于实际中将无向边存为两条有向边,所以数组开辟的边数个数要是顶点数的两倍。 #include<bits/stdc++.h> using namespace std; const int N = 1e5 + 10; int
阅读全文
posted @ 2022-08-06 09:16 superPG
阅读(22)
评论(0)
推荐(0)
编辑
公告