IntermediateRating 1300
Longest Mountain
A mountain is a block of at least 3 consecutive numbers that strictly rises and then strictly falls. Print the length of the longest mountain, or 0.
Input
n, then n integers.
Output
One integer.
Sample 1
Input
7 2 1 4 7 3 2 5
Output
5
Sample 2
Input
3 2 2 2
Output
0
Output appears here