60pts 该怎么优化啊?

P1114 “非常男女”计划

枚举只能得60分,满分要用前缀和哦~
by Bisneyland @ 2023-08-15 19:08:17


枚举的复杂度是O(n²),前缀和是O(n)
by Bisneyland @ 2023-08-15 19:09:39


|