#P6581. 远大目标
远大目标
Description
Given , find the number of integers such that .
Since Little Z is too weak, he does not even dare to say |A|<|O|, and can only study the problem |A|<O.
Input Format
One line with one integer .
Output Format
One line with one integer: the number of integers that satisfy the condition.
3
5
1145141919810
2290283839619
12345
24689
Hint
Sample 1 Explanation
Possible values of are , , and .
Constraints
- Subtask 1 (30 points): ;
- Subtask 2 (60 points): ;
- Subtask 3 (10 points): .
denotes the absolute value of .
Hint
If you do not know what absolute value is, you can understand it as:
$$|x| = \begin{cases} x & (x > 0) \\ 0 & (x = 0) \\ -x & (x < 0)\end{cases}$$Original idea: Meatherm
Translated by ChatGPT 5
京公网安备 11011102002149号