結果

問題 No.1611 Minimum Multiple with Double Divisors
ユーザー convexineqconvexineq
提出日時 2021-07-23 10:13:47
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 342 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 96,540 KB
最終ジャッジ日時 2024-04-14 05:39:27
合計ジャッジ時間 15,811 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 567 ms
95,448 KB
testcase_02 AC 573 ms
95,444 KB
testcase_03 AC 563 ms
96,540 KB
testcase_04 AC 556 ms
95,136 KB
testcase_05 AC 568 ms
95,404 KB
testcase_06 AC 565 ms
95,836 KB
testcase_07 AC 562 ms
94,856 KB
testcase_08 AC 558 ms
95,472 KB
testcase_09 AC 545 ms
95,352 KB
testcase_10 AC 245 ms
93,072 KB
testcase_11 AC 253 ms
95,592 KB
testcase_12 AC 247 ms
94,768 KB
testcase_13 AC 282 ms
94,920 KB
testcase_14 AC 249 ms
95,136 KB
testcase_15 AC 249 ms
95,412 KB
testcase_16 AC 246 ms
95,328 KB
testcase_17 AC 247 ms
95,536 KB
testcase_18 AC 238 ms
95,472 KB
testcase_19 AC 56 ms
66,040 KB
testcase_20 AC 54 ms
65,092 KB
testcase_21 AC 56 ms
66,920 KB
testcase_22 AC 55 ms
66,180 KB
testcase_23 AC 54 ms
64,920 KB
testcase_24 AC 57 ms
65,736 KB
testcase_25 AC 58 ms
66,188 KB
testcase_26 AC 56 ms
66,316 KB
testcase_27 AC 55 ms
65,580 KB
testcase_28 AC 37 ms
52,248 KB
testcase_29 AC 39 ms
52,140 KB
testcase_30 AC 38 ms
53,748 KB
testcase_31 AC 38 ms
52,804 KB
testcase_32 AC 37 ms
53,008 KB
testcase_33 AC 38 ms
52,760 KB
testcase_34 AC 37 ms
52,688 KB
testcase_35 AC 37 ms
52,680 KB
testcase_36 AC 37 ms
53,040 KB
testcase_37 AC 38 ms
53,960 KB
testcase_38 AC 37 ms
52,824 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,37]
t,*a = map(int,open(0).read().split())
for x in a:
    k = get(x)
    for r in range(2,40):
        if get(x*r) == 2*k:
            print(x*r)
            break
0