結果
問題 |
No.1487 ぺんぎんさんかっけー
|
ユーザー |
![]() |
提出日時 | 2021-05-03 19:50:27 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 38 ms / 1,000 ms |
コード長 | 276 bytes |
コンパイル時間 | 1,892 ms |
コンパイル使用メモリ | 193,600 KB |
最終ジャッジ日時 | 2025-01-21 06:23:07 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 37 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i<n;i++) #define int long long signed main(void) { double a,b,c; cin>>a>>b>>c; double s=(a+b+c)/2; cout<<setprecision(18)<<sqrt(s*(s-a)*(s-b)*(s-c))*.25<<endl; }