#P5732. 【深基5.习7】杨辉三角

【深基5.习7】杨辉三角

Problem Description

Given n(1≤n≤20)n(1\le n\le20), output the first nn 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

Hint

Translated by ChatGPT 5