This problem is in Contest(s) below:
Contest 1270:背包
Contest 1156:c++0414练习1400-1410
Contest 1157:python-0414练习1400-1410