#P2303. [SDOI2012] Longge 的问题
[SDOI2012] Longge 的问题
Description
Here is the problem: Given an integer , you need to compute , where denotes the greatest common divisor of and .
Input Format
The input consists of a single line containing the integer .
Output Format
Output a single integer on one line representing the answer.
6
15
Hint
Constraints
- For of the testdata, it is guaranteed that .
- For of the testdata, it is guaranteed that .
Translated by ChatGPT 5
京公网安备 11011102002149号