Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ main
Function
main
CPP/bitmasking/count_bits.cpp:25–33 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
23
return ans;
24
}
25
int main(){
26
cin.tie(0)->sync_with_stdio(0);
27
int n;
28
cin>>n;
29
30
cout<<countBit(n)<<endl;
31
cout<<countBit_fast(n)<<endl;
32
return 0;
33
}
34
35
Callers
nothing calls this directly
Calls
2
countBit
Function · 0.85
countBit_fast
Function · 0.85
Tested by
no test coverage detected