练60.4 捉迷藏
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
Glaire and Nick play hide-and-seek. There are holes (numbered to ) arranged in a circle, and Nick is hiding in one of them. Glaire starts at hole , enters hole on the first move, skips hole to enter hole on the second move, and on the -th move, skips holes to enter the next hole, and so on. Glaire enters holes times but still cannot find Nick. Write a program to calculate which holes Nick might be hiding in.
Input Format
None.
Output Format
Output the hole numbers where Nick might be hiding, in ascending order, one per line.
Sample
None2
4
7
9
20251101C班作业(5)
- Status
- Done
- Problem
- 6
- Open Since
- 2025-11-1 0:00
- Deadline
- 2025-11-9 23:59
- Extension
- 24 hour(s)