vector 选手,一直看不懂算法竞赛进阶指南上的邻接表
void add(int x,int y,int z){ ver[++tot]=y; edge[tot]=z; next[tot]=head[x]; head[x]=tot; }
还有人用结构体写,而且由不同的版本,请问结构体版本怎么写?