結果

問題 No.1487 ぺんぎんさんかっけー
ユーザー t33f
提出日時 2021-04-23 21:56:11
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 246 bytes
コンパイル時間 894 ms
コンパイル使用メモリ 87,988 KB
最終ジャッジ日時 2025-01-20 23:50:00
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iomanip>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
    int a, b, c; cin >> a >> b >> c;
    double s = (a + b + c) / 2.0;
    cout << setprecision(10) << sqrt(s * (s - a) * (s - b) * (s - c)) / 4 << endl;
}
0