結果
問題 | No.736 約比 |
ユーザー |
![]() |
提出日時 | 2018-09-28 21:39:51 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 226 bytes |
コンパイル時間 | 3,759 ms |
コンパイル使用メモリ | 65,580 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 04:41:55 |
合計ジャッジ時間 | 5,729 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 65 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'algorithm' [UnusedImport]
ソースコード
import algorithm,sequtils,strutils,math var n=parseInt(readline(stdin)) a=map(split(readline(stdin)),parseInt) b:seq[int]= @[] q=a[0] for i in countup(1,n-1): q=gcd(a[i],q) for i in a: b &= i div q echo b.join(":")