結果
問題 |
No.3151 natural math of inscribed circle
|
ユーザー |
|
提出日時 | 2025-05-23 13:02:07 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 279 bytes |
コンパイル時間 | 577 ms |
コンパイル使用メモリ | 92,516 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-20 03:02:56 |
合計ジャッジ時間 | 1,614 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 41 |
ソースコード
#include<iostream> #include<vector> #include<math.h> #include<algorithm> using namespace std; using ll = long long; int main(void){ int a, b, c; cin >> a >> b >> c; double s=(a+b+c)/2.0; double S=sqrt(s*(s-a)*(s-b)*(s-c)); printf("%.10f\n", 2.0*S/(a+b+c)); return 0; }