結果

問題 No.442 和と積
ユーザー bluemeganebluemegane
提出日時 2018-09-15 13:36:42
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 66 ms / 1,000 ms
コード長 351 bytes
コンパイル時間 2,779 ms
コンパイル使用メモリ 101,036 KB
実行使用メモリ 23,092 KB
最終ジャッジ日時 2023-09-18 07:03:31
合計ジャッジ時間 5,099 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
20,908 KB
testcase_01 AC 62 ms
20,864 KB
testcase_02 AC 62 ms
22,932 KB
testcase_03 AC 64 ms
23,080 KB
testcase_04 AC 63 ms
22,912 KB
testcase_05 AC 64 ms
21,028 KB
testcase_06 AC 63 ms
20,996 KB
testcase_07 AC 64 ms
20,820 KB
testcase_08 AC 62 ms
21,008 KB
testcase_09 AC 64 ms
20,916 KB
testcase_10 AC 64 ms
22,976 KB
testcase_11 AC 65 ms
21,076 KB
testcase_12 AC 65 ms
21,072 KB
testcase_13 AC 65 ms
22,872 KB
testcase_14 AC 65 ms
21,048 KB
testcase_15 AC 65 ms
22,980 KB
testcase_16 AC 65 ms
20,944 KB
testcase_17 AC 65 ms
22,960 KB
testcase_18 AC 64 ms
23,092 KB
testcase_19 AC 64 ms
23,072 KB
testcase_20 AC 66 ms
22,976 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Numerics;

public class Hello
{
    public static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        BigInteger a = long.Parse(line[0]);
        BigInteger b = long.Parse(line[1]);
        var res = BigInteger.GreatestCommonDivisor(a + b, a * b);
        Console.WriteLine(res);
    }
}
0