int n; int h[MAX_N], nxt[MAX_N * MAX_N], to[MAX_N * MAX_N], val[MAX_N * MAX_N], tot; void Make_Edge(int u, int v, int w) { to[++tot] = v; val[tot] = w; nxt[tot] = h[u]; h[u] = tot; return; }
【模板】链式前向星
猜你喜欢
转载自www.cnblogs.com/kcn999/p/10544988.html
今日推荐
周排行