1448: 函数的数组操作
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:22
Solved:7
Description
一个长度为n的数组,请设计一个函数实现以下功能:将该数组第一位变为最后一位,其他顺序不变,变换完成后输出该数组。
Input
整数n,n个整数
Output
变换后的数组,每个元素用空格隔开
Sample Input Copy
5
1 2 3 4 5
Sample Output Copy
2 3 4 5 1