
ZOJ Problem Set  3919
There is an beautiful ellipse whose curve equation is: .There is a parallelogram named P inscribed in this ellipse. At the same time, the parallelogram P is externally tangent to some circle center at the origin (0,0). Now your task is to output the maximum and minimum area of P among all possible conditions. InputThe input consists of multiple test cases. For each test case, there is exactly one line consists of two integers a and b. 0 < b <= a <= 10^{9} OutputFor each test case, output one line of two onespace splited numbers: the maximum area and the minimum area. The absolute or relative error of the coordinates should be no more than 10^{6}. Sample Input1 1 Sample Output2 2 Author: ZHANG, Ruixiang Source: ZOJ Monthly, February 2016 