AN. 数1的个数 - 课例题

    Type: Default 1000ms 256MiB

数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.

说明

给定一个十进制正整数n,数一下每一位出现数字“1”,的个数。例如当n=11912时,其中出现了3个“1”。

输入格式

一个正整数n。1<=n<=10^9

输出格式

一个正整数,即“1”的个数。

样例

11912
3

这些题都有点善

Not Attended
Status
Done
Rule
XCPC
Problem
42
Start at
2025-1-18 13:45
End at
2025-3-5 20:45
Duration
1111 hour(s)
Host
Partic.
17