| TheForces Round #39 (1000-Forces) |
|---|
| Закончено |
This is the easy version of this problem. The only difference is that in this version you only need to construct any matrix satisfying the given conditions.
You are given an integer $$$n$$$. You need to construct an $$$n \times n$$$ matrix $$$a$$$ that satisfies all of the following conditions :
The first line of input contains an integer $$$t$$$ $$$(1 \le t \le 100)$$$ — the number of testcases.
The first line of each testcase contains a single integer $$$n$$$ $$$(2 \le n \le 500)$$$.
It is guaranteed that the sum of $$$n$$$ over all testcases does not exceed $$$500$$$.
For each testcase, print an $$$n \times n$$$ matrix $$$a$$$ that satisfies all the given conditions.
If there are multiple answers, print any one of them.
It can be proved that atleast one such matrix exists under the given constraints.
223
12 12 12 12 4 6 8 3 2 5 2 10 6
| Название |
|---|


