标签:next style code bsp head str int add col
int head[2*N]; struct Edge{ int to,next,w; }; Edge edge[N]; void add(int u,int v,int w){ edge[cnt].w=w;edge[cnt].to=v;edge[cnt].next=head[u];head[u]=cnt++; edge[cnt].w=w;edge[cnt].to=u;edge[cnt].next=head[v];head[v]=cnt++; } for(int i=head[u];~i;i=edge[i].next)
标签:next style code bsp head str int add col
原文地址:https://www.cnblogs.com/Leonard-/p/8900678.html