This problem is in Contest(s) below:
Contest 1847:基础算法(1)二分查找和二分答案
Contest 2068:区一中小学组开学测试