| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 3 초 | 1024 MB | 46 | 10 | 5 | 12.821% |
Having just watched the famous Spielberg film, you are determined to build your own dinosaur amusement park here in the Netherlands. However, you first need to build the enclosure for the dinosaurs.
The land you bought for the amusement park already contains a number of fence posts. The Fence Post Committee does not allow you to move them, so you'll have to build your enclosure using the fence posts you get. The committee does not disclose their reasoning behind the placement of the fence posts, but they appear to be uniformly randomly distributed across the park. The Netherlands are quite flat, so you can view the fence posts as points in the 2D plane.
Since you are on a budget, your goal is to use the least amount of fence possible to build a proper enclosure, to not let the dinosaurs escape. A proper enclosure is a closed loop of some fences, spanning between fence posts, and has a nonzero area. Furthermore, fences are not able to intersect.
The input consists of:
It is guaranteed that there are exactly 60ドル$ testcases, and the coordinates of the fence posts are uniformly randomly generated for each testcase. The samples are for illustration only.
Each of your submissions will be run on new random test cases.
Output the perimeter of the smallest possible proper enclosure.
Your answer should have an absolute or relative error of at most 10ドル^{-6}$.
5 1 3 4 3 1 7 8 2 9 9
12.0
5 -604.3718854196 -92.8425146554 -609.1756147387 -908.5075783224 765.1668123158 -376.9414831956 -80.3845756558 -368.1619645414 455.0030654895 857.2937202110
2163.6322472014026062