2023年5月11日
摘要: 背包问题 1、0-1背包 你有一个载重为M的背包,现在有N个物品,每个物品重量为weight[i],价值为value[i],求在不超出载重的情况下,能取到的最大价值为多少? public static void main(String[] args) { Scanner scanner = new 阅读全文
posted @ 2023-05-11 17:43 gyp666 阅读(41) 评论(0) 推荐(0)