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