标签:
Haha, an interesting problem. Just try to let your opponent start with a nunber that is an integer multiple of 4.
1 class Solution { 2 public: 3 bool canWinNim(int n) { 4 return n % 4; 5 } 6 };
标签:
原文地址:http://www.cnblogs.com/jcliBlogger/p/4875091.html