求助集合插入,查 kkk 小的 O(n)−O(1)O(\sqrt n)-O(1)O(n)−O(1) 做法。值域是 O(n)O(n)O(n) 的。
O(1)−O(n)O(1)-O(\sqrt n)O(1)−O(n) 做法显然