1893: Insert the specified position
内存限制:128 MB
时间限制:1.000 S
评测方式:文本比较
命题人:
提交:18
解决:5
题目描述
According to the input position, add a number to the array
输入
There are several cases in the input, each case has 3 lines, the first line has 1 integer n, which means there are n numbers, the second line, input n numbers, and the third line input two numbers, i and a, i means The position to be inserted, a represents the number to be inserted
输出
Output the sequence after inserting the number
样例输入 复制
5
8 9 0 1 3
0 7
6
32 39 80 21 29 10
6 5
6
32 39 80 21 29 10
2 9
样例输出 复制
7 8 9 0 1 3
32 39 80 21 29 10 5
32 39 9 80 21 29 10