1843: 【例5.2】平移数据

Memory Limit:64 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

将$a$数组中第一个元素移到数组末尾,其余数据依次往前平移一个位置。

Input

第一行为数组$a$的元素个数;n第二行为$n$个小于$1000$的正整数。

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