二分模板 Green_Bird · 2019-11-04 19:15:56 · 个人记录 while(l<=r) { int mid=(l+r)>>1; if(check(mid)) ans=mid,l=mid+1; else r=mid-1; }