随笔分类 -  最短路

摘要:最短路用spfa写的#include#include#include#include#definemax100000500usingnamespacestd;longlongintt,n,m,a,b,c,d1[1000500],d2[1000500],flag[1000500],head2[1000... 阅读全文
posted @ 2015-08-06 17:32 澧浦 阅读(108) 评论(0) 推荐(0)
摘要:1 //hdu 2544 最短路 floyd 2 #include 3 int main() 4 { 5 int e[201][201]; 6 int inf=99999999; 7 int n,m; 8 int i,j,k; 9 int t1,t2,t3;10 whil... 阅读全文
posted @ 2015-08-04 10:44 澧浦 阅读(328) 评论(0) 推荐(0)