struct{ int v, w, next; } a[100000]; int head[50000],dis[50000],cnt[50000]; bool vis[50000];
只有这样才能a,不然就RE?