鲁班创客OJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
1134: 元素平移
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:54
Solved:46
Submit
Submit Record
Statistics
ShowOff!
Description
将a数组中第一个元素移到数组末尾,其余数据依次往前平移一个位置
Input
第一行为数组a的元素个数;第二行为n个小于1800的正整数。
Output
平移后的数组元素,每个数用一个空格隔开。
Sample Input
Copy
10 1 2 3 4 5 6 7 8 9 10
Sample Output
Copy
2 3 4 5 6 7 8 9 10 1
Source/Category
鲁班创客
基础
vector
Submit
Submit Record
Statistics
ShowOff!