2369: 练63.3 迂回方阵

Memory Limit:64 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

输入整数$N$,输出相应方阵。

Input

输入一个整数 $n$ ,$1≤n≤18$。

Output

一个方阵,每个数字的场宽为$4$。

Sample Input Copy

5

Sample Output Copy

17  18  19  20  21
10  11  12  13  22
5   6   7  14  23
2   3   8  15  24
1   4   9  16  25

Source/Category