結果

問題 No.442 和と積
ユーザー ixTL255
提出日時 2017-01-27 11:13:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 39 ms / 1,000 ms
コード長 279 bytes
コンパイル時間 2,783 ms
コンパイル使用メモリ 110,980 KB
実行使用メモリ 27,808 KB
最終ジャッジ日時 2024-07-04 22:58:43
合計ジャッジ時間 2,394 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます
コンパイルメッセージ
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