B. 练51.2 老鹰捉小鸡

    Type: Default 1000ms 64MiB

练51.2 老鹰捉小鸡

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.

Description

Teacher Fox and Glare, along with 44 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 44 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 1010 times.

Input Format

None.

Output Format

Output the positions for each change on a new line.

Sample

None
1: 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

20230913C班作业(1)

Not Claimed
Status
Done
Problem
6
Open Since
2025-9-13 0:00
Deadline
2025-9-21 23:59
Extension
24 hour(s)