DescriptionInputOutputSample Input6 2 160 163 164 161 167 160 2 3 Sample Output6 3 1 HintSourcewyx528命题