CF1790B.Taisia and Dice

传统题 时间 2000 ms 内存 256 MiB 3 尝试 2 已通过 1 标签

Taisia and Dice

Taisia has nn six-sided dice. Each face of the die is marked with a number from 11 to 66, each number from 11 to 66 is used once.

Taisia rolls all nn dice at the same time and gets a sequence of values a1,a2,,ana_1, a_2, \ldots, a_n (1ai61 \le a_i \le 6), where aia_i is the value on the upper face of the ii-th dice. The sum of this sequence is equal to ss.

Suddenly, Taisia's pet cat steals exactly one dice with maximum value aia_i and calculates the sum of the values on the remaining n1n-1 dice, which is equal to rr.

You only know the number of dice nn and the values of ss, rr. Restore a possible sequence aa that fulfills the constraints.

Input

The first line contains the integer tt (1t10001 \le t \le 1000) — the number of testcases.

Each testcase is given on a separate line and contains three integers nn, ss, rr (2n502 \le n \le 50, 1r<s3001 \le r \lt s \le 300).

It is guaranteed that a solution exists.

Output

For each testcase, print: nn integers a1,a2,,ana_1, a_2, \ldots, a_n in any order. It is guaranteed that such sequence exists.

If there are multiple solutions, print any.

Samples

7
2 2 1
2 4 2
4 9 5
5 17 11
3 15 10
4 4 3
5 20 15
1 1
2 2 
1 2 2 4
6 4 2 3 2
5 5 5
1 1 1 1
1 4 5 5 5

在线编程 IDE

建议全屏模式获得最佳体验