码迷,mamicode.com
首页 > 其他好文 > 详细

Nim游戏

时间:2018-04-26 23:35:14      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:col   class   nbsp   turn   false   游戏   nim   ret   div   

1 class Solution {
2 public:
3     bool canWinNim(int n) {
4          if(n % 4 == 0)  return false;  
5         else    return true; 
6     }
7 };

 

Nim游戏

标签:col   class   nbsp   turn   false   游戏   nim   ret   div   

原文地址:https://www.cnblogs.com/cwfzzz/p/8955251.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!