From 0a860bd063275df4d07d1bade209bf99fc1b8a42 Mon Sep 17 00:00:00 2001 From: kamyu Date: Sun, 14 Apr 2019 15:31:31 +0800 Subject: [PATCH] Update divisor-game.py --- Python/divisor-game.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/divisor-game.py b/Python/divisor-game.py index d41b7dc93a..515cfb8434 100644 --- a/Python/divisor-game.py +++ b/Python/divisor-game.py @@ -12,5 +12,6 @@ def divisorGame(self, N): # 2. if Bob gets an odd, he can only choose x = 1 or other odds # and Alice can still get an even # 3. at the end, Bob can only choose x = 1 and Alice wins - # 4. in summary, Alice wins if only if she gets even + # 4. in summary, Alice wins if only if she gets an even and + # keeps even until Bob loses return N % 2 == 0