#Lutece0523. 循环移动
循环移动
Migrated from Lutece 523 循环移动
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
一群人排成一圈,按顺时针编号。然后顺时针移动次,编号又是怎样的。
Input
第一行有两个整数和,表示人数,表示测试的组数。下面是行整数,每行一个整数,表示移动次数。,。
Output
共有行,每行对应移动后的人员编号,每个编号后有一个空格。
Samples
5 1
2
4 5 1 2 3
Resources
wxiaoping 2009年C语言第六次上机