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
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
India Languages,
1 month ago
India Languages,
1 month ago
Hindi,
1 month ago
Chemistry,
2 months ago
Chemistry,
9 months ago
English,
9 months ago