結果

問題 No.736 約比
ユーザー pof
提出日時 2020-01-23 22:37:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-07-21 16:21:12
合計ジャッジ時間 3,586 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33 WA * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
from functools import reduce


def gcd_list(numbers):
    return reduce(math.gcd, numbers)


n = input()
a = list(map(int, input().split()))
r = ':'.join(list(map(str, [int(i / gcd_list(a)) for i in a])))
print(r)
0