Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author: ZQFMGB12
There are several guessing strategies, and points were awarded based off of how many guesses.
For
of the points, we make more than
guesses. This could be achieved by making random guesses and stopping once we guess the correct answer.
For
of the points, we make more than
guesses. This could be achieved by guessing each number from
to
.
For
of the points, we make more than
guesses. This could be achieved by guessing numbers from
to
at a certain interval, (say,
) and checking individual numbers when close.
For
of the points, we make more than
guesses. This could be achieved by performing a binary search.
For
of the points, we make
guesses. This could be achieved by guessing
and knowing that
could either be
or
.
For
of the points, we make
guess. We note that if we guess
, then the answer must be
, since the answer cannot be more than
. We could have done the same with
instead.
Time Complexity: 
Comments