結果

問題 No.2417 Div Count
ユーザー dmasuprodmasupro
提出日時 2023-08-12 14:34:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 354 ms
コンパイル使用メモリ 82,352 KB
実行使用メモリ 59,124 KB
最終ジャッジ日時 2024-04-30 06:28:52
合計ジャッジ時間 2,890 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,772 KB
testcase_01 AC 31 ms
53,020 KB
testcase_02 AC 31 ms
53,316 KB
testcase_03 AC 32 ms
52,376 KB
testcase_04 AC 31 ms
52,552 KB
testcase_05 AC 32 ms
52,136 KB
testcase_06 AC 31 ms
52,684 KB
testcase_07 AC 31 ms
53,252 KB
testcase_08 AC 31 ms
52,408 KB
testcase_09 AC 32 ms
52,332 KB
testcase_10 AC 35 ms
52,112 KB
testcase_11 AC 33 ms
52,404 KB
testcase_12 AC 32 ms
52,428 KB
testcase_13 AC 31 ms
53,204 KB
testcase_14 AC 32 ms
53,080 KB
testcase_15 AC 32 ms
52,524 KB
testcase_16 AC 33 ms
52,204 KB
testcase_17 AC 32 ms
53,008 KB
testcase_18 AC 33 ms
52,256 KB
testcase_19 AC 32 ms
52,416 KB
testcase_20 AC 35 ms
57,580 KB
testcase_21 AC 33 ms
51,876 KB
testcase_22 AC 40 ms
52,204 KB
testcase_23 AC 36 ms
58,928 KB
testcase_24 AC 35 ms
58,296 KB
testcase_25 AC 34 ms
58,716 KB
testcase_26 AC 34 ms
58,212 KB
testcase_27 AC 36 ms
57,356 KB
testcase_28 AC 36 ms
58,072 KB
testcase_29 AC 36 ms
57,784 KB
testcase_30 AC 35 ms
57,708 KB
testcase_31 AC 37 ms
57,448 KB
testcase_32 AC 38 ms
57,936 KB
testcase_33 AC 37 ms
57,912 KB
testcase_34 AC 36 ms
58,060 KB
testcase_35 AC 40 ms
58,328 KB
testcase_36 AC 38 ms
57,196 KB
testcase_37 AC 37 ms
58,124 KB
testcase_38 AC 47 ms
58,176 KB
testcase_39 AC 43 ms
58,664 KB
testcase_40 AC 38 ms
57,864 KB
testcase_41 AC 37 ms
59,124 KB
testcase_42 AC 31 ms
52,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def make_divisors(n):
    lower_divisors , upper_divisors = [], []
    i = 1
    while i*i <= n:

        if n % i == 0:
            if i > K:
                lower_divisors.append(i)
            if i != n // i and n // i > K:
                upper_divisors.append(n//i)
        i += 1

    return lower_divisors + upper_divisors[::-1]

N, K = list(map(int, input().split()))
ans = make_divisors(N-K)
# print(ans)
print(len(ans))
0