結果
| 問題 |
No.3151 natural math of inscribed circle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-20 21:37:43 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 292 bytes |
| コンパイル時間 | 10,924 ms |
| コンパイル使用メモリ | 387,928 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2025-06-20 02:59:36 |
| 合計ジャッジ時間 | 12,268 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 41 |
ソースコード
use proconio::input;
fn main() {
input! {
(a, b, c): (f64, f64, f64),
}
let cos = (a.powi(2) + c.powi(2) - b.powi(2)) / (2.0 * a * c);
let sin = (1.0 - cos.powi(2)).sqrt();
let s = a * c * sin / 2.0;
let r = (2.0 * s) / (a + b + c);
println!("{}", r);
}