Problem B: 数组元素的移动
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:20
Solved:10
Description
n个数的数组,把第一个数先存起来,把第二个到第n个数向前移动一个位置,再把第一个数放到最后一个位置上。(n<=10)
Input
输入有两行,第一个数字是数组的长度n.
第二行是n个数。
Output
输出只有一行,n个重新排列的数字,中间空一格。
Sample Input Copy
6
1 2 18 72 190 3
Sample Output Copy
2 18 72 190 3 1