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

龙凤苑/柳泉中学6月3日练习赛

Not Attended
Status
Done
Rule
IOI
Problem
12
Start at
2026-6-2 13:00
End at
2026-6-6 13:00
Duration
96 hour(s)
Host
Partic.
32