#P2560. [AHOI2002] Kitty猫基因突变

[AHOI2002] Kitty猫基因突变

Description

Input Format

Output Format

Output, in a single line, the evaluation metric of the mutation scheme with the best performance.

3 2
11000101
10 10 5 6 3 2 1 2
9

Hint

Translated by ChatGPT 5