摘要:
题意:单向图求最短路径数 思路:跑一遍SPFA,然后需要在原有的模板上有所修改。注释写在代码中 首先来一份91分的代码 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int inf=0x3f3f3f3f; 4 const int m 阅读全文
摘要:
题意:概括起来就是:删除任意最短路径上的边,然后求出最大的最短路 思路:0.0 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int inf=0x3f3f3f3f; 4 const int maxn=1e3+10; 5 int vi 阅读全文