結果
| 問題 | No.2400 Product of Gaussian Integer |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-18 18:39:04 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 817µs | |
| コード長 | 263 bytes |
| 記録 | |
| コンパイル時間 | 11,121 ms |
| コンパイル使用メモリ | 181,068 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-17 14:17:49 |
| 合計ジャッジ時間 | 10,705 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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]
)
}