結果

問題 No.1611 Minimum Multiple with Double Divisors
ユーザー convexineq
提出日時 2021-07-23 10:06:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 82,336 KB
実行使用メモリ 95,872 KB
最終ジャッジ日時 2024-07-18 06:40:00
合計ジャッジ時間 7,686 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

ps = [2,3,5,7,11,13,17,19,23,29,31,37]
t,*a = map(int,open(0).read().split())
for x in a:
    xx = x
    r = 99
    for p in ps:
        c = p
        while x%p==0:
            x //= p
            c *= p
        r = min(r,c)
    print(xx*r)
0