摘要:
#include <bits/stdc++.h> using namespace std; const int N = 1000; int to[N], v[N], ne[N], h[N]; //to代表连接的点,v代表边权,ne代表next,h代表head int idx; //idx即index 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; typedef 阅读全文