| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 3 초 | 1024 MB | 95 | 28 | 15 | 21.739% |
You are putting up an event space in Nottingham's Sherwood Forest by erecting a fence in a circular-shaped clearing you found that is exactly one kilometre in radius. You will put some fence posts in the trees around the edge of the clearing and then connect them together with fencing later.
You would like to put the fence around as much of the event space as possible. However, the ground is only suitable in a few places around the border, and you only have so many fence posts to put in the ground, so you'll have to choose carefully if you want to maximise area.
Figure C.1: An illustration of using 4 posts to capture the maximum area in sample input 1.
Knowing the safe places to put fence posts, and the number of posts you have, what is the maximum area of clearing you can enclose?
Output the maximum area you can capture with a polygonal clearing made using at most $p$ fence posts, in square metres.
The output must be accurate to an absolute or relative error of 10ドル^{-6}$.
As a reminder, the radius of the clearing is 1ドル$km.
5 4 0 120 180 240 270
1866025.40378443866