This problem is in Contest(s) below:
Contest 1248:动态规划—背包问题
Contest 2221:动态规划基础2022
Contest 1512:动态规划基础练习
Contest 1709:动态规划基础练习
Contest 1950:动态规划基础练习