This problem is in Contest(s) below:
Contest 1536:练习2(线性dp,背包)
Contest 1585:练习2(线性dp,背包)
Contest 1547:昌乐二中提高复习+预习题目20220910
Contest 1591:区一中dp练习
Contest 1920:七、八年级基础算法复习题目
Contest 1544:区一中测试