Editorial for April Fools' Day Contest 2 P7 - Can you?


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: sugo

Hint You are the program, and the judge is the interactor.
Solution Note that an output of 1024 recieving a Wrong Answer verdict indicates that 1 \leq N < 1024. As a result, you can manually perform a binary search on N using at most 10 submissions.

Comments

There are no comments at the moment.