結果

問題 No.1611 Minimum Multiple with Double Divisors
ユーザー convexineq
提出日時 2024-03-04 18:12:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 330 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 81,588 KB
実行使用メモリ 95,540 KB
最終ジャッジ日時 2024-09-29 17:28:26
合計ジャッジ時間 13,266 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 4 WA * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

def get(x):
    k = 1
    for p in ps:
        c = 1
        while x%p==0:
            x //= p
            c += 1
        k *= c
    return k

ps = [2,3,5,7,11,13,17,19,23,29,31]
t,*a = map(int,open(0).read().split())
for x in a:
    k = get(x)
    for r in ps:
        if get(x*r) == 2*k:
            print(x*r)
            break
0