結果

問題 No.2417 Div Count
ユーザー lloyz
提出日時 2023-08-21 00:08:05
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 228 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 58,240 KB
最終ジャッジ日時 2024-12-14 07:09:30
合計ジャッジ時間 3,511 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 4 WA * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())

n -= k
f = 1
ans = 0
while f * f <= n:
    if n % f == 0:
        ans += 1
        if n // f != f:
            ans += 1
    f += 1
if k > 0:
    ans -= 1
print(ans)
0