Type: Default 1000ms 256MiB

【例51.3】 平移数据

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

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

输入格式

第一行为数组aa的元素个数;
第二行为nn个小于10001000的正整数。

输出格式

平移后的数组元素,每个数用一个空格隔开。

样例

10
1 2 3 4 5 6 7 8 9 10
2 3 4 5 6 7 8 9 10 1

一维数组

Not Claimed
Status
Done
Problem
11
Open Since
2024-7-13 0:00
Deadline
2024-7-15 23:59
Extension
24 hour(s)