292. Nim Game

原题链接:https://leetcode.com/problems/nim-game/description/
这是一道牛逼哄哄的脑筋急转弯题目:

/**
 * Created by clearbug on 2018/2/26.
 */
public class Solution {

    public static void main(String[] args) {
        Solution s = new Solution();
    }

    /**
     * 这是一道脑筋急转弯题目,奈何我脑筋太笨,没解出来,参考了别人的博客
     *
     * @param n
     * @return
     */
    public boolean canWinNim(int n) {
        return n % 4 != 0;
    }

}

参考

https://blog.csdn.net/nomasp/article/details/50389513

posted @ 2018-04-08 11:20  optor  阅读(110)  评论(0编辑  收藏  举报