結果

問題 No.2417 Div Count
ユーザー Basin-BugBasin-Bug
提出日時 2023-08-12 14:23:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 82,436 KB
実行使用メモリ 60,056 KB
最終ジャッジ日時 2024-04-30 05:54:17
合計ジャッジ時間 2,525 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
52,872 KB
testcase_01 AC 33 ms
53,424 KB
testcase_02 WA -
testcase_03 AC 33 ms
52,708 KB
testcase_04 AC 31 ms
52,684 KB
testcase_05 AC 31 ms
52,896 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 32 ms
52,588 KB
testcase_09 AC 31 ms
52,084 KB
testcase_10 WA -
testcase_11 AC 30 ms
52,504 KB
testcase_12 AC 32 ms
52,632 KB
testcase_13 WA -
testcase_14 AC 34 ms
52,472 KB
testcase_15 AC 32 ms
52,688 KB
testcase_16 AC 31 ms
53,504 KB
testcase_17 WA -
testcase_18 AC 33 ms
53,412 KB
testcase_19 AC 31 ms
53,552 KB
testcase_20 AC 33 ms
58,764 KB
testcase_21 AC 32 ms
52,700 KB
testcase_22 AC 31 ms
53,076 KB
testcase_23 AC 34 ms
58,960 KB
testcase_24 AC 34 ms
58,024 KB
testcase_25 AC 34 ms
58,900 KB
testcase_26 AC 34 ms
57,736 KB
testcase_27 AC 34 ms
58,672 KB
testcase_28 AC 33 ms
57,440 KB
testcase_29 AC 35 ms
59,064 KB
testcase_30 AC 35 ms
59,232 KB
testcase_31 AC 33 ms
58,288 KB
testcase_32 AC 36 ms
58,696 KB
testcase_33 AC 34 ms
58,240 KB
testcase_34 AC 34 ms
58,112 KB
testcase_35 AC 38 ms
59,344 KB
testcase_36 AC 37 ms
58,448 KB
testcase_37 AC 36 ms
58,108 KB
testcase_38 AC 46 ms
60,056 KB
testcase_39 AC 39 ms
58,864 KB
testcase_40 AC 37 ms
59,300 KB
testcase_41 AC 37 ms
58,668 KB
testcase_42 AC 32 ms
52,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
N -= K

ans = 0
for i in range(1, int(N ** 0.5) + 1):
  if N % i == 0:
    if i <= K and N // i > K and N != i * i:
      ans += 1
    elif N // i > K and N != i * i:
      ans += 2
    elif i * i == N:
      ans += 1

print(ans)
0