摘要:
#include <bits/stdc++.h> using namespace std; struct toposort { vector<vector<int>> e; vector<int> tp , din; int n ; toposort() {} toposort(int n) { t 阅读全文
posted @ 2023-12-12 23:09
Ke_scholar
阅读(42)
评论(0)
推荐(0)
摘要:
P1525 [NOIP2010 提高组] 关押罪犯 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 种类并查集 #include <bits/stdc++.h> #define debug(a) cout<<#a<<"="<<a<<'\n'; using namespace std 阅读全文
posted @ 2023-12-12 17:24
Ke_scholar
阅读(59)
评论(0)
推荐(0)
摘要:
include <bits/stdc++.h> using namespace std; struct LCA { int n; vector<int> dep; vector<vector<int>> e; vector<array<int, 21>> fa; LCA() {} LCA(int n 阅读全文
posted @ 2023-12-12 02:08
Ke_scholar
阅读(39)
评论(0)
推荐(0)

浙公网安备 33010602011771号