This is a function implementation problem.
A hidden integer satisfies . You must identify by calling the ask() function at most times.
Function Implementation
Your submission must include the header file order.h via . You must implement the following function:
int find()
- This function must return the hidden integer N.
Within the find() function, you may call the following function:
int ask(long long a)
\begin{itemize}
- must satisfy . If this condition is not met, you will receive a Wrong Answer verdict.
- The return values are as follows:\begin{itemize}
- If , it returns the order of modulo . That is, it returns the smallest positive integer such that .
- If , it returns .
- This function can be called at most times within
find(). If you exceed this limit, you will receive a Wrong Answer verdict.
Your submitted code must not perform any input or output operations.