Maximize It!
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given two integers and , find a real number such that the value of is maximized. It is known that
It can be proven that the maximum value of the function is rational. Print this value in the form of an irreducible fraction.
Input
Contains no more than test cases. Each test case consists of a single line containing two integers and .
Output
For each test case, print the maximum value of in the form of an irreducible fraction , where .
Examples
In the first test case, maximizes the function.
Input #1
Answer #1
Submissions 131
Acceptance rate 54%