結果

問題 No.2400 Product of Gaussian Integer
ユーザー atcoder8atcoder8
提出日時 2023-08-04 21:26:03
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 676 bytes
コンパイル時間 12,284 ms
コンパイル使用メモリ 378,952 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 19:21:19
合計ジャッジ時間 13,150 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let (a, b) = {
        let mut line = String::new();
        std::io::stdin().read_line(&mut line).unwrap();
        let mut iter = line.split_whitespace();
        (
            iter.next().unwrap().parse::<i64>().unwrap(),
            iter.next().unwrap().parse::<i64>().unwrap(),
        )
    };
    let (c, d) = {
        let mut line = String::new();
        std::io::stdin().read_line(&mut line).unwrap();
        let mut iter = line.split_whitespace();
        (
            iter.next().unwrap().parse::<i64>().unwrap(),
            iter.next().unwrap().parse::<i64>().unwrap(),
        )
    };

    println!("{} {}", a * c - b * d, a * d + b * c);
}
0