結果

問題 No.1487 ぺんぎんさんかっけー
ユーザー MtSaka
提出日時 2021-04-23 21:33:22
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 687 bytes
コンパイル時間 2,292 ms
コンパイル使用メモリ 179,808 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-04 07:41:42
合計ジャッジ時間 3,425 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

//GIVE ME AC!!!!!!!!!!!!!!!!!
#pragma GCC target("avx")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
#define ll long long
#define floatset() fixed<<setprecision(15)
#define all(n) n.begin(),n.end()
#define rall(n) n.rbegin(),n.rend()
#define rep(i, s, n) for (ll i = s; i < (ll)(n); i++)
using namespace std;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
const ll inf =1e18;
const ll MOD=1000000007;
const ll mod=998244353;
const double pi=acos(-1);
using P=pair<ll,ll>;
int main(){
    double a,b,c;
    cin>>a>>b>>c;
    double S;
    double s=(a+b+c)/2;
    S=sqrt(s*(s-a)*(s-b)*(s-c));
    cout<<floatset()<<S/4<<endl;
}
0