#P6810. 「MCOI-02」Convex Hull 凸包
「MCOI-02」Convex Hull 凸包
Description
Leasier was caught playing Minecraft, so he had to compute the value of the following expression.
$$\displaystyle\sum_{i = 1}^n \sum_{j = 1}^m \tau(i) \tau(j) \tau(\gcd(i, j))$$Since the result may be very large, you only need to output the value modulo .
If you have questions about the mathematical symbols in this problem, please check the "Hint" section.
Input Format
One line with three integers .
Output Format
One line with one integer, representing the required value.
5 7 9
5
Hint
Constraints and Notes
This problem uses bundled testdata.
| Subtask | Score | |
|---|---|---|
| No special constraints |
For of the testdata, , and .
Hint
As a beginner-friendly check-in problem, of course hints are provided.
- is the summation symbol. For example, means .
- denotes the number of divisors. For example, .
- is the greatest common divisor. For example, .
Notes
Minecraft OI Round 2 A
- Maker: Leasier
- Tester: happydef
Translated by ChatGPT 5
京公网安备 11011102002149号