1906: 【CSP二维数组】螺旋方阵█

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:4 Solved:1

Description

输出如样例所示的 lns="http://www.w3.org/1998/Math/MathML">n×n 的螺旋方阵。

Input

一个整数 lns="http://www.w3.org/1998/Math/MathML">n ( lns="http://www.w3.org/1998/Math/MathML">0<n<10 )。

Output

一个 lns="http://www.w3.org/1998/Math/MathML">n 行方阵,每行 lns="http://www.w3.org/1998/Math/MathML">n 个数,每个数场宽为 lns="http://www.w3.org/1998/Math/MathML">3

Sample Input Copy

5

Sample Output Copy

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