2014年7月17日

hdu1535 spfa反向表示多到一

摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 struct Edge 7 { 8 int to; //边终点 9 int w; //边值10 int next;//结构体模拟链... 阅读全文

posted @ 2014-07-17 17:24 xiao_xin 阅读(125) 评论(0) 推荐(0) 编辑

hdu2145 邻接表spfa

摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 struct Edge 7 { 8 int to; //边终点 9 int w; //边值10 int next;//结构体模拟链... 阅读全文

posted @ 2014-07-17 17:22 xiao_xin 阅读(94) 评论(0) 推荐(0) 编辑

导航