This problem is in Contest(s) below:
Contest 1075:长训班背包专题
Contest 1111:动态规划复习
Contest 1117:背包专题