[Solution] Madoka and The Best University Codeforces Solution
E. Madoka and The Best University
time limit per test
1 secondmemory limit per test
256 megabytesinput
standard inputoutput
standard outputMadoka wants to enter to "Novosibirsk State University", but in the entrance exam she came across a very difficult task:
Given an integer , it is required to calculate , for all triples of positive integers , where .
In this problem denotes the greatest common divisor of and , and denotes the least common multiple of and .
👇👇👇👇👇
Solve this problem for Madoka and help her to enter to the best university!
Input
The first and the only line contains a single integer ().
Output
Print exactly one interger — . Since the answer can be very large, then output it modulo .
Note
In the first example, there is only one suitable triple . So the answer is .
No comments:
Post a Comment