Home => ProblemSet => 1.8-02:杨辉三角
Problem1239--1.8-02:杨辉三角

1239: 1.8-02:杨辉三角

Time Limit: 1 Sec  Memory Limit: 128 MB  Submit: 1  Solved: 2
[ Submit ] [ Status ] [ Creator: ][ 参考程序 ]

Description

杨辉三角是一个由数字排列组成的三角形数表,一般形式如下:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
1 7 21 35 35 21 7 1

Input

一个正整数n,表示三角形的行数

Output

n行杨辉三角

Sample Input Copy

3

Sample Output Copy

1
1 1
1 2 1

HINT

数据范围
1<=n<=10

Source/Category