1069: 填充数字正方形(3) 向左下展开式输出

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

Description

输入一个整数n(0<n<10),输出一个用从1到n的数字从上角下方展开式填充n阶数字正方形,数字之间用空格分隔。输出样式详见样例。

Input

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

Output

一个用从1到n的数字从上角下方展开式填充的n阶数字正方形,数字之间用空格分隔。输出样式详见样例。

Sample Input Copy

5

Sample Output Copy

5 4 3 2 1
5 4 3 2 2
5 4 3 3 3
5 4 4 4 4
5 5 5 5 5

Source/Category