#D9736. The Smallest Window I
The Smallest Window I
The Smallest Window I
For a given array of elements and an integer , find the smallest sub-array size (smallest window length) where the sum of the sub-array is greater than or equal to . If there is not such sub-array, report 0.
Constraints
Input
The input is given in the following format.
...
Output
Print the smallest sub-array size in a line.
Examples
Input
6 4 1 2 1 2 3 2
Output
2
Input
6 6 1 2 1 2 3 2
Output
3
Input
3 7 1 2 3
Output
0
inputFormat
Input
The input is given in the following format.
...
outputFormat
Output
Print the smallest sub-array size in a line.
Examples
Input
6 4 1 2 1 2 3 2
Output
2
Input
6 6 1 2 1 2 3 2
Output
3
Input
3 7 1 2 3
Output
0
样例
6 4
1 2 1 2 3 2
2