Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The only way to make 115 is to use one coin of value 75 and four coins of value 10. Each turn uses up these many coins.
Hence the number of turns is <code>min(x, y / 4)</code>.
Determine the winner from its parity.