結果
| 問題 |
No.2400 Product of Gaussian Integer
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-06 18:59:45 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 554 bytes |
| コンパイル時間 | 1,007 ms |
| コンパイル使用メモリ | 108,956 KB |
| 実行使用メモリ | 18,176 KB |
| 最終ジャッジ日時 | 2024-11-06 22:01:38 |
| 合計ジャッジ時間 | 2,428 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program
{
static void Main(string[] args)
{
long A, B, C, D;
var line1 = Console.ReadLine().Split(' ');
var line2 = Console.ReadLine().Split(' ');
A = long.Parse(line1[0]);
B = long.Parse(line1[1]);
C = long.Parse(line2[0]);
D = long.Parse(line2[1]);
long N = A * C - B * D;
long M = A * D + B * C;
Console.WriteLine("{0} {1}", N, M);
}
}