程式語言 - LeetCode - C++ - 292. Nim Game



題目:


解答:

class Solution {
public:
    bool canWinNim(int n) {
        return n % 4 != 0;
    }
};