摘要:
Disjoint Set Union On Tree ,似乎是来自 Codeforces 的一种新操作,似乎被叫做“树上启发式合并”。 在 不带修改的有根树子树信息统计 问题中,似乎树上莫队和这个 DSU On Tree 是两类常规操作。 先对树按轻重链剖分。对于每个节点,先计算轻儿子为根的子树信息 阅读全文
摘要:
A. 函数 include include include include using namespace std; define SC(a, b) (static_cast(b)) typedef long long ll; double K; struct data { int x, y; da 阅读全文