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

35009번 - Largest Area 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB19181894.737%

문제

You are given a rectangle on the plane with vertices at integer points. Calculate the area of the largest ellipse that can fit entirely within this rectangle. Recall that a rectangle is a convex quadrilateral with all right angles, and an ellipse is a figure on the plane defined by two focal points $F_1$ and $F_2$ (not necessarily with integer coordinates; possibly $F_1 = F_2$) and a real number $d > |F_1 F_2|,ドル consisting of points $P$ on the plane such that $|F_1 P| + |F_2 P| \le d$.

입력

You are given a rectangle on the plane with vertices at integer points. Calculate the area of the largest ellipse that can fit entirely within this rectangle. Recall that a rectangle is a convex quadrilateral with all right angles, and an ellipse is a figure on the plane defined by two focal points $F_1$ and $F_2$ (not necessarily with integer coordinates; possibly $F_1 = F_2$) and a real number $d > |F_1 F_2|,ドル consisting of points $P$ on the plane such that $|F_1 P| + |F_2 P| \le d$.

출력

Output a single real number: the largest area of an ellipse that can be drawn inside the rectangle given in the input. The answer is considered correct if its relative or absolute error does not exceed 10ドル^{-6}$.

제한

예제 입력 1

1 1 4 1 4 4 1 4

예제 출력 1

7.06858347

예제 입력 2

0 -1 -2 13 -30 9 -28 -5

예제 출력 2

314.15926536

노트

출처

ICPC > Regionals > Northern Eurasia > Northwestern Russia Regional Contest > ICPC 2025-2026 Northwestern Russia Qualification F번

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

출처

대학교 대회

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

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