結果
問題 | No.736 約比 |
ユーザー |
|
提出日時 | 2023-04-20 00:51:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 2,000 ms |
コード長 | 174 bytes |
コンパイル時間 | 181 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-10-15 03:35:19 |
合計ジャッジ時間 | 4,617 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 65 |
ソースコード
import math n = int(input()) a = list(map(int, input().split())) g = a[0] for i in range(1, n): g = math.gcd(g, a[i]) for i in range(n): a[i] //= g print(*a, sep=":")