P2560 [AHOI2002] Kitty Cat Gene Mutation

Description

![](https://cdn.luogu.com.cn/upload/pic/1682.png) ![](https://cdn.luogu.com.cn/upload/pic/1683.png)

Input Format

![](https://cdn.luogu.com.cn/upload/pic/1684.png)

Output Format

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

Explanation/Hint

Translated by ChatGPT 5