100 atcoder#ABC139C. [ABC139C] Lower
[ABC139C] Lower
Score : points
Problem Statement
There are squares arranged in a row from left to right.
The height of the -th square from the left is .
You will land on a square of your choice, then repeat moving to the adjacent square on the right as long as the height of the next square is not greater than that of the current square.
Find the maximum number of times you can move.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the maximum number of times you can move.
5
10 4 8 7 3
2
By landing on the third square from the left, you can move to the right twice.
7
4 4 5 6 6 5 5
3
By landing on the fourth square from the left, you can move to the right three times.
4
1 2 3 4
0