結果

問題 No.2051 Divide
ユーザー gr1msl3ygr1msl3y
提出日時 2022-08-24 22:33:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 82,168 KB
実行使用メモリ 59,748 KB
最終ジャッジ日時 2024-04-20 10:57:15
合計ジャッジ時間 2,258 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,080 KB
testcase_01 AC 37 ms
52,756 KB
testcase_02 AC 40 ms
58,192 KB
testcase_03 AC 40 ms
58,132 KB
testcase_04 AC 40 ms
57,812 KB
testcase_05 AC 40 ms
58,408 KB
testcase_06 AC 41 ms
58,644 KB
testcase_07 AC 40 ms
58,336 KB
testcase_08 AC 40 ms
58,096 KB
testcase_09 AC 40 ms
58,472 KB
testcase_10 AC 40 ms
58,500 KB
testcase_11 AC 40 ms
58,480 KB
testcase_12 AC 40 ms
58,328 KB
testcase_13 AC 40 ms
57,644 KB
testcase_14 AC 39 ms
58,860 KB
testcase_15 AC 40 ms
59,492 KB
testcase_16 AC 39 ms
58,092 KB
testcase_17 AC 44 ms
59,316 KB
testcase_18 AC 40 ms
57,960 KB
testcase_19 AC 39 ms
58,252 KB
testcase_20 AC 39 ms
58,952 KB
testcase_21 AC 41 ms
58,324 KB
testcase_22 AC 40 ms
58,264 KB
testcase_23 AC 41 ms
59,748 KB
testcase_24 AC 43 ms
58,448 KB
権限があれば一括ダウンロードができます

ソースコード

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