Given n(1≤n≤20)n(1\le n\le20)n(1≤n≤20), output the first nnn rows of Pascal's triangle.
If you do not know what Pascal's triangle is, you can observe the sample and look for the pattern.
6
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1
Translated by ChatGPT 5
注册一个 云斗学院 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 云斗学院 通用账户