No.1551 誕生日の三角形
問題文最終更新日: 2018-08-23 23:03:04
English (AI translation)
Birthday Triangle
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Show the original
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Show the original
yukicoder contest 300
(順位表)
の他の問題:
Problem Statement
Bob is planning to give Alice a triangle for her birthday.
Alice likes triangles with a large area.
Bob's budget is $L$, and he can give a triangle whose total side length is at most $L$.
Find the maximum area of a triangle that Bob can give within his budget.
Input
L
$1$ $\le$ $L$ $\le$ $100$
$L$ is an integer
A unique solution exists
Output
Output the area so that the absolute error or the relative error is at most $10^{-9}$.
Print a newline at the end.
Sample
Sample 1
Input
1
Output
0.0481125224324688137111
There exists a triangle whose total side length is 1 and whose area is $\frac{\sqrt{3}}{36}$, and this is the maximum area.
Sample 2
Input
100
Output
481.1252243246881371285806
This is the maximum case.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
Lepton_s
37zigen