Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
pyth
SUBMITTED BY:
frozenbits
DATE:
Feb. 9, 2016, 9:49 p.m.
FORMAT:
Text only
SIZE:
132 Bytes
Raw
Download
Tweet
HITS:
5035
Go to comments
Report
i=input
t=int
n=t(i())
for r in range(n):
c=0
x=t(i())
while x>0:
c+=x%2
x>>=1
print(c)
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus