已采纳 陶梓锐 新手光能 while(left<right){ //二分 int mid=(left+right)>>1; if(judge(mid))left=mid+1; else right=mid; }