Last active
August 26, 2020 18:24
-
-
Save musou1500/9c15e92efd2b48b9e3cf91d89e922822 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ll left = 0, right = max_n; | |
while (right - left > 1) { | |
ll mid = (left + right) / 2; | |
if (check(va, vf, mid, k)) { | |
right = mid; | |
} else { | |
left = mid; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment