摘要: #include <bits/stdc++.h> using namespace std; const int N = 1010; int main() { ios::sync_with_stdio(false); cin.tie(0); int n, m, k; cin >> n >> m >> 阅读全文
posted @ 2022-04-13 14:48 Xxaj5 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 并没有说根是谁 #include <bits/stdc++.h> using namespace std; using pii = pair<int, int>; const int N = 1E5 + 10; vector<int> g[N]; int depth[N]; bool flag[N] 阅读全文
posted @ 2022-04-13 11:33 Xxaj5 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 需要注意的地方: 我们只记录维京人的祖先,除了维京人的其他人不能记录它的祖先 #include <bits/stdc++.h> using namespace std; struct people { string name, familyname; char gender; }; map<stri 阅读全文
posted @ 2022-04-13 10:50 Xxaj5 阅读(39) 评论(0) 推荐(0) 编辑