P4517第一题 | ||
|
Description
Input Format
a
Output Format
a
Sample Input 1
5 10
2 1 2 1 2
Sample Output 1
2
Sample Input 2
4 4
5 5 5 3
Sample Output 2
5
Hint
对于20%的数据n<=4,Hi<=5;
对于50%的数据满足n<=5000;
对于100%的数据满足n<=100000,0<=Hi<=10^9,1<=k<=10^9。