纯纯找规律。。。。。。
由此可见,奇数Bob 赢,偶数Alice赢
(洋洋洒洒写十行,最后代码就两行):
class Solution:
def divisorGame(self, n: int) -> bool:
if(n%2==0):
return True
else:
return False
纯纯找规律。。。。。。
由此可见,奇数Bob 赢,偶数Alice赢
(洋洋洒洒写十行,最后代码就两行):
class Solution:
def divisorGame(self, n: int) -> bool:
if(n%2==0):
return True
else:
return False