結果

問題 No.2400 Product of Gaussian Integer
ユーザー Maffy-0
提出日時 2024-03-21 16:51:36
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 2,042 ms
コンパイル使用メモリ 191,596 KB
最終ジャッジ日時 2025-02-20 10:39:20
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

void fast_io() {
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);
}

signed main(void) {
    fast_io();
    long A, B, C, D;
    cin >> A >> B >> C >> D;
    long N = A * C - B * D;
    long M = A * D + B * C;
    cout << N << " " << M << endl;
    return 0;
}
0