結果
| 問題 |
No.442 和と積
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-09 20:24:36 |
| 言語 | Nim (2.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 288 bytes |
| コンパイル時間 | 3,906 ms |
| コンパイル使用メモリ | 65,368 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-01 23:02:37 |
| 合計ジャッジ時間 | 4,113 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 7 |
ソースコード
import seqUtils, strutils
proc gcd(a, b:int64): int64 =
var
big = max(a, b)
small = min(a, b)
while small > 0:
(big, small) = (small, big mod small)
return big
let
tmp: seq[int64] = stdin.readLine.split.map parseBiggestInt
(a, b) = (tmp[0], tmp[1])
echo gcd(a, b)