優美的鏈式前向星

首先貼上一份貼別好的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;
相關文章
相關標籤/搜索