@[1111111x](/user/1086459) 您好,先不说您代码的正确性,光 $n\le200000$,您代码的两重循环就已经炸掉了。
by __PRO__ @ 2024-01-28 08:42:10
哦?
by Ghy_boy @ 2024-01-28 08:45:03
@[1111111x](/user/1086459) 你可以尝试使用 [`map`](https://oiwiki.org/lang/csl/associative-container/#map)
by zhouzihang1 @ 2024-01-28 08:56:25
@[zhouzihang1](/user/827018) 谢谢
by Ghy_boy @ 2024-01-28 09:04:14