This problem is in Contest(s) below:
Contest 1048:动态规划进阶
Contest 1128:基础班动态规划
Contest 1062:小学省赛集训动规专题