DescriptionInputOutputSample Input10 7 3 8 9 10 4 1 5 10 0 10 0 1 1 4 4 0 4 1 3 3 0 3 1 2 9 2 7 6 Sample Output8HintN<=100000 Wi<=10000Source版权所有者: 李恺威