| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 67 | 11 | 9 | 25.000% |
Bikarp has a square of a positive integer $n^2$. He wants to split it into a sum of two cubes of positive integers. In other words, Bikarp wants to solve the following Diophantine equation
$$n^2 = x^3 + y^3$$
in positive integers, where $n$ is fixed.
Find a solution of this equation or determine that it doesn't exist.
The first line contains integer $T$ --- the number of test samples (1ドル \le T \le 3000$).
The $i$-th of the following $T$ lines contains a single integer $n$ (1ドル \le n \le 10^9$).
Output $T$ lines. The $i$-th of them should contain the answer for the $i$-th test sample: either "impossible", if $n$ cannot be decomposed, or two positive integers $x$ and $y$.
If some test sample has several solutions --- output any of them.
4 1 2 3 4
impossible impossible 2 1 2 2