[Solution] The two numbers CodeChef Solution | CodeChef Problem Solution 2022
Given two positive integers and , we define , where denotes the lowest common multiple and denotes the greatest common divisor.
Chef has a positive integer . He wonders, what is the maximum value of over all pairs such that and are positive integers, and ?
Input Format
- The first line of input will contain an integer — the number of test cases.
Solution Click Below:- CLICK HERE
- The description of test cases follows.
- The first line of each test case contains an integer , as described in the problem statement.
Output Format
For each test case, output the maximum value of that can be obtained while satisfying the conditions on and .
No comments:
Post a Comment