結果
| 問題 |
No.3151 natural math of inscribed circle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-20 21:42:43 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 371 bytes |
| コンパイル時間 | 3,141 ms |
| コンパイル使用メモリ | 273,648 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2025-06-20 02:59:49 |
| 合計ジャッジ時間 | 4,262 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 41 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
ld A, B, C;
cin >> A >> B >> C;
ld s = (A + B + C) / 2.0L;
ld S = sqrtl(s * (s - A) * (s - B) * (s - C));
ld r = S / s;
cout << fixed << setprecision(10) << r << "\n";
return 0;
}