# LeetCode - 0292. Nim Game ### 題目網址:https://leetcode.com/problems/nim-game/ ###### tags: `LeetCode` `Easy` `數學` `拈(Nim)` ```cpp= /* -LeetCode format- Problem: 292. Nim Game Difficulty: Easy by Inversionpeter */ class Solution { public: bool canWinNim(int n) { return n & 3; } }; ```