//背包问题变形 #include #include int main(void) { int money, num; scanf("%d%d", &money, &num); int satisfy[60][4]; int value[60][4]; memset(satisfy, 0, sizeof(satisfy)); memset(value, 0, sizeof(value)); for (int i = 0; i < num; i++) { int v, p, q; ...