結果

問題 No.2051 Divide
ユーザー roaris
提出日時 2022-08-23 07:03:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 242 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 63,892 KB
最終ジャッジ日時 2024-10-10 14:05:49
合計ジャッジ時間 2,249 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

A, B = map(int, input().split())
ans = 0

for d in range(1, int(A**0.5)+1):
    if d%B==0:
        ans += 1
        
    if d!=A//d and (A//d)%B==0:
        ans += 1

print(ans)
0