結果
| 問題 |
No.1487 ぺんぎんさんかっけー
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-24 03:18:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 200 bytes |
| コンパイル時間 | 544 ms |
| コンパイル使用メモリ | 73,676 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-04 08:55:21 |
| 合計ジャッジ時間 | 1,586 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 37 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
6 | main()
| ^~~~
ソースコード
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int a,b,c;
main()
{
cin>>a>>b>>c;
double s=(a+b+c)*.5;
cout<<fixed<<setprecision(16)<<sqrt(s*(s-a)*(s-b)*(s-c))/4<<endl;
}