#P1390. 公约数的和
公约数的和
Description
Given , compute
where denotes the greatest common divisor of and .
Input Format
The input consists of a single line with one integer, denoting .
Output Format
Output a single line with one integer representing the answer.
10
67
Hint
Constraints
- For 40% of the testdata, .
- For 100% of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号