Middle European Mathematical Olympiad 2025 Problem T-1
Bob has coins with integer values
He is standing in front of a vending machine that offers candy bars with positive integer costs . Bob notices that for every , it holds that
Furthermore, the total value of Bob's coins equals the sum of the costs of all the candy bars. The candy bars can be purchased in any order. In order to buy the -th candy bar, Bob has to insert coins of total value at least . However, the machine does not give him back any change.
Prove that Bob can buy at least half of the candy bars.