結果

問題 No.2417 Div Count
ユーザー rlangevinrlangevin
提出日時 2023-09-03 15:05:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 300 bytes
コンパイル時間 848 ms
コンパイル使用メモリ 86,648 KB
実行使用メモリ 75,816 KB
最終ジャッジ日時 2023-09-03 15:05:41
合計ジャッジ時間 6,926 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,000 KB
testcase_01 AC 73 ms
70,876 KB
testcase_02 AC 74 ms
71,084 KB
testcase_03 AC 75 ms
71,092 KB
testcase_04 AC 73 ms
71,024 KB
testcase_05 AC 73 ms
71,124 KB
testcase_06 AC 73 ms
71,220 KB
testcase_07 AC 74 ms
71,060 KB
testcase_08 AC 76 ms
71,156 KB
testcase_09 AC 78 ms
71,056 KB
testcase_10 AC 74 ms
71,000 KB
testcase_11 AC 73 ms
71,176 KB
testcase_12 AC 72 ms
71,096 KB
testcase_13 AC 74 ms
70,828 KB
testcase_14 AC 72 ms
70,940 KB
testcase_15 AC 74 ms
71,092 KB
testcase_16 AC 74 ms
71,284 KB
testcase_17 AC 72 ms
71,080 KB
testcase_18 AC 73 ms
71,092 KB
testcase_19 AC 75 ms
71,256 KB
testcase_20 AC 77 ms
75,480 KB
testcase_21 AC 76 ms
71,204 KB
testcase_22 AC 79 ms
71,320 KB
testcase_23 AC 78 ms
75,160 KB
testcase_24 AC 77 ms
75,156 KB
testcase_25 AC 77 ms
75,148 KB
testcase_26 AC 74 ms
75,104 KB
testcase_27 AC 75 ms
75,252 KB
testcase_28 AC 79 ms
75,132 KB
testcase_29 AC 76 ms
74,864 KB
testcase_30 AC 79 ms
75,148 KB
testcase_31 AC 75 ms
74,864 KB
testcase_32 AC 80 ms
75,324 KB
testcase_33 AC 78 ms
75,216 KB
testcase_34 AC 79 ms
75,012 KB
testcase_35 AC 81 ms
75,108 KB
testcase_36 AC 80 ms
75,228 KB
testcase_37 AC 80 ms
75,100 KB
testcase_38 AC 113 ms
75,692 KB
testcase_39 AC 85 ms
75,472 KB
testcase_40 AC 81 ms
75,816 KB
testcase_41 AC 80 ms
75,388 KB
testcase_42 AC 72 ms
71,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def div(n):
    if n <= 0:
        return []
    S = set()
    i = 1
    while i * i <= n:
        if n % i == 0:
            S.add(i)
            S.add(n // i)
        i += 1
    return list(S)

N, K = map(int, input().split())
ans = 0
for d in div(N - K):
    if d > K:
        ans += 1
print(ans)
0