You are viewing a single comment's thread. Return to all comments →
c++
string counterGame(long n) { std::bitset<sizeof(long) * 8> bits = n-1; if(bits.count() % 2 == 0){ return "Richard"; } return "Louise"; }
Seems like cookies are disabled on this browser, please enable them to open this website
Counter game
You are viewing a single comment's thread. Return to all comments →
c++