結果
| 問題 | No.736 約比 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-28 21:29:53 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 113 ms / 2,000 ms |
| + 729µs | |
| コード長 | 181 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 80,896 KB |
| 実行使用メモリ | 95,104 KB |
| 最終ジャッジ日時 | 2026-07-18 18:30:20 |
| 合計ジャッジ時間 | 10,259 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)]))