結果
| 問題 | No.1487 ぺんぎんさんかっけー |
| コンテスト | |
| ユーザー |
👑 Nachia
|
| 提出日時 | 2021-04-23 22:08:09 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 342 bytes |
| 記録 | |
| コンパイル時間 | 638 ms |
| コンパイル使用メモリ | 97,340 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-19 22:51:41 |
| 合計ジャッジ時間 | 1,604 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 37 |
ソースコード
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
using ll = long long;
#define rep(i,n) for(int i=0; i<(n); i++)
int main(){
double p = 0.25;
double a,b,c; scanf("%lf%lf%lf",&a,&b,&c);
double s = (a+b+c)/2;
double S = sqrt(s*(s-a)*(s-b)*(s-c));
double ans = S * p;
printf("%.10f\n",ans);
return 0;
}
Nachia