fork download
  1. int L = minValue, R = maxValue;
  2. while (L < R) {
  3. int M = (L + R + 1) / 2;
  4. if (check(M)) {
  5. L = M;
  6. } else {
  7. R = M - 1;
  8. }
  9. }
  10. return L;
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty