시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 33 | 6 | 4 | 13.793% |
Let us define Jacana numbers in the following way:
$$\begin{eqnarray*} J (n, 1) & = & n \text{,} \\ J (n, k) & = & n^{J (n, k - 1)} \text{ for $k > 1$.} \\ \end{eqnarray*} $$
We have two Jacana numbers: $J (n, a)$ and $J (m, b)$. Your task is to compare them.
The first line of input contains an integer $T$, the number of test cases ($1 \le T \le 10^4$).
Each test case contains four integers: $n$, $a$, $m$, and $b$ ($1 \le n, a, m, b \le 10^9$).
For each test case, print a single line containing a single character:
>
",=
"', and<
".3 2 2 3 1 2 3 3 2 1 2 1 4
> < =