【例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.
说明
将数组中第一个元素移到数组末尾,其余数据依次往前平移一个位置。
输入格式
第一行为数组的元素个数;
第二行为个小于的正整数。
输出格式
平移后的数组元素,每个数用一个空格隔开。
样例
10
1 2 3 4 5 6 7 8 9 102 3 4 5 6 7 8 9 10 1
认识vector
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 6
- Start at
- 2025-10-28 23:15
- End at
- 2025-10-29 9:15
- Duration
- 10 hour(s)
- Host
- Partic.
- 28