結果

問題 No.442 和と積
ユーザー ixTL255ixTL255
提出日時 2017-01-24 23:39:55
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 69 ms / 1,000 ms
コード長 278 bytes
コンパイル時間 3,265 ms
コンパイル使用メモリ 104,952 KB
実行使用メモリ 24,076 KB
最終ジャッジ日時 2023-09-18 06:45:08
合計ジャッジ時間 5,571 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
21,920 KB
testcase_01 AC 67 ms
21,980 KB
testcase_02 AC 65 ms
21,880 KB
testcase_03 AC 67 ms
20,044 KB
testcase_04 AC 65 ms
22,104 KB
testcase_05 AC 65 ms
23,984 KB
testcase_06 AC 65 ms
23,996 KB
testcase_07 AC 65 ms
21,996 KB
testcase_08 AC 64 ms
24,076 KB
testcase_09 AC 67 ms
24,056 KB
testcase_10 AC 66 ms
21,996 KB
testcase_11 AC 67 ms
21,960 KB
testcase_12 AC 69 ms
21,912 KB
testcase_13 AC 69 ms
22,084 KB
testcase_14 AC 68 ms
19,968 KB
testcase_15 AC 68 ms
21,972 KB
testcase_16 AC 66 ms
19,844 KB
testcase_17 AC 67 ms
23,940 KB
testcase_18 AC 65 ms
21,932 KB
testcase_19 AC 66 ms
21,956 KB
testcase_20 AC 68 ms
22,024 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;
using System.Linq;
public class Y
{
	public static void Main()
	{
		var a = Console.ReadLine().Split(' ').Select(n=>BigInteger.Parse(n)).ToArray();
		var b = BigInteger.GreatestCommonDivisor(a[0]*a[1],a[0]+a[1]);
		Console.WriteLine(b);
	}
}
0