E. 数字游戏 (Number Games)

    Type: Default 1000ms 256MiB

数字游戏 (Number Games)

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.

Description

Little K sent a binary string of length 88 to Little P to play a number game. Little P wants to know how many times the character 11 occurs in the string.

Note: A binary string is a string in which each character is either 00 or 11. E.g., "101" (withuot quotes) is a binary string of length 33.

Input Format

The input has only one line consisting of a binary string ss of length 88.

Output Format

Print the number of times the character 11 occurs in ss.

00010100
2

Constraints

For 20%20\% of the data, all characters in the string are 00s.
For 100%100\% of the data, the input may contain both 00s and 11s. The length of the string is 88.

C++|1ST|2024-12-13練習

Not Claimed
Status
Done
Problem
9
Open Since
2024-12-13 0:00
Deadline
2024-12-21 23:59
Extension
24 hour(s)