Backpack X(多重背包)
You have a total ofn
yuan. Merchant has three merchandises and their prices are 150 yuan, 250 yuan and 350 yuan. And the number of these merchandises can be considered as infinite. After the purchase of goods need to be the remaining money to the businessman as a tip, findingthe minimum tip
for the merchant.
Example
多重背包p2
Last updated