Problem9450--打印蛇形方阵2

9450: 打印蛇形方阵2

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

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

Input

一个整数N。( 0 < n < 18 )

Output

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

Sample 1 Input

5

Sample 1 Output

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

Source/Category

1.6.二维数组