Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (l <= r)
- {
- mid = (l + r) >> 1;
- if (check(mid))
- l = mid + 1;
- else
- ans = mid, r = mid - 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement