C - Coloring tiles

Languages: C, C++, Java, Python, Kotlin
Time & Memory limits: (details)

Input

Output

Sample test(s)

Input
000
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
1
--- Showing first 30 lines (click "Copy" to get full content) ---
Input
10010010
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
3
--- Showing first 30 lines (click "Copy" to get full content) ---
Input
0
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
0
--- Showing first 30 lines (click "Copy" to get full content) ---

Notes