We say that a sequence of
A sequence
Input Specification
The first line contains integers
The following
Output Specification
Output must consist of
Sample Input 1
Copy
5 10000
1
1
1
1
1
Sample Output 1
Copy
4
4
2
2
0
Sample Input 2
Copy
5 9
1
1
10
1
9
Sample Output 2
Copy
2
0
0
2
0
Sample Input 3
Copy
8 3
1
1
1
1
1
1
1
1
Sample Output 3
Copy
6
6
6
4
4
2
2
0
Comments
Since the original data were weak, an additional test case was added and weighted a third of the points.
Note that when this problem mentions "subsequence", it actually means "subarray"