結果

問題 No.1611 Minimum Multiple with Double Divisors
ユーザー convexineqconvexineq
提出日時 2024-03-04 18:22:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 370 ms / 2,000 ms
コード長 502 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 95,072 KB
最終ジャッジ日時 2024-03-04 18:22:55
合計ジャッジ時間 7,667 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 370 ms
94,948 KB
testcase_01 AC 208 ms
95,004 KB
testcase_02 AC 209 ms
95,052 KB
testcase_03 AC 210 ms
94,920 KB
testcase_04 AC 211 ms
95,048 KB
testcase_05 AC 213 ms
95,044 KB
testcase_06 AC 211 ms
95,048 KB
testcase_07 AC 215 ms
95,056 KB
testcase_08 AC 209 ms
95,048 KB
testcase_09 AC 207 ms
95,052 KB
testcase_10 AC 158 ms
92,700 KB
testcase_11 AC 161 ms
95,072 KB
testcase_12 AC 171 ms
94,916 KB
testcase_13 AC 164 ms
95,064 KB
testcase_14 AC 163 ms
94,928 KB
testcase_15 AC 166 ms
94,912 KB
testcase_16 AC 164 ms
95,064 KB
testcase_17 AC 164 ms
94,912 KB
testcase_18 AC 163 ms
95,056 KB
testcase_19 AC 59 ms
70,820 KB
testcase_20 AC 57 ms
68,736 KB
testcase_21 AC 57 ms
68,756 KB
testcase_22 AC 61 ms
70,840 KB
testcase_23 AC 59 ms
68,752 KB
testcase_24 AC 58 ms
68,740 KB
testcase_25 AC 57 ms
68,736 KB
testcase_26 AC 57 ms
68,732 KB
testcase_27 AC 60 ms
70,824 KB
testcase_28 AC 35 ms
53,460 KB
testcase_29 AC 33 ms
53,460 KB
testcase_30 AC 34 ms
53,460 KB
testcase_31 AC 32 ms
53,460 KB
testcase_32 AC 32 ms
53,460 KB
testcase_33 AC 33 ms
53,460 KB
testcase_34 AC 32 ms
53,460 KB
testcase_35 AC 32 ms
53,460 KB
testcase_36 AC 33 ms
53,460 KB
testcase_37 AC 36 ms
53,460 KB
testcase_38 AC 33 ms
53,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def get(x):
    r = []
    for p in ps:
        c = 0
        while x%p==0:
            x //= p
            c += 1
        r.append(c)
    return r

ps = [2,3,5,7,11,13,17,19,23,29,31]
t,*a = map(int,open(0).read().split())
plst =[[0]*11] + [get(i) for i in range(1,32)]
for x in a:
    lst = get(x)
    yx = 1
    for i in lst: yx *= i+1
    for r in range(2,32):
        yr = 1
        for i,j in zip(lst,plst[r]):
    	    yr *= i+j+1
        if yr == 2*yx:
            print(x*r)
            break
0