結果
| 問題 | No.2400 Product of Gaussian Integer |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-18 18:39:04 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 263 bytes |
| 記録 | |
| コンパイル時間 | 8,597 ms |
| コンパイル使用メモリ | 190,596 KB |
| 実行使用メモリ | 198,568 KB |
| 最終ジャッジ日時 | 2026-04-02 12:03:39 |
| 合計ジャッジ時間 | 4,285 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
use std::io::Read;
fn main() {
let mut s = String::new();
std::io::stdin().read_to_string(&mut s).ok();
let n: Vec<i64> = s.split_whitespace().flat_map(str::parse).collect();
println!(
"{} {}",
n[0] * n[2] - n[1] * n[3],
n[0] * n[3] + n[1] * n[2]
)
}