297 AC

binary search