結果

問題 No.1611 Minimum Multiple with Double Divisors
ユーザー 👑 rin204rin204
提出日時 2022-01-26 16:49:50
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 615 bytes
コンパイル時間 477 ms
コンパイル使用メモリ 87,224 KB
実行使用メモリ 78,848 KB
最終ジャッジ日時 2023-08-24 22:01:05
合計ジャッジ時間 21,253 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 739 ms
77,936 KB
testcase_02 AC 738 ms
77,800 KB
testcase_03 AC 797 ms
78,080 KB
testcase_04 AC 760 ms
77,852 KB
testcase_05 AC 741 ms
77,928 KB
testcase_06 AC 740 ms
77,668 KB
testcase_07 AC 747 ms
77,848 KB
testcase_08 AC 736 ms
78,244 KB
testcase_09 AC 736 ms
77,792 KB
testcase_10 AC 392 ms
78,560 KB
testcase_11 AC 400 ms
78,308 KB
testcase_12 AC 401 ms
78,588 KB
testcase_13 AC 400 ms
78,520 KB
testcase_14 AC 410 ms
78,792 KB
testcase_15 AC 408 ms
78,628 KB
testcase_16 AC 421 ms
78,692 KB
testcase_17 AC 424 ms
78,580 KB
testcase_18 AC 411 ms
78,848 KB
testcase_19 AC 109 ms
76,760 KB
testcase_20 AC 109 ms
76,756 KB
testcase_21 AC 109 ms
76,660 KB
testcase_22 AC 105 ms
76,548 KB
testcase_23 AC 108 ms
76,824 KB
testcase_24 AC 107 ms
76,688 KB
testcase_25 AC 105 ms
76,644 KB
testcase_26 AC 109 ms
76,628 KB
testcase_27 AC 108 ms
76,620 KB
testcase_28 AC 73 ms
71,228 KB
testcase_29 AC 72 ms
71,116 KB
testcase_30 AC 71 ms
71,280 KB
testcase_31 AC 72 ms
71,376 KB
testcase_32 AC 71 ms
71,296 KB
testcase_33 AC 71 ms
71,128 KB
testcase_34 AC 71 ms
71,536 KB
testcase_35 AC 72 ms
71,236 KB
testcase_36 AC 72 ms
71,300 KB
testcase_37 AC 71 ms
71,520 KB
testcase_38 AC 71 ms
71,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

prime = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31]
def solve():
    x = int(input())
    for i in range(2, 32):
        if x % i != 0:
            print(x * i)
            return
        a = 1
        b = 1
        X = x
        for p in prime:
            cnt = 0
            while X % p == 0:
                X //= p
                cnt += 1
            b *= cnt + 1
            I = i
            while I % p == 0:
                I //= p
                cnt += 1
            a *= cnt + 1
        if a == 2 * b:
            print(x * i)
            return
            
    
for _ in range(int(input())):
    solve()
0