問題一覧 > 通常問題

No.1487 Penguin-san Is So Cool

レベル : / AI推定難易度 : 950 / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $10^{-6}$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : (AC するまで非表示) / 解いたユーザー数 166
作問者 : penguinman / テスター : magsta
お気に入りにしたユーザー ProblemId : 5925 / 自分の提出
問題文最終更新日: 2021-04-10 00:04:33
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. Back to the original
yukicoder contest 292 (順位表) の他の問題:

Problem Statement

There is a triangle $\triangle ABC$ satisfying $AB=a,\ BC=b,\ CA=c$.

penguinman will choose a point $P$ on side $AB$, a point $Q$ on side $BC$, and a point $R$ on side $CA$ completely at random, and form a new triangle $\triangle PQR$.

More precisely, penguinman randomly draws real numbers $p,\ q,\ r$ from continuous uniform distributions over the ranges $[0,\ a),\ [0,\ b),\ [0,\ c)$ respectively, and constructs $\triangle PQR$ by taking the $3$ points $P,\ Q,\ R$ on $AB,\ BC,\ CA$ respectively so that $AP=p,\ BQ=q,\ CR=r$.

What is the expected value of the area of $\triangle PQR$?

Input

\(a\) \(b\) \(c\)

  • $1\leq a,\ b,\ c\leq 1000$
  • There exists a triangle whose $3$ sides have lengths $a,\ b,\ c$.
  • All inputs are integers.

Output

Output the expected value of the area of $\triangle PQR$, followed by a newline.

Your answer is considered correct if its error from the expected solution is at most $10^{-6}$.

Sample

Sample 1
Input
2 4 5
Output
0.9499177596
Sample 2
Input
923 945 843
Output
87798.3473442793

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。