rt。
维护以下操作:
区间加
求区间内有多少个小于一个已知数 xxx。
已知分块 lower_bound 很简单能做到 O(mnlogn)O(m\sqrt{n}\log{n})O(mnlogn)。有无更优化做法?
lower_bound