5406: P5732 【深基5.习7】杨辉三角
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
题目描述
给出 n (1 ≤ n ≤ 20),输出杨辉三角的前 n 行。
如果你不知道什么是杨辉三角,可以观察样例找找规律。
输入格式
无
输出格式
无
输入输出样例 #1
输入 #1
6
输出 #1
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 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