結果

問題 No.1611 Minimum Multiple with Double Divisors
ユーザー convexineqconvexineq
提出日時 2024-03-04 18:14:03
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 339 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 95,648 KB
最終ジャッジ日時 2024-03-04 18:14:19
合計ジャッジ時間 16,316 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 508 ms
94,960 KB
testcase_02 AC 536 ms
94,888 KB
testcase_03 AC 537 ms
95,648 KB
testcase_04 AC 512 ms
95,016 KB
testcase_05 AC 531 ms
95,008 KB
testcase_06 AC 507 ms
94,888 KB
testcase_07 AC 534 ms
95,008 KB
testcase_08 AC 505 ms
95,008 KB
testcase_09 AC 537 ms
95,008 KB
testcase_10 AC 225 ms
92,908 KB
testcase_11 AC 236 ms
94,784 KB
testcase_12 AC 223 ms
95,004 KB
testcase_13 AC 282 ms
94,624 KB
testcase_14 AC 230 ms
95,004 KB
testcase_15 AC 235 ms
94,372 KB
testcase_16 AC 237 ms
94,876 KB
testcase_17 AC 236 ms
94,752 KB
testcase_18 AC 283 ms
94,368 KB
testcase_19 AC 55 ms
65,948 KB
testcase_20 AC 55 ms
65,952 KB
testcase_21 AC 59 ms
65,948 KB
testcase_22 AC 58 ms
68,024 KB
testcase_23 AC 54 ms
65,948 KB
testcase_24 AC 56 ms
65,960 KB
testcase_25 AC 52 ms
65,948 KB
testcase_26 AC 55 ms
65,956 KB
testcase_27 AC 54 ms
65,956 KB
testcase_28 AC 35 ms
53,460 KB
testcase_29 AC 34 ms
53,460 KB
testcase_30 AC 34 ms
53,460 KB
testcase_31 AC 34 ms
53,460 KB
testcase_32 AC 33 ms
53,460 KB
testcase_33 AC 35 ms
53,460 KB
testcase_34 AC 34 ms
53,456 KB
testcase_35 AC 34 ms
53,460 KB
testcase_36 AC 36 ms
53,460 KB
testcase_37 AC 37 ms
53,460 KB
testcase_38 AC 35 ms
53,460 KB
権限があれば一括ダウンロードができます

ソースコード

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 range(2,32):
        if get(x*r) == 2*k:
            print(x*r)
            break
0