Solution for Fast Bit Counting in C++


Aug. 16, 2020 0.373143 seconds C++
int setbits(unsigned long long NUM){
    return __builtin_popcountll(NUM);
}

Editorial


No editorial for this problem. :(

Original Problem


You can view the original page for this problem on the DMOJ.