def nextmin(arr,start):#下一个坡度的起点 for i in range(start,len(arr)-1): if arr[i]arr[index-1]:#上坡 lbase+=1 res+=lbase same=1 index+=1 elif arr[index]