cf/mirror

Case of the Zeros and Ones

CF
556A900· newbie1s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 3
Input
4
1100
Output
0
Sample 2of 3
Input
5
01010
Output
1
Sample 3of 3
Input
8
11101111
Output
6
556A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)