結果

問題 No.3151 natural math of inscribed circle
コンテスト
ユーザー pengin_2000
提出日時 2025-05-20 21:26:01
言語 C
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 249 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 129 ms
コンパイル使用メモリ 40,416 KB
最終ジャッジ日時 2026-02-22 13:36:02
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 41
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<stdio.h>
#include<math.h>
int main()
{
	double a, b, c;
	scanf("%lf %lf %lf", &a, &b, &c);
	double s = (a + b + c) / 2;
	double S = sqrt(s * (s - a) * (s - b) * (s - c));
	double r = 2 * S / (a + b + c);
	printf("%.20lf\n", r);
	return 0;
}
0