Problem X: 杨辉三角之入门

Problem X: 杨辉三角之入门

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

杨辉三角是一个NB的东西,现在我问你杨辉三角N层长啥样?
 
 
杨辉三角长这样:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
...........

Input

3

Output

1
1 1
1 2 1

Sample Input Copy

6

Sample Output Copy

1 
1 1 
1 2 1 
1 3 3 1 
1 4 6 4 1 
1 5 10 10 5 1 

HINT

n=int(input())
a=[[0]*(n+1) for i in range(n+1)]
a[0][0]=1
for row in range(1,n+1):
    for col in range(1,row+1):
        a[row][col]=a[row-1][col-1]+a[row-1][col]
        print(a[row][col],end=' ')
    print()