leetcode 292

 1 class Solution {
 2 public:
 3     bool canWinNim(int n) {
 4        int a,b;
 5        bool ok=true;
 6       if(n%4==0)
 7       ok=false;
 8       return ok;
 9     }
10 };

 

posted @ 2016-07-20 15:16  HYDhyd  阅读(130)  评论(0编辑  收藏  举报