#P305. 练51.2 老鹰捉小鸡
练51.2 老鹰捉小鸡
Description
Teacher Fox and Glare, along with other children, are playing a game of "Eagle Catches Chicks". Teacher Fox is the eagle, the first child in line is the "mother hen", and the other children are the "chicks". However, being the "mother hen" is tiring, so after a while, the "mother hen" needs to move to the end of the line to become a "chick", and the second child becomes the new "mother hen". Write a program to simulate this position change process for times.
Input Format
None.
Output Format
Output the positions for each change on a new line.
Sample
None1: 1 2 3 4 5
2: 2 3 4 5 1
3: 3 4 5 1 2
4: 4 5 1 2 3
5: 5 1 2 3 4
6: 1 2 3 4 5
7: 2 3 4 5 1
8: 3 4 5 1 2
9: 4 5 1 2 3
10: 5 1 2 3 4
Related
In following homework: