摘要:
1 #include<stdio.h> 2 #include<string.h> 3 const int N = 1010; 4 const int M = 3000000; 5 struct Edge { 6 int u, v, next; 7 Edge() {} 8 Edge(int u, int v, int next) : u(u), v(v), next(next) {} 9 }E[M]; 10 int head[N], tot; 11 12 void addEdge(int u, int v) { 13 E[tot] = Edg... 阅读全文