创建于 2026/07/18 · 更新于 2026/07/18
Given a positive integer . Construct an matrix with elements (), such that:
The input consists of one line, containing a single integer ().
If there is no solution, output one line containing a single number .
Otherwise, the output should consist of lines, each contains positive numbers. The -th number of line is .
If there are multiple solutions, you may output any of them.
3
3 8 4
5 2 1
9 7 6