#C6749. Encoded Clues Generation
Encoded Clues Generation
Encoded Clues Generation
You are given T test cases. For each test case, an integer x is provided. Your task is to generate a series of encoded clues. For a given test case with parameter x, you must generate x clues, where the i-th clue is constructed by concatenating the integers from 1 to i without any delimiter.
For example, if x = 3 then the clues are:
- For i = 1: "1"
- For i = 2: "12"
- For i = 3: "123"
The final output for that test case will be the clues joined by a single space, i.e., "1 12 123".
More formally, given a positive integer x, you are to output:
[ \text{Output} = \bigoplus_{i=1}^{x} \left(\text{concatenation of } 1,2,\ldots,i\right), ]
where \( \bigoplus \) denotes space-separated concatenation.
inputFormat
The input is read from stdin and is structured as follows:
- The first line contains an integer T, the number of test cases.
- Each of the next T lines contains a single integer x representing the test case.
outputFormat
For each test case, output a single line on stdout containing the encoded clues separated by a single space.
## sample3
2
3
4
1 12
1 12 123
1 12 123 1234
</p>