You are viewing a single comment's thread. Return to all comments →
C++
char zeroMoveNim(vector<int> p) { int xr = 0; for(auto n : p) xr ^= n + ((n&1)<<1) - 1; return xr ? 'W' : 'L'; }
In the text of C++ program next error strings should be commented or deleted otherwise the program will abort
string n_temp; getline(cin, n_temp); int n = stoi(ltrim(rtrim(n_temp)));
Seems like cookies are disabled on this browser, please enable them to open this website
Zero-Move Nim
You are viewing a single comment's thread. Return to all comments →
C++
In the text of C++ program next error strings should be commented or deleted otherwise the program will abort