結果
| 問題 | No.3151 natural math of  inscribed circle | 
| コンテスト | |
| ユーザー |  Ponzu | 
| 提出日時 | 2025-05-20 21:32:26 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 309 bytes | 
| コンパイル時間 | 921 ms | 
| コンパイル使用メモリ | 109,296 KB | 
| 実行使用メモリ | 7,848 KB | 
| 最終ジャッジ日時 | 2025-06-20 02:58:59 | 
| 合計ジャッジ時間 | 2,042 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 41 | 
ソースコード
#include<iostream>
#include<vector>
#include<math.h>
#include<iomanip>
using namespace std;
int main() {
	long double a,b,c;cin>>a>>b>>c;
	long double s = (a+b+c) / 2.0;
	long double S = sqrt(s*(s-a)*(s-b)*(s-c));
	long double ans = 2*S / (a+b+c);
	cout << setprecision(20) << fixed;
	cout << ans << endl;
}
            
            
            
        