結果
| 問題 |
No.3151 natural math of inscribed circle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-24 18:12:50 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 219 bytes |
| コンパイル時間 | 10,508 ms |
| コンパイル使用メモリ | 389,352 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-06-20 03:03:41 |
| 合計ジャッジ時間 | 11,872 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 41 |
ソースコード
use proconio::input;
fn main() {
input! {
a: f64,
b: f64,
c: f64,
}
let s = (a + b + c) / 2.0;
let radius = ((s - a) * (s - b) * (s - c) / s).sqrt();
println!("{radius}");
}