結果
問題 | No.236 鴛鴦茶 |
ユーザー |
![]() |
提出日時 | 2022-12-15 21:17:07 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 337 bytes |
コンパイル時間 | 12,145 ms |
コンパイル使用メモリ | 390,068 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-14 12:40:44 |
合計ジャッジ時間 | 13,395 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
fn main() { let mut xx = String::new(); std::io::stdin().read_line(&mut xx).ok(); let xx: Vec<f64> = xx.split_whitespace().flat_map(str::parse).collect(); if xx[3] / xx[2] >= xx[1] / xx[0] { println!("{}", (1. + xx[1] / xx[0]) * xx[2]); } else { println!("{}", (1. + xx[0] / xx[1]) * xx[3]); } }