結果
| 問題 | No.3151 natural math of inscribed circle |
| コンテスト | |
| ユーザー |
tobbie
|
| 提出日時 | 2025-05-28 08:27:44 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 325 bytes |
| 記録 | |
| コンパイル時間 | 1,094 ms |
| コンパイル使用メモリ | 210,128 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-11 02:58:46 |
| 合計ジャッジ時間 | 3,174 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 41 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; i++)
int main() {
int a, b, c;
cin >> a >> b >> c;
double s = (a + b + c) / 2;
double ss = sqrt(s * (s-a) * (s-b) * (s-c));
double r = ss * 2 / (a + b + c);
cout << fixed << setprecision(10) << r << endl;
return 0;
}
tobbie