結果
問題 |
No.3151 natural math of inscribed circle
|
ユーザー |
![]() |
提出日時 | 2025-05-20 21:44:34 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 973 ms |
コンパイル使用メモリ | 111,132 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-05-20 21:44:37 |
合計ジャッジ時間 | 1,849 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | WA * 40 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <cmath> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; double s = (a + b + c) / 2; double ans = 2 * sqrt(s * (s - a) * (s - b) * (s - c)) / (a + b + c); printf("%.10f\n", ans); }