結果
問題 |
No.3151 natural math of inscribed circle
|
ユーザー |
![]() |
提出日時 | 2025-05-20 23:01:46 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 5,598 ms |
コンパイル使用メモリ | 334,408 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-20 03:01:35 |
合計ジャッジ時間 | 6,811 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 41 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <atcoder/all> using namespace atcoder; using ll = long long; using mint = modint998244353; int main() { long double a ,b, c; cin >> a >> b >> c; long double s = (a + b + c) / 2.0; long double area = sqrt(s * (s - a) * (s - b) * (s - c)); cout << fixed << setprecision(10) << area / s << endl; }