There are N bags. Each bag contains different number of goods. Goods can be of different weights. The goal is to equalize the weights in the bags subject to constraints explained below. Also, it is guaranteed that the bags can always be equalized with same total weight.The output specification is as follows The contents of the Bag that contains the lightest weight should be printed in the first line The next lightest Bag contents should be printed on the second line So on and so forth, until all Bags along with their contents are printed Contents within the Bag must be printed in non-decreasing order
Answers
Answered by
1
Answer:
good morning
Explanation:
hi
Similar questions
Math,
3 months ago
English,
3 months ago
English,
7 months ago
Computer Science,
11 months ago
Math,
11 months ago