This problem is used in private contest:2024届练习22 动态规划