摘要: "题面" 主席树启发式合并,每次连边维护并查集,集合大小,求lca所需信息,合并两个树上的主席树, 重点看代码. cpp include include include include include using namespace std; const int N = 8e4 + 1, M = 2 阅读全文
posted @ 2019-02-23 22:24 茶Tea 阅读(125) 评论(0) 推荐(0) 编辑
摘要: "题面" Source: unordered_map: cpp include include include include using namespace std; const int maxM = 200005; define LL long long char mp[20][20]; int 阅读全文
posted @ 2019-02-23 15:57 茶Tea 阅读(105) 评论(0) 推荐(0) 编辑