結果

問題 No.312 置換処理
ユーザー rlangevinrlangevin
提出日時 2023-01-07 14:05:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 300 bytes
コンパイル時間 1,722 ms
コンパイル使用メモリ 86,384 KB
実行使用メモリ 75,648 KB
最終ジャッジ日時 2023-08-21 05:01:26
合計ジャッジ時間 5,679 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
75,568 KB
testcase_01 AC 87 ms
75,276 KB
testcase_02 AC 91 ms
75,308 KB
testcase_03 AC 93 ms
75,476 KB
testcase_04 AC 75 ms
71,312 KB
testcase_05 AC 93 ms
75,232 KB
testcase_06 AC 85 ms
75,348 KB
testcase_07 AC 89 ms
75,304 KB
testcase_08 AC 89 ms
75,068 KB
testcase_09 AC 81 ms
75,144 KB
testcase_10 AC 83 ms
75,348 KB
testcase_11 AC 89 ms
75,088 KB
testcase_12 AC 85 ms
75,080 KB
testcase_13 AC 92 ms
75,184 KB
testcase_14 AC 87 ms
75,236 KB
testcase_15 AC 82 ms
75,124 KB
testcase_16 AC 81 ms
75,648 KB
testcase_17 AC 88 ms
75,412 KB
testcase_18 AC 89 ms
75,252 KB
testcase_19 AC 89 ms
75,344 KB
testcase_20 AC 91 ms
75,232 KB
testcase_21 AC 93 ms
75,352 KB
testcase_22 AC 73 ms
71,036 KB
testcase_23 AC 74 ms
71,284 KB
testcase_24 AC 74 ms
71,252 KB
testcase_25 AC 74 ms
71,156 KB
testcase_26 AC 74 ms
71,052 KB
testcase_27 AC 76 ms
71,240 KB
testcase_28 AC 75 ms
71,240 KB
testcase_29 AC 75 ms
71,152 KB
testcase_30 AC 81 ms
75,256 KB
testcase_31 AC 81 ms
75,260 KB
testcase_32 AC 78 ms
75,184 KB
testcase_33 AC 84 ms
75,524 KB
testcase_34 AC 81 ms
75,328 KB
testcase_35 AC 83 ms
75,540 KB
testcase_36 AC 73 ms
71,392 KB
testcase_37 AC 74 ms
71,448 KB
testcase_38 AC 75 ms
71,436 KB
testcase_39 AC 81 ms
75,152 KB
testcase_40 AC 77 ms
75,348 KB
testcase_41 AC 74 ms
71,036 KB
testcase_42 AC 78 ms
75,364 KB
testcase_43 AC 72 ms
71,256 KB
testcase_44 AC 75 ms
71,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def div(n):
    S = set([n])
    i = 2
    while i * i <= n:
        if n % i == 0:
            if i != 2:
                S.add(i)
            if n // i != 2:
                S.add(n // i)
        i += 1
    if n != 1:
        S.add(n)
    return list(S)

N = int(input())
print(min(N, min(div(N))))
0