Operator Precedence
시간 제한1초메모리 제한2048 MB
길이 2n인 0이 아닌 정수 수열을 찾아 곱의 합과 합의 곱이 같아지는 항등식을 만족시킨다.
문제
Randias is facing his primary school homework:
Find a nonzero integer sequence of length satisfying
\begin{alignat*}{26} (&a_1 &\times& &a_2&)&+&(&a_3& &\times& &a_4&)&+& & \ldots & & &+&(&a_{2n-1}& &\times& a_{2n}&)\\ = &a_1 &\times&(&a_2& &+& &a_3&)&\times&(&a_4& &+& a_5)\times& \ldots & \times&(a_{2n-2} &+& &a_{2n-1}&)&\times& a_{2n}&\ne 0\text{.} \end{alignat*}
In shorter form, .
Of course, Randias knows how to solve it. But he wants to give you a test. Can you solve the question above?
입력
Each test contains multiple test cases. The first line contains a single integer () denoting the number of test cases.
For each test case, the only line contains a single integer ().
It is guaranteed that the sum of over all test cases does not exceed .
출력
For each test case, output one line with integers: ().
It can be shown that the answer always exists.
If there are several possible answers, output any one of them.