1. k← [n/2]

来源: NOIP题库   

1. k← [n/2]

2. if L[k] > L[k-1] and L[k] > L[k+1]

3.then 

4.else if L[k] > L[k-1] and L[k] < L[k+1]

5.then 

6.else 

答案解析