Submission
Status:
[xSSS][-][-][-][-]
Subtask/Task Score:
{0/20}{0/20}{0/20}{0/20}{0/20}
Score: 0
User: Dee
Problemset: นก
Language: python
Time: 0.010 second
Submitted On: 2026-11-15 14:23:54
n=int(input())
k = 0
count = 0
h=list(map(int,input().split()))
while n > 0 :
if (h[k])>(h[k-1]) and (h[k])>(h[k+1]):
count = count+1
else:
k=k+1
n=n-1
print(count)