A Math Contest P6 - Global Maximum
View as PDFYou are given integers  and 
. Among all real solutions 
 to the equations 
 and 
, what is the maximal value of 
?
Constraints
Input Specification
The only line contains two space-separated integers,  and 
.
Output Specification
If there are no solutions, output no; otherwise, output the maximal value of .
Your answer will be accepted if the absolute error is within .
Sample Input
7 13
Sample Output
2.500000
Explanation for Sample
The maximal value of  is reached at 
.
Comments