Logo
(追記) (追記ここまで)

7110번 - The Folded Sheet 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB281150.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.

제한

예제 입력 1

7 100 1 1

예제 출력 1

600.000

예제 입력 2

13 5 10 3

예제 출력 2

51.7857

힌트

출처

Olympiad > Latvian olympiad in informatics > 10th Latvian olympiad in informatics > Stage III (Country) 2번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /