結果
問題 | No.1487 ぺんぎんさんかっけー |
ユーザー |
|
提出日時 | 2021-04-23 21:33:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 548 bytes |
コンパイル時間 | 888 ms |
コンパイル使用メモリ | 93,700 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 07:42:19 |
合計ジャッジ時間 | 1,909 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 37 |
ソースコード
#include <iostream> #include <string> #include <algorithm> #include <iostream> #include <string> #include <algorithm> #include <vector> #include <iomanip> #include <cmath> #include <stdio.h> #include <queue> #include <deque> #include <cstdio> #include <set> #include <map> #include <bitset> #include <stack> #include <cctype> using namespace std; int main() { long double a, b, c; cin >> a >> b >> c; long double s = (a + b + c) / 2; long double m = sqrtl(s * (s - a) * (s - b) * (s - c)); cout << fixed << setprecision(16) << m / 4 << endl; }