//转化为背包问题 #include <stdio.h> int main(){ int N,m; //总钱数、希望购买物品的个数 int v,p,q; //v物品价格、p物品重要程度、q=0为主件 q>0为某主件的附件,q值就是主件的编号 /*1000 5 &...