結果

問題 No.2417 Div Count
ユーザー Basin-BugBasin-Bug
提出日時 2023-08-12 14:22:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 82,592 KB
実行使用メモリ 59,976 KB
最終ジャッジ日時 2024-04-30 05:52:28
合計ジャッジ時間 2,936 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
52,960 KB
testcase_01 AC 31 ms
52,256 KB
testcase_02 WA -
testcase_03 AC 30 ms
53,576 KB
testcase_04 AC 31 ms
52,736 KB
testcase_05 AC 30 ms
52,444 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 37 ms
53,340 KB
testcase_09 AC 34 ms
52,960 KB
testcase_10 WA -
testcase_11 AC 30 ms
52,132 KB
testcase_12 AC 30 ms
53,124 KB
testcase_13 WA -
testcase_14 AC 32 ms
53,492 KB
testcase_15 AC 32 ms
52,752 KB
testcase_16 AC 33 ms
52,320 KB
testcase_17 WA -
testcase_18 AC 31 ms
52,532 KB
testcase_19 AC 30 ms
52,872 KB
testcase_20 AC 33 ms
58,176 KB
testcase_21 AC 32 ms
52,896 KB
testcase_22 AC 30 ms
53,872 KB
testcase_23 AC 31 ms
59,060 KB
testcase_24 AC 32 ms
57,856 KB
testcase_25 AC 33 ms
58,288 KB
testcase_26 AC 32 ms
58,196 KB
testcase_27 AC 32 ms
59,380 KB
testcase_28 AC 44 ms
58,040 KB
testcase_29 AC 34 ms
58,576 KB
testcase_30 AC 33 ms
57,488 KB
testcase_31 AC 34 ms
57,804 KB
testcase_32 AC 36 ms
58,744 KB
testcase_33 AC 33 ms
58,732 KB
testcase_34 AC 34 ms
57,832 KB
testcase_35 AC 39 ms
58,392 KB
testcase_36 AC 36 ms
58,504 KB
testcase_37 AC 37 ms
58,200 KB
testcase_38 AC 46 ms
59,580 KB
testcase_39 AC 39 ms
58,952 KB
testcase_40 AC 37 ms
58,492 KB
testcase_41 AC 41 ms
59,976 KB
testcase_42 AC 31 ms
52,336 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:
      ans += 1
    elif N // i > K and N != i * i:
      ans += 2
    elif i * i == N:
      ans += 1

print(ans)
0