NC54386. The Final Level
描述
输入描述
The first line of the input consists of a single integer m (1 ≤ m ≤ 100) — the number of test cases. It is followed by m test cases. Each test case is on a separate line and consists of three integers a, b, and n (−108 ≤ a, b ≤ 108; 2 ≤ n ≤ 108) — a is the coordinate of the final point along the horizontal axis, b is the coordinate of the final point along the vertical axis, and n is the size of the block. The final point is not same as the starting one (either a≠0 or b≠0).
输出描述
For each test case, in the first line print the minimal number k of blocks you need. In the following k lines print description of these blocks. Each L-shaped corner block is described by coordinates of two cells. Print coordinates of the end of its vertical rectangle, followed by coordinates of the end of its horizontal rectangle. Specify the coordinates of the ends that are opposite to the intersection of the rectangles. Note that the order of cells in the block description matters, since a change of the order results in a reflected block. Coordinates of each end should be printed with the coordinate along the horizontal axis first, followed by the coordinate along the vertical axis.
All coordinates in the output should not exceed 109 by absolute value.
It is guaranteed that the total number of blocks in the correct output does not exceed 105 for all test cases combined.
示例1
输入:
2 2 3 2 4 -1 3
输出:
2 1 1 0 0 1 2 2 3 2 0 0 2 -2 3 -3 5 -1