結果
| 問題 |
No.442 和と積
|
| コンテスト | |
| ユーザー |
AreTrash
|
| 提出日時 | 2016-11-11 23:46:40 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 1,000 ms |
| コード長 | 433 bytes |
| コンパイル時間 | 847 ms |
| コンパイル使用メモリ | 112,264 KB |
| 実行使用メモリ | 26,964 KB |
| 最終ジャッジ日時 | 2024-07-04 22:35:36 |
| 合計ジャッジ時間 | 2,290 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.
ソースコード
using System;
using System.Numerics;
namespace No442{
public class Program{
public static void Main(string[] args){
Func<BigInteger, BigInteger, BigInteger> Gcd = null;
Gcd = (a, b) => b == 0 ? a : Gcd(b, a % b);
var input = Array.ConvertAll(Console.ReadLine().Split(), BigInteger.Parse);
Console.WriteLine(Gcd(input[0] + input[1], input[0] * input[1]));
}
}
}
AreTrash