1 static int wing=[]() 2 { 3 std::ios::sync_with_stdio(false); 4 cin.tie(NULL); 5 return 0; 6 }(); 7 8 class Solution 9 { 10 public: 11 bool canWinNim(int n) 12 { 13 return n%4; 14 } 15 };
只要石头数量不是4的倍数就能赢