問題一覧 > 通常問題

No.1551 誕生日の三角形

レベル : / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $10^{-9}$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : (AC するまで非表示) / 解いたユーザー数 221
作問者 : Lepton_s / テスター : 37zigen
お気に入りにしたユーザー ProblemId : 2100 / 自分の提出
問題文最終更新日: 2018-08-23 23:03:04
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
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もしくは右上の雲マークをクリックしてアカウントを作成してください。