Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try working backward: consider all trivial states you know to be winning or losing, and work backward to determine which other states can be labeled as winning or losing.