Type: Default 1000ms 12MiB

习题6-6 杨辉三角

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.

说明

按要求输入如下格式的杨辉三角

1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1

最多输出10层

输入格式

输入只包含一个正整数n,表示将要输出的杨辉三角的层数。

输出格式

对应于该输入,请输出相应层数的杨辉三角,每一层的整数之间用一个空格隔开
5
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1

来源

算法笔记 C语言第四版教学实验-第六章 数组

2025-11-09周训练

Not Attended
Status
Done
Rule
XCPC
Problem
10
Start at
2025-11-9 14:00
End at
2025-11-9 17:00
Duration
3 hour(s)
Host
Partic.
26