結果

問題 No.2051 Divide
ユーザー gr1msl3y
提出日時 2022-08-24 22:33:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 82,160 KB
実行使用メモリ 59,008 KB
最終ジャッジ日時 2024-10-12 06:33:53
合計ジャッジ時間 2,283 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
s=set()
for i in range(1,int(a**0.5)+1):
    if a%i==0:
        s.add(i)
        s.add(a//i)

ans=0
for c in s:
    if c%b==0:
        ans+=1
print(ans)
0