結果
| 問題 | No.1175 Simultaneous Equations |
| コンテスト | |
| ユーザー |
ixTL255
|
| 提出日時 | 2023-01-08 22:17:51 |
| 言語 | Rust (1.99.0 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 776µs | |
| コード長 | 591 bytes |
| 記録 | |
| コンパイル時間 | 2,444 ms |
| コンパイル使用メモリ | 182,888 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-04 07:32:23 |
| 合計ジャッジ時間 | 3,964 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
ixTL255