Editorial for TLE '17 Contest 5 P1 - Guess the Number
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
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