为什么要n<m?
查看原帖
为什么要n<m?
345930
Gold14526神金楼主2025/2/4 11:37

我看题解里分析的答案大小是 O(log⁡n+mn)O(\log n+\frac{m}{n}),乘上 nn 得复杂度 O(nlog⁡n+m)O(n\log n+m),与 nn 和 mm 的大小无关,为什么一定要 n≤mn\le m 才能通过?

2025/2/4 11:37
加载中...