結果
| 問題 | No.3151 natural math of inscribed circle |
| コンテスト | |
| ユーザー |
テナガザル
|
| 提出日時 | 2025-05-20 21:47:14 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 250µs | |
| コード長 | 294 bytes |
| 記録 | |
| コンパイル時間 | 937 ms |
| コンパイル使用メモリ | 182,256 KB |
| 実行使用メモリ | 9,400 KB |
| 最終ジャッジ日時 | 2026-07-12 11:54:12 |
| 合計ジャッジ時間 | 2,782 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 41 |
ソースコード
#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.0;
double ans = 2.0 * sqrt(s) / (a + b + c) * sqrt(s - a) * sqrt(s - b) * sqrt(s - c);
printf("%.10f\n", ans);
}
テナガザル