結果
問題 |
No.1175 Simultaneous Equations
|
ユーザー |
![]() |
提出日時 | 2023-01-08 22:17:51 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 591 bytes |
コンパイル時間 | 12,771 ms |
コンパイル使用メモリ | 375,888 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-16 02:08:15 |
合計ジャッジ時間 | 13,746 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let a: f64 = itr.next().unwrap().parse().unwrap(); let b: f64 = itr.next().unwrap().parse().unwrap(); let c: f64 = itr.next().unwrap().parse().unwrap(); let d: f64 = itr.next().unwrap().parse().unwrap(); let e: f64 = itr.next().unwrap().parse().unwrap(); let f: f64 = itr.next().unwrap().parse().unwrap(); let x = (c / b - f / e) / (a / b - d / e); let y = (c / a - f / d) / (b / a - e / d); println!("{} {}", x, y); }