![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spfa
shuaishuai-zhang
这个作者很懒,什么都没留下…
展开
-
SPFA——(模板)负环
原文链接:https://www.luogu.com.cn/problem/P3385AC代码:#include<iostream>#include<string.h>#include<vector>#include<algorithm>using namespace std;int T,n,m;int head[2005],cnt...原创 2020-04-19 12:08:16 · 122 阅读 · 0 评论 -
spfa——最小花费
原文链接:https://www.luogu.com.cn/problem/P1576AC代码:#include<iostream>#include<vector>#include<string.h>#include<iomanip>#include<algorithm>using namespace std;int n...原创 2020-04-11 16:30:17 · 112 阅读 · 0 评论 -
spfa
原文链接:https://www.luogu.com.cn/problem/P1907AC代码:#include<iostream>#include<string.h>#include<vector>#include<math.h>#include<iomanip>#include<algorithm>usi...原创 2020-03-31 10:13:29 · 246 阅读 · 0 评论