11 2021 档案

摘要:前序 + 中序 #include<iostream> #include<deque> using namespace std; deque<int> rear,center,pref; void build(deque<int> pre,deque<int> cen){ int temp; if(p 阅读全文
posted @ 2021-11-22 11:20 Xuuxxi 阅读(40) 评论(0) 推荐(0) 编辑
摘要:食物链 带权并查集 #include<iostream> using namespace std; const int N = 100010; int p[N],d[N]; int n,k; int res = 0; int find(int x){ if(p[x] != x){ int rot = 阅读全文
posted @ 2021-11-15 21:21 Xuuxxi 阅读(52) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示