原题 有一个人可以洞察市场动向,他能知道10天后商品的价格,请问如何分配其本金才能将其收益最大化?Input:总计本金:x商品种类:m各种类的价格:a, b, c, ...各种类的限购数量:1, 2, 3, ...各种类10天后的价格:A, B, C, ...Output:这个人10天后的总金 示例:1126 53 25 3输出:18 1.零一背包 参考这位大佬,强烈建议阅读;解答: #include <vector> #include <iostream> #include <string> #include <algorithm> using...