Fork me on github

除数博弈

https://leetcode-cn.com/problems/divisor-game/

直接找规律,偶数赢,奇数输。。。

class Solution {
    public boolean divisorGame(int N) {
        return N % 2 == 0;
    }
}
posted @ 2020-07-24 19:11  zjy4fun  阅读(100)  评论(0编辑  收藏  举报