1269: C语言程序设计教程(第三版)课后习题10.4
Memory Limit:128 MB
Time Limit:1.000 S
Submit数:1
Solved数:1
Description
有n个整数,使前面各数顺序向后移m个位置,最后m个数变成前面m个数。写一函数move:实现以上功能,在主函数中输入n个数和输出调整后的n个数。
Input描述
输入数据的个数n n个整数移动的位置m
Output描述
移动后的n个数
Sample Input Copy
10 1 2 3 4 5 6 7 8 9 10 2
Sample Output Copy
9 10 1 2 3 4 5 6 7 8
Source/Category
⋮