結果

問題 No.2417 Div Count
ユーザー Basin-BugBasin-Bug
提出日時 2023-08-12 14:30:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 82,860 KB
実行使用メモリ 59,916 KB
最終ジャッジ日時 2024-04-30 06:17:47
合計ジャッジ時間 3,349 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,328 KB
testcase_01 AC 34 ms
52,324 KB
testcase_02 WA -
testcase_03 AC 31 ms
53,564 KB
testcase_04 AC 34 ms
52,336 KB
testcase_05 AC 32 ms
53,812 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 33 ms
52,652 KB
testcase_09 AC 32 ms
52,408 KB
testcase_10 WA -
testcase_11 AC 31 ms
53,064 KB
testcase_12 AC 32 ms
52,768 KB
testcase_13 WA -
testcase_14 AC 33 ms
52,904 KB
testcase_15 AC 31 ms
52,684 KB
testcase_16 AC 31 ms
52,876 KB
testcase_17 WA -
testcase_18 AC 34 ms
53,080 KB
testcase_19 AC 32 ms
53,504 KB
testcase_20 AC 36 ms
57,708 KB
testcase_21 AC 31 ms
52,908 KB
testcase_22 AC 32 ms
52,680 KB
testcase_23 AC 33 ms
59,312 KB
testcase_24 AC 38 ms
58,252 KB
testcase_25 AC 34 ms
59,748 KB
testcase_26 AC 36 ms
58,488 KB
testcase_27 AC 34 ms
58,440 KB
testcase_28 AC 35 ms
59,512 KB
testcase_29 AC 35 ms
58,584 KB
testcase_30 AC 35 ms
59,096 KB
testcase_31 AC 33 ms
57,488 KB
testcase_32 AC 37 ms
59,916 KB
testcase_33 AC 36 ms
58,188 KB
testcase_34 AC 36 ms
58,764 KB
testcase_35 AC 38 ms
58,260 KB
testcase_36 AC 37 ms
58,304 KB
testcase_37 AC 38 ms
58,800 KB
testcase_38 AC 47 ms
58,980 KB
testcase_39 AC 41 ms
58,676 KB
testcase_40 AC 38 ms
58,632 KB
testcase_41 AC 38 ms
58,964 KB
testcase_42 AC 31 ms
53,224 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:
      ans += 2
    if N == i * i:
      ans -= 1

print(ans)
0