1904: 【CSP二维数组】有趣的数字图形III█

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

Description

读入一个整数 lns="http://www.w3.org/1998/Math/MathML">n lns="http://www.w3.org/1998/Math/MathML">n<10 ),输出一个 lns="http://www.w3.org/1998/Math/MathML">n×n 的方阵。 对角线是 lns="http://www.w3.org/1998/Math/MathML">1 ,对角线向右下逐渐递增,左上为空格,每个数场宽为 lns="http://www.w3.org/1998/Math/MathML">5 

Input

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

Output

n×n 的方阵

Sample Input Copy

4

Sample Output Copy

                   1
              1    2
         1    2    3
    1    2    3    4