随笔分类 - 集训
摘要:### H  新外号: 这题就有点一眼了, 最多只会减少 次,那就直接每个节点开一个 `vector` ,维护前缀和后缀的整体 $\g
阅读全文
摘要:### A 我不打了,但是考场上没想起来排列 `stl` 怎么写,所以在下面打 10 遍 ``` next_permutation next_permutation next_permutation next_permutation next_permutation next_permutation
阅读全文
摘要:T1 过水已隐藏 T2 整体二分经典题,主席树上二分也可以 在二分时要算一个国家的每一个出现位置,看起来是不行的但是均摊一下没有问题 使用~~线段树~~树状数组辅助计算答案 最大的答案会爆long long,开 ull #include <iostream> #include <vector> #d
阅读全文