SDU Open 2021 Fall |
---|
Finished |
You are given a single positive integer $$$M$$$. Construct an array of positive integers $$$a_1, \ldots, a_n$$$ such that:
The first line of the input contains a single integer $$$T$$$ — the number of test cases ($$$1 \le T \le 10$$$).
Each test case is given as a line containing a single integer $$$M$$$ ($$$1 \le M \le 10^9$$$).
Output exactly two lines for each test case. The first line should contain a single integer $$$n$$$ — the size of your array.
The second line should contain $$$n$$$ space-separated integers $$$a_1, \ldots, a_n$$$ — the array itself.
2 2 3
3 1 2 1 4 1 2 3 2
Name |
---|