結果

問題 No.442 和と積
ユーザー ixTL255ixTL255
提出日時 2017-01-27 11:13:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 68 ms / 1,000 ms
コード長 279 bytes
コンパイル時間 2,185 ms
コンパイル使用メモリ 106,076 KB
実行使用メモリ 24,112 KB
最終ジャッジ日時 2023-09-18 06:46:25
合計ジャッジ時間 4,369 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
23,916 KB
testcase_01 AC 65 ms
22,172 KB
testcase_02 AC 66 ms
22,100 KB
testcase_03 AC 66 ms
22,112 KB
testcase_04 AC 65 ms
21,948 KB
testcase_05 AC 65 ms
21,996 KB
testcase_06 AC 66 ms
21,976 KB
testcase_07 AC 65 ms
22,028 KB
testcase_08 AC 64 ms
21,944 KB
testcase_09 AC 67 ms
24,004 KB
testcase_10 AC 65 ms
21,888 KB
testcase_11 AC 67 ms
24,024 KB
testcase_12 AC 67 ms
22,048 KB
testcase_13 AC 68 ms
22,156 KB
testcase_14 AC 68 ms
22,212 KB
testcase_15 AC 68 ms
22,148 KB
testcase_16 AC 66 ms
22,040 KB
testcase_17 AC 66 ms
21,980 KB
testcase_18 AC 66 ms
24,112 KB
testcase_19 AC 66 ms
22,116 KB
testcase_20 AC 68 ms
24,068 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using  c = System.Console;
using System.Numerics;
using System.Linq;
public class Y
{
	public static void Main()
	{
		var a = c.ReadLine().Split(' ').Select(n=>BigInteger.Parse(n)).ToArray();
		var b = BigInteger.GreatestCommonDivisor(a[0]*a[1],a[0]+a[1]);
		c.WriteLine(b);
	}
}
0