Toggle navigation
HUSTOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem3512--数组元素的移动
3512: 数组元素的移动
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
5
Solved:
3
[
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 4
Sample Output
Copy
5 6 7 8 1 2 3 4
Source/Category
czos
入门