D. 练60.4 捉迷藏

    Type: Default 1000ms 64MiB

练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 1010 holes (numbered 00 to 99) arranged in a circle, and Nick is hiding in one of them. Glaire starts at hole 00, enters hole 11 on the first move, skips 11 hole to enter hole 33 on the second move, and on the ii-th move, skips i1i-1 holes to enter the next hole, and so on. Glaire enters holes 10001000 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

None
2
4
7
9

20251101C班作业(5)

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