PROJECT EULER · #0960
Stone Game Solitaire
There are
- Choose any two piles and remove exactly
stones in total from the two piles. - If the number of stones removed from the two piles were
and , add to the score.
If all piles are eventually emptied, the current score is confirmed as final. However, if one gets "stuck" and cannot empty all piles, the current score is discarded, resulting in a final score of
Three example sequences of turns are illustrated below for
Define
You are given
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.