This problem is in Contest(s) below:
Contest 2033:区一中普及组7.8练习题目
Contest 1847:基础算法(1)二分查找和二分答案