练60.6 胡萝卜与骨头
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
Nick likes carrots, and Glaire likes bones. carrots and bones are arranged in a circle. The fox teacher asks Nick to start counting from a certain position, counting from to , and removing the -th item each time, until only bones remain. Write a program to calculate how to arrange the items so that only bones remain.
Input Format
None.
Output Format
Output the positions of the bones.
Sample
None1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
20251101C班作业(5)
- Status
- Done
- Problem
- 6
- Open Since
- 2025-11-1 0:00
- Deadline
- 2025-11-9 23:59
- Extension
- 24 hour(s)