programming/sillygoose
267 points
Writeup by Aryan
We have to find a number between 1 and 10^500, and we have 500 guesses. After each guess, we are told if our number is higher or lower than the target number.
It is a trivial binary search problem because the server tells if our guess is higher or lower than the target number. We can solve in ceil(log_2(10^100)) = 333 queries at most, well under the limit of 500.
Flag: n00bz{y0u_4r3_4_sm4rt_51l1y_g0053}
Last updated