Computer Science, asked by reventhpendyala, 2 months ago

You are the proud owner of two shops. The first shop contains N
different goods and all the goods are distinguishable from one another.
You want to move all the goods from the first shop to the second shop.
The goods can either weigh 100 grams or 300 grams. You can carry at
max K grams of goods at a time.
Also, while moving from one shop to another, you always have to carry
some goods with you, that is, never move empty-handed. In case you
move from the second shop to the first shop, then also you should
carry at least one
gbod.

Answers

Answered by prajwalchaudhari
0

Answer:

different goods and all the goods are distinguishable from one another.

You want to move all the goods from the first shop to the second shop.

The goods can either weigh 100 grams or 300 grams. You can carry at

max K grams of goods at a time.

Also, while moving from one shop to another, you always have to carry

some goods with you, that is, never move empty-handed.

Similar questions