数组元素的插入
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.
题目描述
在一个数组的第 x 个位置插入一个新的数y。
输入输出说明
输入说明
有四行 第一行有一个整数 n ;
第二行有 n 个整数,用空格隔开;
第三行有一个整数 x,为要插入的位置;
第四行有一个整数 y,为要插入的整数。
输出说明
更新后的数组。
题目样例
样例输入
5
7 2 3 4 5
2
9
样例输出
7 9 2 3 4 5
数据范围
日照原始人第一届免死金牌争夺战
- Status
- Done
- Rule
- XCPC
- Problem
- 6
- Start at
- 2025-7-8 19:00
- End at
- 2025-7-8 21:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 1