看 Solution 可以知道这道题有 O(mn)O(m\sqrt{n})O(mn) 的正解做法,我个人目前知道可以用 Fractional Cascading 做到这个复杂度,所以正解真的是这个吗((
感觉有点太屑了