e
nes
Equalize Weights
- Problem Description
There are N bags. Each bag contains
ase different number of goods. Goods can
issionse of different weights. The goal is to
equalize the weights in the bags
ase
subject to constraints explained below.
issionsAlso, it is guaranteed that the bags can
always be equalized with same total
aluated
Weight
missions
Original number of goods in the bag
back
should be same before and after
equalization
hs
Any number of swaps required to do
equalization, are permitted
istics
Once the weights are equalized one
needs to adhere to output specification
to print out the result.
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
Answers
Answered by
0
Answer:
dds aap pe aap kal clap aap rup flat clear ccl ccl do aap aap do ccl ccl
Similar questions