while(l<r){ int mid = l+(r-l+1)/2;// if(check(mid))r=mid; else l=mid+1; }
这份代码t一大片,但我听网上的人说这个mid取值是万能的。然而改成mid = l+r >> 1就AC了