結果

問題 No.2417 Div Count
ユーザー Udon
提出日時 2023-07-16 21:20:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-09-17 16:26:05
合計ジャッジ時間 3,104 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 4 WA * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N,K=map(int,input().split())
s=N-K
ans=0
for i in range(1,int(math.sqrt(s))+1):
    if s%i==0:
        ans+=1
        if s//i!=i:
            ans+=1
if K!=0:
    ans-=1
print(ans)
0