https://leetcode-cn.com/problems/nim-game/
如果是4的倍数无论如何拿都是必输。
class Solution {
public:
bool canWinNim(int n)
{
if(n%4) return true;
return false;
}
};

https://leetcode-cn.com/problems/nim-game/
如果是4的倍数无论如何拿都是必输。
class Solution {
public:
bool canWinNim(int n)
{
if(n%4) return true;
return false;
}
};