Pro.ID10234 TitlePia's Party Title链接http://10.20.2.8/oj/exercise/problem?problem_id=10234 AC0 Submit0 Ratio- 时间&空间限制描述Pia wants to set up the audio system for her birthday party. The party will take place on a circular area because Pia believes that a circle is the most beautiful 2-dimensional shape. Pia has four loudspeakers that she can place on certain points of the circle's circumference. From her extensive party experience she knows that people will only dance in the area inside the four loudspeakers. As she wants a big a dance floor as possible she wants to maximize the quadrilateral defined by the four loudspeakers. Can you help Pia? 输入The first line contains the number of scenarios.
输出Description Pia wants to set up the audio system for her birthday party. The party will take place on a circular area because Pia believes that a circle is the most beautiful 2-dimensional shape. Pia has four loudspeakers that she can place on certain points of the circle's circumference. From her extensive party experience she knows that people will only dance in the area inside the four loudspeakers. As she wants a big a dance floor as possible she wants to maximize the quadrilateral defined by the four loudspeakers. Can you help Pia? Input The first line contains the number of scenarios.
Output The output for every scenario begins with a line containing "Scenario #i:", where i is the number of the scenario starting at 1. Sample Input 4
10 13 4 3
20 31 6 5
1000 80000 50 3
100 1200 20 139 Sample Output Scenario #1:
48.914286
Scenario #2:
179.100273
Scenario #3:
0.028490
Scenario #4:
4965.195940 Source 样例输入4
10 13 4 3
20 31 6 5
1000 80000 50 3
100 1200 20 139 样例输出Scenario #1:
48.914286
Scenario #2:
179.100273
Scenario #3:
0.028490
Scenario #4:
4965.195940 作者 |