Problem J: 【二维数组】杨辉三角1

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

Description

输入一个整数n (0<=n<=20) ,输出n行的杨辉三角。

Input

一个整数n (0<=n<=20) 

Output

杨辉三角的前n行。

Sample Input Copy

8

Sample Output Copy

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  

Source/Category