随笔分类 - 随机化
摘要:洛谷传送门 CF 传送门 世纪难题。 首先我们考虑先固定 ,比如让 (重复问 直到回答为 =),那么此时我们可以知道任意一个 和 的大小关系(问一次 再问一次 ),并且可以知道 的具体值
阅读全文
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/CF1840G2 "洛谷传送门") [CF 传送门](https://codeforces.com/problemset/problem/1840/G2 "CF 传送门") 每次询问获得的信息只有当前所在位置的数字。考
阅读全文
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/CF1830C "洛谷传送门") [CF 传送门](https://codeforces.com/contest/1830/problem/C "CF 传送门") 每一步思路都非常自然的题。 考虑先从一些简单的 cas
阅读全文
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc161_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc161/tasks/arc161_e "AtCoder 传送门") 给构造题提供了一种
阅读全文
摘要:洛谷传送门 AtCoder 传送门 首先 ( 个 )对能被 整除子串数量的贡献是 。 把 分解成若干 使得 $\sum\limits_{i=1}^m \frac{x_i(x_i+1)}{
阅读全文