結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
7,872 KB
testcase_01 WA -
testcase_02 AC 97 ms
7,884 KB
testcase_03 AC 95 ms
7,788 KB
testcase_04 AC 15 ms
7,908 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 81 ms
7,844 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 103 ms
7,836 KB
testcase_14 AC 70 ms
7,776 KB
testcase_15 AC 62 ms
7,796 KB
testcase_16 AC 44 ms
7,828 KB
testcase_17 AC 76 ms
7,880 KB
testcase_18 AC 76 ms
7,764 KB
testcase_19 AC 85 ms
7,792 KB
testcase_20 WA -
testcase_21 AC 94 ms
7,784 KB
testcase_22 AC 15 ms
7,796 KB
testcase_23 AC 14 ms
7,820 KB
testcase_24 AC 15 ms
7,764 KB
testcase_25 AC 14 ms
7,948 KB
testcase_26 AC 14 ms
7,872 KB
testcase_27 WA -
testcase_28 AC 14 ms
7,860 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 30 ms
7,844 KB
testcase_32 AC 23 ms
7,784 KB
testcase_33 AC 41 ms
7,760 KB
testcase_34 AC 40 ms
7,940 KB
testcase_35 WA -
testcase_36 AC 15 ms
7,844 KB
testcase_37 AC 15 ms
7,840 KB
testcase_38 AC 15 ms
7,776 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 15 ms
7,840 KB
testcase_42 WA -
testcase_43 AC 15 ms
7,784 KB
testcase_44 AC 15 ms
7,816 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())
p = get_divisors(N)
if N%2 == 0:
    print(p[2])
else:
    print(p[1])
0