結果

問題 No.2051 Divide
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-08-21 13:27:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,600 KB
実行使用メモリ 59,888 KB
最終ジャッジ日時 2024-04-18 12:52:34
合計ジャッジ時間 2,008 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
59,340 KB
testcase_01 AC 39 ms
59,320 KB
testcase_02 AC 39 ms
57,848 KB
testcase_03 AC 39 ms
58,208 KB
testcase_04 AC 44 ms
58,176 KB
testcase_05 AC 40 ms
58,304 KB
testcase_06 AC 40 ms
58,472 KB
testcase_07 AC 40 ms
58,632 KB
testcase_08 AC 40 ms
58,228 KB
testcase_09 AC 39 ms
58,132 KB
testcase_10 AC 38 ms
57,668 KB
testcase_11 AC 39 ms
57,916 KB
testcase_12 AC 40 ms
59,168 KB
testcase_13 AC 39 ms
59,888 KB
testcase_14 AC 39 ms
57,884 KB
testcase_15 AC 40 ms
57,360 KB
testcase_16 AC 40 ms
58,348 KB
testcase_17 AC 42 ms
58,844 KB
testcase_18 AC 39 ms
57,480 KB
testcase_19 AC 39 ms
58,536 KB
testcase_20 AC 39 ms
58,160 KB
testcase_21 AC 37 ms
58,304 KB
testcase_22 AC 38 ms
57,508 KB
testcase_23 AC 37 ms
58,116 KB
testcase_24 AC 39 ms
58,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
ans = set()
for i in range(1,10**5):
    if a%i:
        continue
    if i%b == 0:
        ans.add(i)
    x = a//i
    if x%b == 0:
        ans.add(x)
print(len(ans))
0