正文
增加 2 行删除 2 行
123456789101112131415128 行未改动全部展开## 2025.9.2### [[集训队作业2018]Simple Tree](https://uoj.ac/problem/435)考虑使用 top cluster 树分块,对每个块开通维护值域,值域大小只需开双倍操作次数。这样空间是 $O(m\sqrt n)$ 的,考虑每 $\sqrt m$ 次操作 $O(n)$ 重构一次值域,这样每次开桶的大小为 $O(\sqrt m)$ ,总复杂度为 $O(n\sqrt m+m\sqrt n)$ 。[submission](https://uoj.ac/submission/789637)### [P5305 [GXOI/GZOI2019] 旧词](https://www.luogu.com.cn/problem/P5305)第二次写,使用 top cluster 分解,$O(\sqrt n)$ 修改,$O(1)$ 查询。[submission](https://www.luogu.com.cn/record/234076396)### [P6778 [Ynoi2009] rpdq](https://www.luogu.com.cn/problem/P6778)128 行未改动全部展开123456789101112131415128 行未改动全部展开## 2025.9.2### [[集训队作业2018]Simple Tree](https://uoj.ac/problem/435)考虑使用 top cluster 树分块,对每个块开通维护值域,值域大小只需开双倍操作次数。这样空间是 $O(m\sqrt n)$ 的,考虑每 $\sqrt m$ 次操作 $O(n)$ 重构一次值域,这样每次开桶的大小为 $O(\sqrt m)$ ,总复杂度为 $O(n\sqrt m+m\sqrt n)$ 。[submission](https://uoj.ac/submission/789637)### [P5305 [GXOI/GZOI2019] 旧词](https://www.luogu.com.cn/problem/P5305)第二次写,使用 top cluster 分解,$O(\sqrt n)$ 修改,$O(1)$ 查询。[submission](https://www.luogu.com.cn/record/234076396)### [P6778 [Ynoi2009] rpdq](https://www.luogu.com.cn/problem/P6778)128 行未改动全部展开