给定一个非负整数 numRows,生成「杨辉三角」的前 numRows 行。
在「杨辉三角」中,每个数是它左上方和右上方的数的和。
输入
给定一个非负整数 numRows,生成「杨辉三角」的前 numRows 行。
在「杨辉三角」中,每个数是它左上方和右上方的数的和。

一个非负整数 numRows
输出杨辉三角的前numRows行
输入
5
输出
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
输入
1
输出
1
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.