2022-2023 集训队互测 Round 7 foo~ wukaichen888 · 2025-07-23 16:23:58 · 题解 考虑最优策略贡献。 最大值起阻断作用,移至开头,钦定其贡献 LIS/LDS。 直接硬做 DS,有简单 segment tree solution。