#P5695. [NOI2001] 反正切函数的应用
[NOI2001] 反正切函数的应用
Description
We rewrite formula in the following form:
$$\arctan(\frac{1}{a}) = \arctan(\frac{1}{b}) + \arctan(\frac{1}{c})$$where .
Our task is: for each given , find the value of . We guarantee that for any there is an integer solution. If there are multiple solutions, you must output the one with the smallest .
Input Format
The input file contains only one positive integer .
Output Format
The output file contains only one integer, which is the value of .
1
5
Hint
。
Translated by ChatGPT 5
京公网安备 11011102002149号