#D8832. Bit String Reordering
Bit String Reordering
Bit String Reordering
Example
Input
6 3 1 0 0 1 0 1 1 3 2
Output
1
inputFormat
Input
6 3 1 0 0 1 0 1 1 3 2
outputFormat
Output
1
样例
6 3
1 0 0 1 0 1
1 3 2
1
Example
Input
6 3 1 0 0 1 0 1 1 3 2
Output
1
Input
6 3 1 0 0 1 0 1 1 3 2
Output
1
6 3
1 0 0 1 0 1
1 3 2
1
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.