Shuffle
1622D2000· candidate master2s512 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
7 21100110
Output
16
Sample 2of 4
Input
5 010010
Output
1
Sample 3of 4
Input
8 110001000
Output
10
Sample 4of 4
Input
10 80010011000
Output
1
58%
1622D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)