Problem C: 【基础】螺旋方阵

Memory Limit:16 MB Time Limit:1.000 S
Creator:
Submit:17 Solved:13

Description

螺旋方阵

Input

一个整数n(0<n<10)

Output

一个n行方阵,每行n个数,每个数场宽为3

Sample Input

5

Sample Output

  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