#C804. Symmetric Matrix Generator
Symmetric Matrix Generator
Symmetric Matrix Generator
You are given an odd integer N and your task is to generate an N x N symmetric matrix according to the following rule:
A cell in the matrix is filled with 1 if its distance from the center is less than or equal to \(\lfloor N/2 \rfloor\); otherwise, it is filled with 0. In this problem, note that for any valid index \(i, j\) with \(0 \leq i, j < N\), the condition \(|i - center| \leq center \text{ and } |j - center| \leq center\)
always holds true, so the resulting matrix will be completely filled with 1’s.
The input begins with an integer T representing the number of test cases. Each test case consists of a single odd integer N. For each test case, output the corresponding matrix.
inputFormat
The first line of input contains an integer T (the number of test cases). Each of the next T lines contains a single odd integer N, which specifies the size of the matrix.
outputFormat
For each test case, output an N x N matrix. Each of the N lines should contain N numbers separated by a space. Print the matrices one after the other in the order of input.
## sample1
1
1
</p>