Ellipse Eclipse
시간 제한1초메모리 제한1024 MB
타원의 두 초점과 장축의 길이가 주어질 때, 타원을 감싸는 가장 작은 축 정렬 경계 상자의 좌표를 출력한다.
문제
An Ellipse is a 2D geometric figure. It consists of the set of all points such that the sum of the distance from each point to two specific points is constant. The two specific points are called the Foci of the ellipse. The Major Axis of an ellipse is the diameter of the ellipse that runs through both foci. It is the longest diameter of the ellipse.
Given an ellipse’s two foci and the length of its major axis, determine the coordinates of the tightest axis-aligned bounding box that can block out that ellipse.

입력
The single line of input contains five integers , , , () and (), where the two foci of the ellipse are at and and the length of the major axis is (Note that’s the major axis, not the semi-major axis or the major radius).
출력
Output four space-separated real numbers on a single line. The numbers, in order, are , , , , where is the lower left corner of the tightest bounding box of the ellipse, and is the upper right corner of the tightest bounding box of the ellipse. Each output will be considered correct if it is within an absolute or relative error of .