Problem I: 【一维数组】数组元素的移动
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:174
Solved:109
Description
数组元素的移动,把数组的第x个位置的元素先保存起来,然后把x+1到n的元素,依次往前移一位,最后原来的第x个位置的元素放在最后。
Input
有3行
第一行有一个整数n
第二行有n个整数
第三行有一个整数x
第一行有一个整数n
第二行有n个整数
第三行有一个整数x
Output
移动后的数组
Sample Input Copy
8
2 1 3 4 5 6 7 8
1
Sample Output Copy
1 3 4 5 6 7 8 2