View Code #include<stdio.h>#include<string.h>#include<algorithm>#include<queue>using namespace std;#define maxn 110#define maxm 6000#define inf 1000000000int min(int a, int b){ return a < b ? a : b;}struct E{ int u, v, next, c, w;}edge[maxm<<2];int head[maxn], tot;in Read More
posted @ 2012-10-24 16:50 To be an ACMan Views(148) Comments(0) Diggs(0)
View Code #include<stdio.h>#include<string.h>#include<algorithm>#include<queue>using namespace std;#define maxn 100300#define maxm 200003#define inf 1000000000int min(int a, int b){ return a < b ? a : b;}struct E{ int u, v, c, w, next;}edge[maxm<<3];int head[maxn], t Read More
posted @ 2012-10-24 16:45 To be an ACMan Views(169) Comments(0) Diggs(0)