All submissions for this problem are available.
Write a program to find the number of set bits in the binary representation of a decimal number and print its ouptut in the proper coded format as given by the test cases below.
The first line consists of number of test cases and next lines consist of the number to be coded.
Output should be the number of set bits in the binary notation of the number
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||CPP14, PYTH 3.6, PYPY, GO, NODEJS, rust, swift, WSPC, ICK, BF, PRLG, JS, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, COB, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.