




Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
How many times does every stick contribute to the answer?
Some of the sticks will be used more than the others. Which sticks should be used the most/least?
The sticks with long lengths cost a lot so we should use these the least.
What if we keep merging the two shortest sticks?