結果

問題 No.312 置換処理
ユーザー matsu7874matsu7874
提出日時 2015-12-05 00:07:02
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 8,408 KB
最終ジャッジ日時 2023-08-09 15:33:18
合計ジャッジ時間 4,012 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
8,204 KB
testcase_01 AC 72 ms
8,292 KB
testcase_02 AC 97 ms
8,368 KB
testcase_03 AC 98 ms
8,204 KB
testcase_04 AC 16 ms
8,204 KB
testcase_05 AC 97 ms
8,284 KB
testcase_06 AC 65 ms
8,248 KB
testcase_07 AC 87 ms
8,348 KB
testcase_08 AC 83 ms
8,248 KB
testcase_09 AC 47 ms
8,204 KB
testcase_10 AC 52 ms
8,368 KB
testcase_11 AC 84 ms
8,348 KB
testcase_12 AC 63 ms
8,252 KB
testcase_13 AC 92 ms
8,364 KB
testcase_14 AC 70 ms
8,380 KB
testcase_15 AC 63 ms
8,400 KB
testcase_16 AC 44 ms
8,308 KB
testcase_17 AC 75 ms
8,232 KB
testcase_18 AC 77 ms
8,352 KB
testcase_19 AC 86 ms
8,372 KB
testcase_20 AC 95 ms
8,408 KB
testcase_21 AC 96 ms
8,404 KB
testcase_22 AC 16 ms
8,408 KB
testcase_23 AC 16 ms
8,308 KB
testcase_24 AC 15 ms
8,236 KB
testcase_25 AC 15 ms
8,212 KB
testcase_26 AC 16 ms
8,280 KB
testcase_27 AC 15 ms
8,264 KB
testcase_28 AC 15 ms
8,288 KB
testcase_29 AC 16 ms
8,308 KB
testcase_30 AC 27 ms
8,292 KB
testcase_31 AC 31 ms
8,232 KB
testcase_32 AC 23 ms
8,268 KB
testcase_33 AC 42 ms
8,308 KB
testcase_34 AC 42 ms
8,348 KB
testcase_35 AC 42 ms
8,348 KB
testcase_36 AC 16 ms
8,404 KB
testcase_37 AC 15 ms
8,348 KB
testcase_38 AC 15 ms
8,296 KB
testcase_39 AC 40 ms
8,376 KB
testcase_40 AC 19 ms
8,236 KB
testcase_41 AC 16 ms
8,356 KB
testcase_42 AC 18 ms
8,284 KB
testcase_43 AC 15 ms
8,236 KB
testcase_44 AC 16 ms
8,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def get_divisors(n):
    # 約数列挙
    divisors = set()
    for i in range(1, int(n**0.5) + 1):
        if n % i == 0:
            divisors.add(i)
            divisors.add(n // i)
    return list(divisors)

N = int(input())
ds = get_divisors(N)
ds.sort()
for d in ds:
    if d > 2:
        print(d)
        exit()
0