This problem is in Contest(s) below:
Contest 1395:【算法设计与分析】实验五
Contest 1401:【算法设计与分析】实验5 动态规划算法设计与实践1
Contest 1526:算法实验5