C. [例5.7]杨辉三角

    Type: Default 1000ms 256MiB

[例5.7]杨辉三角

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

给出 n(n20)n(n\le20),输出杨辉三角的前 nn 行。

如果你不知道什么是杨辉三角,可以观察样例找找规律。

输入格式

输出格式

样例 #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

龙凤苑中学C班5.9

Not Attended
Status
Done
Rule
IOI
Problem
3
Start at
2024-5-9 16:30
End at
2024-5-13 16:30
Duration
96 hour(s)
Host
Partic.
11