結果
問題 | No.1487 ぺんぎんさんかっけー |
ユーザー |
|
提出日時 | 2021-04-28 23:49:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 1,540 ms |
コンパイル使用メモリ | 165,980 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 23:09:21 |
合計ジャッジ時間 | 2,776 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 37 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair<int, int> int main() { double a, b, c; cin >> a >> b >> c; double s = (a+b+c)/2; double ans = sqrt(s*(s-a)*(s-b)*(s-c)); ans /= 4; cout << fixed << setprecision(15) << ans << endl; }