Problem D
Early Winter
Yraglac really hates early winter. So he was greatly annoyed when it snowed early this year. His friend however claimed that summer is always too short in Galcary so there’s nothing to complain about.
Yraglac doesn’t believe his friend. So he decides to look up
the historical weather report for the past
Given the historical data, Yraglac would like to know the
number of consecutive years right before the current year with
a larger gap between the end of summer and the first day of
snow. More formally, suppose the current year is
Input
The first line of the input contains two integers
The next line of the input contains
Output
If there exists an integer
Sample Input 1 | Sample Output 1 |
---|---|
4 2 3 3 3 2 |
It hadn't snowed this early in 3 years! |
Sample Input 2 | Sample Output 2 |
---|---|
2 10 0 100 |
It hadn't snowed this early in 0 years! |
Sample Input 3 | Sample Output 3 |
---|---|
3 1 42 43 44 |
It had never snowed this early! |