結果

問題 No.736 約比
ユーザー santafe1006
提出日時 2018-11-08 17:02:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 275 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-20 21:08:11
合計ジャッジ時間 3,959 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33 WA * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
from functools import reduce

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

cnt = int(input())
nums = list(map(int,input().split()))

k=gcd(nums)
for i in range(cnt):
    nums[i] = int(nums[i] / k)

print(":".join(list(map(str,nums))))
    
            
0