个人记录2年前生宣算法学习笔记 · frac m B),所以 B = √ n log n 时最优。 submission 天依宝宝可爱! 莫队 通过对询问排序,来优化暴力复杂度littlebug·26 次浏览