摘要: https://codeforces.com/topic/135071 翻译 + 一点点理解。 记答案序列为 \(ans\)。 运用贪心与 DP 的思想,我们能轻易地 \(O(n)\) 求出任意单点 \(ans_i\) 的值。 现在观察 \(ans\) 序列的性质:它单调不增,且 \(0\le an 阅读全文
posted @ 2025-07-13 18:30 liangbowen 阅读(14) 评论(0) 推荐(0)