結果
問題 |
No.3151 natural math of inscribed circle
|
ユーザー |
|
提出日時 | 2025-05-23 11:24:24 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 378 bytes |
コンパイル時間 | 3,421 ms |
コンパイル使用メモリ | 273,084 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-05-23 11:24:29 |
合計ジャッジ時間 | 5,254 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 WA * 21 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; const ll MOD = 998244353; int main() { double a, b, c; cin >> a >> b >> c; double x = (a + b + c) / 2; double s = sqrt(x * (x - a) * (x - b) * (x - c)); double r = s / x; cout << r << endl; }