1905: 【CSP二维数组】有趣的数字图形IV▅

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

Description

输入一个整数 lns="http://www.w3.org/1998/Math/MathML">n ( lns="http://www.w3.org/1998/Math/MathML">n12 ),打印出如下要求的方阵:

除掉右上到左下对角线上的数外的右下半个区域中每个元素等于左边的和上面的元素之和。每个元素场宽为 lns="http://www.w3.org/1998/Math/MathML">5 。左上半个区域为空。

Input

一个整数 lns="http://www.w3.org/1998/Math/MathML">n  lns="http://www.w3.org/1998/Math/MathML">n12 

Output

n×n 的方阵(场宽为 lns="http://www.w3.org/1998/Math/MathML">5 )。

Sample Input Copy

4

Sample Output Copy

                   4
              3    7
         2    5   12
    1    3    8   20