#B. 【例51.2】 插入元素

    Type: RemoteJudge 1000ms 64MiB

【例51.2】 插入元素

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.

说明

在一个数组的第xx个位置插入一个新的数yy

输入格式

有四行
第一行有一个整数nn ( 5n105 \le n \le 10 );
第二行有nn个整数;
第三行有一个整数xx,为要插入的位置 第四行有一个整数yy,为要插入的整数。

输出格式

更新后的数组。

样例

5
7 2 3 4 5
2
9
7 9 2 3 4 5

SAST 2023 算法组第三次授课

Not Attended
Status
Done
Rule
IOI
Problem
2
Start at
2023-11-12 16:00
End at
2023-11-12 18:00
Duration
2 hour(s)
Host
Partic.
20