You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bradendubois edited this page Jun 9, 2021
·
6 revisions
Take Two Stones
ID: twostones
Difficulty: 1.3
CPU Time: 1 second
Memory: 1024 MB
Solution
Just looking at the sample data, it appears that any odd N results in a win for Alice, and any even
N results in a win for Bob. Modulo division (N % 2) can tell whether the number is even or not.