This problem is in Contest(s) below:
Contest 1011:动态规划课堂练习
Contest 1075:长训班背包专题
Contest 1176:基础课程-背包DP
Contest 1117:背包专题