洛谷P5318 【深基18.例3】查找文献 题解 简单DFS/BFS 题目链接:https://www.luogu.com.cn/problem/P5318 题目大意:求图的dfs序及bfs序。 视频讲解地址:https://www.bilibili.com/video/BV1nuFve9Ecu/ 示例程序: #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 5; int n...
题目链接:https://www.luogu.com.cn/problem/P5318 题目大意:求图的dfs序及bfs序。 视频讲解地址:https://www.bilibili.com/video/BV1nuFve9Ecu/ 示例程序: #include <bits/stdc++.h>