会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JasonPeng1
博客园
首页
新随笔
联系
订阅
管理
2020年2月11日
图的遍历——A1013Battle over cities(25) 求需要添加多少条边才能构成连通图转化为找连通分量(可由DFS 和 并查集来找连通分量)
摘要: #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int N = 1111; vector<int> G[N];//邻接表 bool
阅读全文
posted @ 2020-02-11 10:28 JasonPeng1
阅读(181)
评论(0)
推荐(0)
公告