結果
問題 |
No.736 約比
|
ユーザー |
|
提出日時 | 2024-05-30 21:15:23 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 351 bytes |
コンパイル時間 | 211 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 116,608 KB |
最終ジャッジ日時 | 2024-12-20 21:38:12 |
合計ジャッジ時間 | 106,480 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 TLE * 34 |
ソースコード
def gcd(a:list): limit=min(a) ans=1 for i in range(2,limit+1): f=True for j in range(len(a)): if a[j]%i!=0: f=False break if f: ans=i return ans input() a=list(map(int,input().split())) n=gcd(a) if n!=1: a=list(map(lambda x:x//n,a)) print(*a,sep=":")