L
L
love_energy2017-09-20 12:06:50
Programming
love_energy, 2017-09-20 12:06:50

Olympiad problem about Stones. How to solve this problem?

There are N stones of weight A1,A2,...,AN.

It is necessary to split them into two heaps in such a way that the weights of the heaps differ by no more than 2 times. If this cannot be done, then indicate it.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question