292. Nim Game

class Solution(object):
def canWinNim(self, n):
"""
:type n: int
:rtype: bool
"""
if n%4==0:
return False
else:
return True
posted @ 2018-08-18 05:32  ffeng0312  阅读(104)  评论(0)    收藏  举报