結果

問題 No.3151 natural math of inscribed circle
ユーザー makichan
提出日時 2025-05-20 22:49:23
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 3,463 ms
コンパイル使用メモリ 274,484 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-05-20 22:49:28
合計ジャッジ時間 4,032 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 19 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;cin >>a >> b >> c;
	double s=(double)(a+b+c)/2;
	double surf=s*(s-a)*(s-b)*(s-c);
	surf=sqrt(surf);
	surf*=2;
	surf/=(a+b+c);
	cout << surf;
}
0