|
||||||||||
EllipsoidTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3729 Accepted Submission(s): 1314 Special Judge Problem Description Given a 3-dimension ellipsoid(حضاٍأو) your task is to find the minimal distance between the original point (0,0,0) and points on the ellipsoid. The distance between two points (x1,y1,z1) and (x2,y2,z2) is defined as Input There are multiple test cases. Please process till EOF. For each testcase, one line contains 6 real number a,b,c(0 < a,b,c,< 1),d,e,f(0 ،ـ d,e,f < 1), as described above. It is guaranteed that the input data forms a ellipsoid. All numbers are fit in double. Output For each test contains one line. Describes the minimal distance. Answer will be considered as correct if their absolute error is less than 10-5. Sample Input
Sample Output
Source | ||||||||||
|