数字游戏 (Number Games)
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Description
Little K sent a binary string of length to Little P to play a number game. Little P wants to know how many times the character occurs in the string.
Note: A binary string is a string in which each character is either or . E.g., "101
" (withuot quotes) is a binary string of length .
Input Format
The input has only one line consisting of a binary string of length .
Output Format
Print the number of times the character occurs in .
00010100
2
Constraints
For of the data, all characters in the string are s.
For of the data, the input may contain both s and s. The length of the string is .
2023级晚训第4周练习,截止时间为10天
- 状态
- 已结束
- 规则
- IOI
- 题目
- 12
- 开始于
- 2023-11-6 21:45
- 结束于
- 2023-12-6 21:45
- 持续时间
- 720 小时
- 主持人
- 参赛人数
- 132