結果
問題 |
No.736 約比
|
ユーザー |
![]() |
提出日時 | 2022-07-28 12:34:51 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 236 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-07-18 03:30:33 |
合計ジャッジ時間 | 3,426 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 65 |
ソースコード
n=int(input()) l=list(map(int,input().split())) from functools import reduce from math import gcd l2=[] c=reduce(gcd,l) for x in l: x=x//c l2.append(x) ans="" for x in l2: ans+=str(x) ans+=":" print(ans[:len(ans)-1])