結果
| 問題 |
No.2400 Product of Gaussian Integer
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-14 15:35:45 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 329 bytes |
| コンパイル時間 | 843 ms |
| コンパイル使用メモリ | 76,920 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-02-14 15:35:47 |
| 合計ジャッジ時間 | 2,150 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
#include <iostream>
#include <cstdint>
using namespace std;
int main()
{
cin.tie(nullptr);
ios::sync_with_stdio(false);
int32_t A, B, C, D;
cin >> A >> B >> C >> D;
cout << static_cast<int64_t>(A) * C - static_cast<int64_t>(B) * D << ' ' << static_cast<int64_t>(A) * D + static_cast<int64_t>(B) * C << '\n';
return 0;
}