시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 128 MB | 22 | 0 | 0 | 0.000% |
Edges of a rectangular sheet of paper are marked by letters A,R,Z,D. The length of the edges Z and D is a , while that of edges A and R - b centimeters.
On the side Z, x centimetrs from the side R, the point P is dotted, but on the side D, y centimeters from the side R, the point Q is dotted (see Figure 1)
The sheet is folded so that the folding line coincides with the segment PQ (see Figure 2).
You are to calculate the area covered by the folded sheet.
Figure 1
Figure 2
Integers a (0 < a ≤ 1000), b (0 < b ≤ 1000), x (0 ≤ x ≤ a), y (0 ≤ y ≤ a) are inputed from the keyboard.
On the screen the area covered by the folded sheet (in square centimeters) with at least 6 significant digits must be written.
7 100 1 1
600.000
13 5 10 3
51.7857