The problem is as hard as that teaching assistant(s) can't solve.
The problem description is quite simple, but unfortunately the solution is unpredictable hard.
Let $f(x) = \text{floor}(3((\ln x)+3)^ 3)$, for a given $N$, your task is to compute the minimum integer $x$ such that $f(x) = N$.
The first line of the input contains an integer $T$, where $T$ is the number of the testcase.
There are following $T$ lines, each line of the input contains one integer $N$, where $0 \leq N \leq 40000$
For each testcase, output a minimum integer $x$ such that $f(x) = N$.
If there is no such $x$, output BEE
instead of the error.
2 10 81
BEE 1
If you questioned the hardness of the problem, please contacts the (ex-)Teaching Assistant.
Migrated from old NTUJ.
Kind TAs
No. | Testdata Range | Score |
---|