Data input is exactly the same as in a backpack, only the total weight must be such that when adding any other object to the optimal set, the weight must exceed the specified W, and the cost of the objects must be minimal
- 2What is a backpack? and what kind of weight and cost are we talking about? The invasion of the clones? :) - NewView
- Yes, please complete the task. - Anton Sorokin
- It is clear that this task is implied. - Alexander Petrov
- It can be reduced to the classical problem, attributing "-" to the value of the items. - Chorkov
|