Codeforces Round 960 (Div. 2) |
---|
Finished |
For an array $$$b$$$ of size $$$m$$$, we define:
You are given three integers $$$n$$$, $$$x$$$, and $$$y$$$ ($$$x > y$$$). Construct an array $$$a$$$ of size $$$n$$$ satisfying:
If there are multiple arrays that meet the conditions, print any. It can be proven that such an array always exists under the given conditions.
The first line contains an integer $$$t$$$ ($$$1 \leq t \leq 10^4$$$) — the number of test cases.
For each test case:
It is guaranteed that the sum of $$$n$$$ over all test cases will not exceed $$$10^5$$$.
For each test case, output $$$n$$$ space-separated integers $$$a_1, a_2, \ldots, a_n$$$ in a new line.
32 2 14 4 36 5 1
1 1 1 -1 1 1 1 1 -1 1 1 -1
In the second test case,
Thus, the array $$$a=[1,-1,1,1]$$$ is considered correct.
Name |
---|