結果

問題 No.442 和と積
ユーザー ixTL255
提出日時 2017-01-24 23:39:55
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 39 ms / 1,000 ms
コード長 278 bytes
コンパイル時間 1,867 ms
コンパイル使用メモリ 108,432 KB
実行使用メモリ 30,196 KB
最終ジャッジ日時 2024-07-04 22:56:27
合計ジャッジ時間 3,272 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 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