![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
链式向前星
Tw_light
这个作者很懒,什么都没留下…
展开
-
链式向前星存图
#include<iostream> #include<algorithm> #include<cstring> #include<cstdio> using namespace std; struct node { int to; int next; int w; }edge[100]; int head[100]; int t = 0; ...原创 2019-04-05 20:06:33 · 266 阅读 · 0 评论 -
dfs + 链式向前星
用链式向前星存图,用bfs求出起点到终点的最小步数 #include<iostream> #include<algorithm> #include<cstring> #include<cstdio> using namespace std; struct node { int to,next; int w; }edge[100]; int...原创 2019-04-05 20:15:16 · 273 阅读 · 0 评论