結果
問題 |
No.3151 natural math of inscribed circle
|
ユーザー |
|
提出日時 | 2025-06-15 02:35:27 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 414 bytes |
コンパイル時間 | 2,768 ms |
コンパイル使用メモリ | 278,880 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2025-06-20 03:05:05 |
合計ジャッジ時間 | 3,871 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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(); }