結果
| 問題 | No.736 約比 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-04 16:09:37 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 167 ms / 2,000 ms |
| コード長 | 215 bytes |
| 記録 | |
| コンパイル時間 | 515 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-29 11:07:18 |
| 合計ジャッジ時間 | 9,314 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 65 |
ソースコード
import math
from functools import reduce
def gcd(*numbers):
return reduce(math.gcd, numbers)
n = int(input())
l = [int(_) for _ in input().split()]
x = gcd(*l)
l1 = [str(i//x) for i in l]
print(':'.join(l1))