結果
問題 |
No.3151 natural math of inscribed circle
|
ユーザー |
![]() |
提出日時 | 2025-05-23 23:45:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 404 bytes |
コンパイル時間 | 1,495 ms |
コンパイル使用メモリ | 193,708 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-20 03:03:03 |
合計ジャッジ時間 | 2,564 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 41 |
ソースコード
#include <bits/stdc++.h> using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); using ld = long double; long long a, b, c; cin >> a >> b >> c; ld theta = acos((a * a + b * b - c * c) / (2.0 * a * b)); ld area = 0.5 * a * b * sin(theta); ld s = (a + b + c) / 2.0; ld r = area / s; cout << setprecision(16) << fixed << r << endl; }