摘要:
P4178 Tree 点击查看代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 100005; int n, m, p[N], q[N], h[N], e 阅读全文
摘要:
最短路 P4779 【模板】单源最短路径(标准版) #include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i <= (b); ++i) #define ROF(i, a, b) for 阅读全文