結果
問題 |
No.442 和と積
|
ユーザー |
![]() |
提出日時 | 2017-01-27 17:58:14 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 39 ms / 1,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 1,960 ms |
コンパイル使用メモリ | 109,420 KB |
実行使用メモリ | 19,840 KB |
最終ジャッジ日時 | 2024-07-04 23:01:18 |
合計ジャッジ時間 | 3,464 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 c=System.Console; using b=System.Numerics.BigInteger; using System.Linq; public class Y{ public static void Main(){ var a=c.ReadLine().Split(' ').Select(n=>b.Parse(n)).ToList(); c.WriteLine(b.GreatestCommonDivisor(a[0]*a[1],a[0]+a[1])); }}