摘要: template<class Node> struct PersidentSegmentTree { #define lc(u) tr[u].l #define rc(u) tr[u].r #define val(u) tr[u].v const int n; int tot = 0; vector 阅读全文
posted @ 2024-08-07 19:42 Ke_scholar 阅读(7) 评论(1) 推荐(0) 编辑
摘要: P3834 【模板】可持久化线段树 2 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) #include <bits/stdc++.h> using namespace std; using i64 = long long; template<class Node> struct 阅读全文
posted @ 2024-08-07 19:41 Ke_scholar 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 我刷的主席树 主席树 阅读全文
posted @ 2024-08-07 19:39 Ke_scholar 阅读(1) 评论(0) 推荐(0) 编辑