#P1891. 疯狂 LCM
疯狂 LCM
Description
Given , compute
where denotes the least common multiple of and .
Input Format
There are multiple test cases in a single test point.
The first line contains an integer , the number of test cases.
The next lines each contain one integer .
Output Format
For each test case, output one line with a single integer representing the answer.
3
1
2
5
1
4
55
Hint
- Constraints:
- For of the testdata, , .
- For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号