結果
問題 | No.736 約比 |
ユーザー |
![]() |
提出日時 | 2019-10-25 10:11:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 395 bytes |
コンパイル時間 | 74 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 16,000 KB |
最終ジャッジ日時 | 2024-07-19 06:35:46 |
合計ジャッジ時間 | 4,007 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 TLE * 1 -- * 59 |
ソースコード
# No.736 約比 n = int(input()) a = [int(s) for s in input().split()] b = [] if 1 not in a: for i in range(min(a), 2, -1): for j in a: if j % i == 0: b.append(j // i) else: b = [] break else: a = b answer = str(a[0]) for i in range(1, n): answer += ':' + str(a[i]) print(answer)