結果
問題 | No.1487 ぺんぎんさんかっけー |
ユーザー |
|
提出日時 | 2021-04-23 21:34:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 649 bytes |
コンパイル時間 | 1,482 ms |
コンパイル使用メモリ | 165,132 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-04 07:43:17 |
合計ジャッジ時間 | 2,480 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 37 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;typedef unsigned long long ull;typedef pair<int,int> iint;typedef pair<ll,ll> llll;#define ALL(x) (x).begin(),(x).end()const ll zero = 0;const ll one = 1;const ll INF = 9223372036854775807; //10^18const int inINF = 2147483647; //10^9const ll MOD = 1000000007; //10^9+7const ll MOD2 = 998244353;void Yes() {printf("Yes\n");}void No() {printf("No\n");}void YES() {printf("YES\n");}void NO() {printf("NO\n");}int main(){double a, b, c;cin >> a >> b >> c;double s = (a+b+c) / 2.0;double S = sqrt(s*(s-a)*(s-b)*(s-c));printf("%32.18f\n", S/4);}