Given a simple polygon with up to 200 vertices, find the longest line segment that lies entirely inside it.
Hard8GeometryBrute forceImplementationNo attempts yetTime limit2sMemory limit512 MBThe tropical island nation of Piconesia is known for its beaches, its forests, its cocoa and coffee plantations, and good weather all year round. It has one problem: the island is very hard to reach.
Today the fastest trip from the nearest airport takes three days and uses a fishing boat, an oil tanker, a kayak, and a submarine. To start a tourism business, Piconesia is going to build its first airport.
A longer landing strip takes larger airplanes, so Piconesia wants the longest landing strip that fits on the island. Nobody has worked out where to put it.
In this problem the coastline of the island is a polygon. Given the polygon, compute the length of the longest straight landing strip that can be built on the island. The landing strip must not cross the sea, but it may touch the boundary of the island or run along it.

Figure: the island drawn as a polygon. The thick line is the longest landing strip for the first example.
The first line contains the number of vertices of the polygon n (3≤n≤200).
Each of the next n lines contains the coordinates x and y (∣x∣,∣y∣≤106) of one vertex, in counter-clockwise order. Both coordinates are integers.
The polygon is simple. All vertices are distinct, and no two edges intersect or touch, except that consecutive edges touch at their common vertex. No two consecutive edges lie on one line.
Print the length of the longest line segment that fits inside the polygon on one line, rounded to six digits after the decimal point. Always print all six digits, even when they are zeros.