포럼
문제 ICPC00267

B. Big Brother

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

You have come up with a new brilliant idea of automatically keeping track of how much (or little) your employees are working in the office: face recognition! By installing some advanced CCTV cameras in the office you will be able to automatically detect when the staff arrives or leaves, are taking breaks etc, thus reducing the need for manual administrative work. No more stamping clocks.

A good CCTV camera is expensive, so ideally you would only use one. It would obviously have to be placed somewhere where the entire office floor can be overlooked, so there are no walls blocking some dark corner of the floor where your workforce might hide.

While looking at the floor map, which can be modelled as a simple polygon, you are not sure if this is possible. Since the task is way above the paygrade of everyone else in the company you will have to write the program figuring this out yourself. If it is possible, you also want to know the area of the surface where the camera could be placed. See Figure for an example.

제약
입력 형식

The first line of input contains an integer \(n\) (\(3 \le n \le 500\,000\)), the number of vertices describing the polygon representing the office floor. Then follow \(n\) lines containing the integer coordinates \(x, y\) of the polygon in clockwise order (\(0 \le x, y \le 10^7\)).

출력 형식

Output the area of the region of the map where a CCTV camera could be placed so that the rest of the office can be observed. (If it is not possible to put the camera anywhere, this area is \(0\).)

The answer must be correct with a relative of at most \(10^{-6}\), or an absolute error of at most \(0.1\).

예제 1
입력
8
0 0
0 1
1 1
1 2
2 2
2 1
3 1
3 0
출력
1.0
예제 2
입력
8
0 0
0 2
1 2
1 1
2 1
2 2
3 2
3 0
출력
0.0
예제 3
입력
6
140 62
97 141
68 156
129 145
153 176
130 109
출력
48.80349500
문제 정보

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

출처 ICPC NCPC 2020

평가 및 의견

B. Big Brother

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

Log in to rate problems.

개별 의견

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

풀이 제출

B. Big Brother

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