数组6 插入x
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, 位置p 和 数值x, 接下来读入n个整数。 在第 p 个数后插入 x。(0<=p<=n)
样例输入1
6 0 2
3 1 4 1 5 9
样例输出1
2 3 1 4 1 5 9