中南大学程序设计网络预选赛程序：2062: Z‘s Array
Z likes to play with array. One day his teacher gave him an array of n elements, and ask Z whether the array is a "m-peek" array.
A "m-peek" array is an array which has exactly m peek.
a term a[i] is called a peek if and only if a[i]>a[i − 1] and a[i]>a[i + 1]
If the array has exactly m peeks, the array is called a "m-peek" array.