結果
| 問題 | No.3151 natural math of inscribed circle |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-15 02:35:27 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 204µs | |
| コード長 | 414 bytes |
| 記録 | |
| コンパイル時間 | 1,918 ms |
| コンパイル使用メモリ | 336,784 KB |
| 実行使用メモリ | 9,392 KB |
| 最終ジャッジ日時 | 2026-07-12 12:10:03 |
| 合計ジャッジ時間 | 4,008 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 41 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll =long long;
#include<atcoder/dsu>
using namespace atcoder;
void solve(){
double A,B,C;
cin>>A>>B>>C;
double S=(A+B+C)/2;
double ar=sqrt(S)*sqrt(S-A)*sqrt(S-B)*sqrt(S-C);
double d=A+B+C;
cout<<fixed<<setprecision(15)<<ar/d*2.0<<endl;
}
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int T=1;
// cin>>T;
while(T--)solve();
}