#D. 【例44.2】 1的个数

    Type: RemoteJudge 1000ms 256MiB

【例44.2】 1的个数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

给定一个十进制非负整数 NN,求其对应 22 进制数中 11 的个数。

输入格式

输入包含一行,包含一个非负整数 NN。(N109N≤10^9 )

输出格式

输出一行,包含一个整数,表示 NN22 进制表示中 11 的个数。

样例

100
3

20240123-B

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
6
Start at
2024-1-23 17:30
End at
2024-1-23 18:30
Duration
1 hour(s)
Host
Partic.
7