Problem1319--回形数字方阵

1319: 回形数字方阵

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 220  Solved: 151
[Status] [Submit] [Creator:]

Description

模仿样例,输入n,输出一个n*n的数字方阵,数字的排列成回形

Input

一个正整数n (1<=n<=9)

Output

输出n行,每行中,数字之间一个空格分隔(数字小于10的,前面加0)

Sample Input Copy

6

Sample Output Copy

01 02 03 04 05 06
20 21 22 23 24 07
19 32 33 34 25 08
18 31 36 35 26 09
17 30 29 28 27 10
16 15 14 13 12 11

Source/Category