摘要:
A 模拟大数取模 #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int maxn = 10000000 + 1; const int mod = 10001; char s[maxn 阅读全文
摘要:
虽然叫做dsu on tree,但是其实没有用到dsu,只是借鉴了dsu的启发式合并 启发式合并的精髓就是将轻节点的信息合并到重节点上,对轻节点进行暴力维护。 #include<bits/stdc++.h> using namespace std; typedef long long ll; typ 阅读全文