首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
verweggistan专题
UVA - 812 Trade on Verweggistan
题意:首先给你个w,表示几组货物,然后给你n以及n个数表示价格,10-价格是利润 每次只能取前i个,求最多的利润对应几个货物,不超过10个解 思路:首先是简单的计算最大的利润,然后就是储存所有的解,然后深搜出所有的可能 #include <iostream>#include <cstring>#include <algorithm>#include <cstdio>#includ
阅读更多...