Memory
\n# Code\n\nint fastIO = []{ ios_base::sync_with_stdio(false); cin.tie(NULL); return 0; }();\n\nclass Solution {\npublic:\n    bool stoneGameIX(vector<int>& sto
\n# Code\n```\nint fastIO = []{ ios_base::sync_with_stdio(false); cin.tie(NULL); return 0; }();\n\nclass Solution {\npublic:\n    bool stoneGameIX(vector<int>& stones) {\n        int arr[3];\n        for(int i:stones) ++arr[i%3];\n        return min(arr[1],arr[2])==0?abs(arr[2]-arr[1])>2 && arr[0]%2==1:abs(arr[2]-arr[1])>2 || arr[0]%2==0;\n\n    }\n};\n```
['C++']