結果
| 問題 | No.736 約比 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-09-28 21:29:53 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 23 ms / 2,000 ms | 
| コード長 | 181 bytes | 
| コンパイル時間 | 53 ms | 
| コンパイル使用メモリ | 6,952 KB | 
| 実行使用メモリ | 8,192 KB | 
| 最終ジャッジ日時 | 2024-10-12 05:38:36 | 
| 合計ジャッジ時間 | 3,210 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 65 | 
ソースコード
from fractions import gcd
N = input()
A = map(int, raw_input().split())
G = A[0]
for i in xrange(1, N):
    G = gcd(G, A[i])
print ':'.join(map(str, [A[i]/G for i in xrange(N)]))
            
            
            
        