This problem is in Contest(s) below:
Contest 1512:动态规划基础练习
Contest 1709:动态规划基础练习