Codeforces Round 362 (Div. 1)
F
...Dary!
Codeforces
3300
原题
← E→
翻译中…

Barney has finally found the one, a beautiful young lady named Lyanna. The problem is, Lyanna and Barney are trapped in Lord Loss' castle. This castle has shape of a convex polygon of $*n*$ points. Like most of castles in Demonata worlds, this castle has no ceiling.

翻译中…

image

翻译中…

Barney and Lyanna have an escape plan, but it requires some geometry knowledge, so they asked for your help.

翻译中…

Barney knows that demons are organized and move in lines. He and Lyanna want to wait for the appropriate time so they need to watch for the demons. Each of them wants to stay in a point inside the castle (possibly on edges or corners), also they may stay in the same position. They both want to pick a real number $*r*$ and watch all points in the circles with radius $*r*$ around each of them (these two circles may overlap).

翻译中…

image

翻译中…

We say that Barney and Lyanna are watching carefully if and only if for every edge of the polygon, at least one of them can see at least one point on the line this edge lies on, thus such point may not be on the edge but it should be on edge's line. Formally, each edge line should have at least one common point with at least one of two circles.

翻译中…

The greater $*r*$ is, the more energy and focus they need. So they asked you to tell them the minimum value of $*r*$ such that they can watch carefully.

翻译中…

Input

翻译中…

The first line of input contains a single integer $*n*$ ($3 ≤ *n* ≤ 300$) — the number of castle polygon vertices.

翻译中…

The next $*n*$ lines describe the polygon vertices in counter-clockwise order. $*i*$-th of them contains two integers $*x*_{*i*}$ and $*y*_{*i*}$ ($|*x*_{*i*}|, |*y*_{*i*}| ≤ 10^{4}$) — the coordinates of $*i*$-th point of the castle. It is guaranteed that given points form a convex polygon, in particular, any three of them do not line on the same line.

翻译中…

Output

翻译中…

In the first line print the single number $*r*$ — minimum radius of guys' watching circles.

翻译中…

In the second line print the pair of coordinates of point where Barney should stay.

翻译中…

In the third line print the pair of coordinates of point where Lyanna should stay.

翻译中…

Points should lie inside the polygon.

翻译中…

Coordinates may not be integers. If there are multiple answers print any of them.

翻译中…

Your answer will be considered correct if its absolute or relative error doesn't exceed $10^{ - 6}$.

翻译中…

Note

翻译中…

In the first example guys can stay in opposite corners of the castle.

翻译中…

样例

Input #1
4
-41 67
-16 20
25 25
-36 85
Output #1
0
-16 20
-36 85
InputCopy OutputCopy
Input #2
7
-7 54
-5 31
-2 17
20 19
32 23
34 27
26 57
Output #2
2.9342248
32.019503 23.0390067
-6.929116 54.006444
InputCopy OutputCopy
题目信息
题号
696F
时间限制
3 s
内存限制
256 MB
标签
二分
计算几何
双指针

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。