問題一覧 > 通常問題

No.3151 natural math of inscribed circle

レベル : / AI推定難易度 : 194 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $10^{-6}$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : (AC するまで非表示) / 解いたユーザー数 122
作問者 : Cafe1942 / テスター : kazuppa sclara
お気に入りにしたユーザー ProblemId : 12266 / 自分の提出
問題文最終更新日: 2025-05-20 20:22:40
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
Math Cafe 1 (順位表) の他の問題:

Problem Statement

Find the radius of the circle inscribed in a triangle whose side lengths are $A$ , $B$ , $C$ . It is guaranteed that the given triangle satisfies the triangle inequality.

Constraints

  • $1 \leq A \leq B \leq C \leq 10^6$
  • $C < (A + B)$
  • All inputs are integers.

Input

$A$ $B$ $C$

Output

Your answer is judged as correct if its absolute or relative error from the true value is at most $10^{-6}$ .

Sample

Sample 1
Input
3 4 5
Output
1.000000000000000

The radius of the circle inscribed in the triangle whose side lengths are $3$ $,$ $4$ $,$ $5$ is $1$ .

Since an answer is judged as correct if its absolute or relative error from the true value is at most $10^{-6}$ , answers such as $1.00000001$ and $0.99999999987654321$ are also correct.

Sample 2
Input
10 10 10
Output
2.886751345948129

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