포럼
문제 ICPC00393

E. Engineering Excellence

스페셜 저지 — 출력을 사용자 정의 프로그램으로 검사하므로 여러 정답이 인정될 수 있습니다.
설명

You are the engineer in charge of designing a wheel for a new space rover. As you do not have enough time to reinvent the wheel, you decide to copy your predecessor's work and make only one small change.

Looking at the plan, you notice that your predecessor's wheel has the shape of a convex polygon for structural reasons. It is well known that wheels with a larger perimeter roll farther per rotation, so surely they must be superior. You attempt to increase the perimeter by as much as possible by moving a single point on the outside of the wheel. While experimenting, you notice that wheels do not seem to work if they are non-convex or if there is an internal angle below \(90\) degrees.

What is the maximum possible achievable increase in the perimeter of the wheel without violating the above restrictions?

제약
입력 형식

The input consists of:
- One line with an integer \(n\) (\(4 \leq n \leq 10^5\)), the number of points of the wheel.
- \(n\) lines, each with two integers \(x\) and \(y\) (\(\left| x \right|, \left| y \right| \leq 10^5\)), the coordinates of the points.

The points are given in counterclockwise order and form a convex polygon with no internal angle below \(90\) degrees. Note that the convex polygon may contain collinear points, but no two points are at the same position.

출력 형식

Output the maximum possible absolute increase of the perimeter of the wheel.

Your answer should have an absolute or relative error of at most \(10^{-6}\).

예제 1
입력
5
1 1
4 1
4 3
3 5
1 4
출력
1.594883917346
예제 2
입력
7
0 -4
3 -3
5 -2
3 2
-6 -2
-6 -4
-2 -4
출력
3.151142198204
예제 3
입력
4
0 0
1 0
1 1
0 1
출력
0.000000000000
문제 정보

생성자가 기록되지 않았습니다.

출처 ICPC GCPC 2025

평가 및 의견

E. Engineering Excellence

개요
출제자 난이도 Unrated 레이팅 미적용 의견 0 / 1 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.

풀이 제출

E. Engineering Excellence

게스트로 둘러보고 있습니다. 로그인하면 풀이를 제출하고 진행 상황을 확인할 수 있습니다. 로그인하고 제출하기
공개
C++20 Tab 들여쓰기 · Ctrl+/ 주석 토글 · Enter 자동 들여쓰기
1 1 1 0 공백: 4 · UTF-8