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