結果

問題 No.312 置換処理
ユーザー matsu7874matsu7874
提出日時 2015-12-05 00:05:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 8,488 KB
最終ジャッジ日時 2023-10-12 14:47:54
合計ジャッジ時間 3,744 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
8,328 KB
testcase_01 WA -
testcase_02 AC 99 ms
8,312 KB
testcase_03 AC 98 ms
8,368 KB
testcase_04 AC 15 ms
8,420 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 83 ms
8,376 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 91 ms
8,308 KB
testcase_14 AC 69 ms
8,408 KB
testcase_15 AC 63 ms
8,280 KB
testcase_16 AC 44 ms
8,472 KB
testcase_17 AC 75 ms
8,380 KB
testcase_18 AC 76 ms
8,420 KB
testcase_19 AC 85 ms
8,412 KB
testcase_20 WA -
testcase_21 AC 96 ms
8,352 KB
testcase_22 AC 16 ms
8,376 KB
testcase_23 AC 15 ms
8,272 KB
testcase_24 AC 15 ms
8,472 KB
testcase_25 AC 15 ms
8,380 KB
testcase_26 AC 15 ms
8,332 KB
testcase_27 WA -
testcase_28 AC 15 ms
8,312 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 31 ms
8,300 KB
testcase_32 AC 23 ms
8,468 KB
testcase_33 AC 41 ms
8,488 KB
testcase_34 AC 42 ms
8,472 KB
testcase_35 WA -
testcase_36 AC 15 ms
8,468 KB
testcase_37 AC 15 ms
8,472 KB
testcase_38 AC 15 ms
8,268 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 15 ms
8,404 KB
testcase_42 WA -
testcase_43 AC 16 ms
8,436 KB
testcase_44 AC 15 ms
8,308 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())
for p in get_divisors(N):
    if p > 2:
        print(p)
        exit()
0