题解:CF159E Zebra Tower tang_zdx · 2026-01-29 15:47:02 · 题解 思路 先看暴力解法 每次枚举两种颜色,复杂度 O(n^2)。 正解 优化掉枚举两种,改为只枚举一种,预处理另一种的最优解。 AC 记录