結果
問題 |
No.3151 natural math of inscribed circle
|
ユーザー |
![]() |
提出日時 | 2025-05-23 13:41:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 607 bytes |
コンパイル時間 | 1,506 ms |
コンパイル使用メモリ | 193,916 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2025-06-20 03:02:58 |
合計ジャッジ時間 | 2,544 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 41 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef vector<int> VI; typedef vector<VI> VVI; typedef vector<long long> VL; typedef vector<VL> VVL; typedef long long LL; #define all(a) (a).begin(), (a).end() #define Yes(n) cout << ((n) ? "Yes" : "No" ) << endl #define YES(n) cout << ((n) ? "YES" : "NO" ) << endl #define ALL(a) (a).begin(),(a).end() #define pb push_back int main() { double a,b,c;cin>>a>>b>>c; double co=(a*a+b*b-c*c)/(2*a*b); double si=1-co*co; si=sqrt(si); double r=(a*b*si)/(a+b+c); cout<<setprecision(16)<<r<<endl; }