Problem1213--数组元素的移动

1213: 数组元素的移动

Time Limit: 1.000 Sec  Memory Limit: 128 MB
Submit: 483  Solved: 205
[Submit] [Status] [Web Board] [Creator:]

Description

数组元素的移动,把数组的第x个位置的元素先保存起来,然后把x+1到n的元素,依次往前移一位,最后原来的第x个位置的元素放在最后。

Input

有3行 
第一行有一个整数n 
第二行有n个整数 
第三行有一个整数x

Output

移动后的数组

Sample Input

8
3 2 3 4 9 6 7 8
5

Sample Output

3 2 3 4 6 7 8 9

Source/Category


[Submit] [Status]