优美的链式前向星

首先贴上一份贴别好的blog详细的介绍了链式前向星的全过程: 链式前向星 贴上一份板子: #include <bits/stdc++.h> using namespace std; const int maxn = 4e5+100; struct node{ int to, next, weight; }edge[maxn]; int cnt; int head[maxn]; int n;
相关文章
相关标签/搜索