結果
問題 | No.306 さいたま2008 |
ユーザー |
![]() |
提出日時 | 2022-11-09 03:36:17 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 704 bytes |
コンパイル時間 | 11,048 ms |
コンパイル使用メモリ | 400,856 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-14 12:18:31 |
合計ジャッジ時間 | 12,202 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
ソースコード
fn main() { let (xa, ya): (f64, f64) = { let mut line: String = String::new(); std::io::stdin().read_line(&mut line).unwrap(); let mut iter = line.split_whitespace(); ( iter.next().unwrap().parse().unwrap(), iter.next().unwrap().parse().unwrap(), ) }; let (xb, yb): (f64, f64) = { let mut line: String = String::new(); std::io::stdin().read_line(&mut line).unwrap(); let mut iter = line.split_whitespace(); ( iter.next().unwrap().parse().unwrap(), iter.next().unwrap().parse().unwrap(), ) }; let ans = ya+(yb-ya)*xa/(xa+xb); println!("{ans:?}"); }