#P4296. [AHOI2007] 密码箱
[AHOI2007] 密码箱
Description
By chance, Little Keke obtained a password box said to contain an ancient treasure map. The box can be opened by cracking the password, and the ancient symbols engraved on the back of the box serve as hints.
After painstaking deciphering, Little Keke discovered that these symbols describe a number and its relation to the password. Suppose this number is , and the password is . Then we have: the password is greater than or equal to and less than , and the remainder of divided by is . Little Keke knows there may be more than one that satisfies these conditions, so she must compute all such ; the correct password is among them. The computation is arduous—can you write a program to help?
Input Format
One line containing an integer ().
Output Format
Find all that satisfy the conditions described above. If no such exists, output a single line None. Otherwise, output these in increasing order, one per line.
12
1
5
7
11
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号