AC PKU 1064 Cable master (Divide-and-Conquer BinarySearch)