数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
菜就使劲练!!!
- Status
- Done
- Rule
- XCPC
- Problem
- 11
- Start at
- 2024-8-16 13:30
- End at
- 2024-8-16 17:00
- Duration
- 3.5 hour(s)
- Host
- Partic.
- 10