#P1864A. Increasing and Decreasing

    ID: 8645 Type: RemoteJudge 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>constructive algorithmsgreedyimplementationmath

Increasing and Decreasing

No submission language available for this problem.

Description

You are given three integers xx, yy, and nn.

Your task is to construct an array aa consisting of nn integers which satisfies the following conditions:

  1. a1=xa_1=x, an=ya_n=y;
  2. aa is strictly increasing (i.e. a1<a2<<ana_1 < a_2 < \ldots < a_n);
  3. if we denote bi=ai+1aib_i=a_{i+1}-a_{i} for 1in11 \leq i \leq n-1, then bb is strictly decreasing (i.e. b1>b2>>bn1b_1 > b_2 > \ldots > b_{n-1}).

If there is no such array aa, print a single integer 1-1.

Each test contains multiple test cases. The first line contains the number of test cases tt (1t10001 \le t \le 1000). The description of the test cases follows.

The only line of each test case contains three integers xx, yy, nn (1x<y1000,3n10001 \le x < y \le 1000,3 \le n \le 1000).

For each test case, output nn integers a1,a2,,ana_1,a_2,\ldots,a_n. If there are multiple solutions, print any of them.

If there is no solution, print a single integer 1-1.

Input

Each test contains multiple test cases. The first line contains the number of test cases tt (1t10001 \le t \le 1000). The description of the test cases follows.

The only line of each test case contains three integers xx, yy, nn (1x<y1000,3n10001 \le x < y \le 1000,3 \le n \le 1000).

Output

For each test case, output nn integers a1,a2,,ana_1,a_2,\ldots,a_n. If there are multiple solutions, print any of them.

If there is no solution, print a single integer 1-1.

Sample Input 1

3
1 4 3
1 3 3
100 200 4

Sample Output 1

1 3 4
-1
100 150 180 200

Note

In the first test case, a=[1,3,4]a=[1,3,4], which is strictly increasing. Next, b1=a2a1=31=2b_1=a_2-a_1=3-1=2, b2=a3a2=43=1b_2=a_3-a_2=4-3=1, thus b=[2,1]b=[2,1], which is strictly decreasing.

In the second test case, there is no array aa that satisfies all the conditions above.