Problem AA: 数字方阵-斜行方阵2

Problem AA: 数字方阵-斜行方阵2

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

Description

模仿样例,输入n输出一个n*n的特殊的数字方阵--斜行方阵。
按副对角线平行的方向斜行,9*9的斜行方阵输出如下:


Input

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

Output

输出n行每行中数字之间一个空格分隔,每个数字的域宽为2。

Sample Input Copy

6

Sample Output Copy

 1  3  6 10 15 21 
 2  5  9 14 20 26
 4  8 13 19 25 30
 7 12 18 24 29 33
11 17 23 28 32 35
16 22 27 31 34 36