H - Bit Substrings

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

Input

Output

Sample test(s)

Input
101
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
1 4 1 0
--- Showing first 30 lines (click "Copy" to get full content) ---