結果
問題 | No.736 約比 |
ユーザー |
|
提出日時 | 2019-01-15 13:44:36 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 160 bytes |
コンパイル時間 | 221 ms |
コンパイル使用メモリ | 82,688 KB |
実行使用メモリ | 55,552 KB |
最終ジャッジ日時 | 2024-06-24 20:58:50 |
合計ジャッジ時間 | 5,141 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 65 |
ソースコード
from functools import reduce import math a = int(input()) ar = list(map(int,input().split())) g = reduce(math.gcd, ar) print(":".join(str(s//g) for s in ar))