Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
safe = {1} solution in Clear category for The Stones by flpo
def stones(pile, moves):
safe = {1}
for i in range(2, pile+1):
if not({i - j for j in moves} & safe): safe.add(i)
return (pile in safe) + 1
Sept. 28, 2018