Home => ProblemSet => 2.12-28:二进制中1的个数
Problem1511--2.12-28:二进制中1的个数

1511: 2.12-28:二进制中1的个数

Time Limit: 1 Sec  Memory Limit: 128 MB  Submit: 0  Solved: 13
[ Submit ] [ Status ] [ Creator: ][ 参考程序 ]

Description

给定一个整数,计算其二进制中1的个数

Input

一行一个整数n

Output

一行一个整数,表示n的二进制中1的个数

Sample Input Copy

3

Sample Output Copy

2

HINT

样例解释:
3的二进制00000000000000000000000000000011,1的个数为2


样例二:
输入:
1
输出:
1


1 <= n <= 2^31  -1

Source/Category