Problem1047--【一维数组】数组元素移动(1)

1047: 【一维数组】数组元素移动(1)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

读入N个整数存放在数组中,将每个元素依次后移一个位置,最后一个元素移动到第一个元素的位置。

Input

第一行,一个整数n(n不超过100)
第二行:n个整数,相邻数值之间用一个空格分隔。

Output

移动以后的结果,相邻数值之间用一个空格分隔,行末不要出现多余空格。

Sample Input Copy

10
1 2 3 4 5 6 7 8 9 10

Sample Output Copy

10 1 2 3 4 5 6 7 8 9

Source/Category