• + 0 comments
    string counterGame(long n) {
        int c = __builtin_popcountll(n) - 1 +__builtin_ctzll(n);
        return ((c & 1) == 0) ? "Richard" :"Louise";
    }