1802: 【CSP数组】数组元素的插入▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:7 Solved:5

Description

在一个数组的第 lns="http://www.w3.org/1998/Math/MathML">x 个位置插入一个新的数lns="http://www.w3.org/1998/Math/MathML">y

Input

有四行 第一行有一个整数 lns="http://www.w3.org/1998/Math/MathML">n (lns="http://www.w3.org/1998/Math/MathML">5n10);

第二行有 lns="http://www.w3.org/1998/Math/MathML">n 个整数,用空格隔开;

第三行有一个整数 lns="http://www.w3.org/1998/Math/MathML">x,为要插入的位置;

第四行有一个整数 lns="http://www.w3.org/1998/Math/MathML">y,为要插入的整数。

Output

更新后的数组。

Sample Input Copy

5
7 2 3 4 5
2
9

Sample Output Copy

7 9 2 3 4 5