这个题物品数量不能单独计数,你把输入改成for循环,把a[c].V改成a[i].V,然后后面dp的时候第一层for循环m就好了 by _Initialize_ @ 2023-10-06 17:00:49
这不是#2吗 by pdxdydz @ 2023-12-07 16:20:47