結果
問題 | No.1487 ぺんぎんさんかっけー |
ユーザー |
![]() |
提出日時 | 2021-04-23 22:37:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 2,210 ms |
コンパイル使用メモリ | 191,972 KB |
最終ジャッジ日時 | 2025-01-21 00:12:49 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 37 |
ソースコード
#define rep(i, n) for (int i = 0; i < (int)(n); i++)#define ALL(v) v.begin(), v.end()typedef long long ll;#include <bits/stdc++.h>using namespace std;int main(){double a,b,c;cin>>a>>b>>c;double s=(a+b+c)/2;cout<<fixed<<setprecision(10)<<sqrt(s*(s-a)*(s-b)*(s-c))/4<<endl;return 0;}