Shirlies
宁静专注认真的程序媛~
摘要: 最短路Dijkstra算法,用优先队列。。。代码如下: 1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 #include <vector> 5 using namespace std; 6 7 const int maxn = 50010; 8 struct node 9 {10 int v;11 int w;12 };13 14 typedef pair<int,int> pii;15 vector<node> p[2*maxn];16 int 阅读全文
posted @ 2012-04-18 17:14 Shirlies 阅读(356) 评论(0) 推荐(0) 编辑