cf/mirror

Shuffle

CF
1622D2000· candidate master2s512 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
7 2
1100110
Output
16
Sample 2of 4
Input
5 0
10010
Output
1
Sample 3of 4
Input
8 1
10001000
Output
10
Sample 4of 4
Input
10 8
0010011000
Output
1
1622D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)