Problem1227--列表元素的移动

1227: 列表元素的移动

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 8  Solved: 6
[Status] [Submit] [Creator:]

Description

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

Input

有3行
第一行有一个整数n( n <= 10 )
第二行有n个整数
第三行有一个整数x

Output

移动后的列表

Sample Input Copy

8
1 2 3 4 5 6 7 8
1

Sample Output Copy

2 3 4 5 6 7 8 1

Source/Category