結果

問題 No.312 置換処理
ユーザー rlangevinrlangevin
提出日時 2023-01-07 14:04:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 268 bytes
コンパイル時間 650 ms
コンパイル使用メモリ 86,984 KB
実行使用メモリ 75,780 KB
最終ジャッジ日時 2023-08-21 05:00:24
合計ジャッジ時間 7,160 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
75,560 KB
testcase_01 AC 84 ms
75,760 KB
testcase_02 AC 88 ms
75,652 KB
testcase_03 AC 94 ms
75,780 KB
testcase_04 AC 72 ms
71,376 KB
testcase_05 AC 91 ms
75,420 KB
testcase_06 AC 83 ms
75,624 KB
testcase_07 AC 88 ms
75,580 KB
testcase_08 AC 87 ms
75,512 KB
testcase_09 AC 83 ms
75,512 KB
testcase_10 AC 84 ms
75,572 KB
testcase_11 AC 92 ms
75,568 KB
testcase_12 AC 87 ms
75,652 KB
testcase_13 AC 91 ms
75,648 KB
testcase_14 AC 88 ms
75,472 KB
testcase_15 AC 86 ms
75,408 KB
testcase_16 AC 82 ms
75,644 KB
testcase_17 AC 87 ms
75,468 KB
testcase_18 AC 88 ms
75,404 KB
testcase_19 AC 88 ms
75,256 KB
testcase_20 AC 90 ms
75,512 KB
testcase_21 AC 91 ms
75,592 KB
testcase_22 AC 71 ms
71,400 KB
testcase_23 WA -
testcase_24 AC 72 ms
71,464 KB
testcase_25 AC 73 ms
71,468 KB
testcase_26 AC 72 ms
71,432 KB
testcase_27 AC 74 ms
71,276 KB
testcase_28 AC 73 ms
71,404 KB
testcase_29 AC 75 ms
71,496 KB
testcase_30 AC 76 ms
75,420 KB
testcase_31 AC 78 ms
75,504 KB
testcase_32 AC 76 ms
75,332 KB
testcase_33 AC 79 ms
75,208 KB
testcase_34 AC 79 ms
75,448 KB
testcase_35 AC 79 ms
75,540 KB
testcase_36 AC 72 ms
71,076 KB
testcase_37 AC 72 ms
71,444 KB
testcase_38 AC 72 ms
71,208 KB
testcase_39 AC 78 ms
75,564 KB
testcase_40 AC 75 ms
75,520 KB
testcase_41 AC 72 ms
71,372 KB
testcase_42 AC 73 ms
75,432 KB
testcase_43 AC 72 ms
71,596 KB
testcase_44 AC 70 ms
71,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def div(n):
    S = set([n])
    i = 2
    while i * i <= n:
        if n % i == 0:
            if i != 2:
                S.add(i)
            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