結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
52,868 KB
testcase_01 AC 30 ms
53,408 KB
testcase_02 AC 31 ms
53,220 KB
testcase_03 WA -
testcase_04 AC 29 ms
53,608 KB
testcase_05 AC 30 ms
53,356 KB
testcase_06 AC 30 ms
52,212 KB
testcase_07 AC 30 ms
53,384 KB
testcase_08 AC 31 ms
52,900 KB
testcase_09 AC 30 ms
52,520 KB
testcase_10 AC 30 ms
52,664 KB
testcase_11 AC 30 ms
52,208 KB
testcase_12 AC 30 ms
53,668 KB
testcase_13 AC 32 ms
53,544 KB
testcase_14 AC 32 ms
52,772 KB
testcase_15 AC 31 ms
52,376 KB
testcase_16 AC 31 ms
52,484 KB
testcase_17 AC 30 ms
52,832 KB
testcase_18 AC 31 ms
52,328 KB
testcase_19 AC 30 ms
52,200 KB
testcase_20 AC 32 ms
58,036 KB
testcase_21 AC 30 ms
54,008 KB
testcase_22 AC 30 ms
52,652 KB
testcase_23 AC 32 ms
58,060 KB
testcase_24 AC 34 ms
58,244 KB
testcase_25 AC 33 ms
59,056 KB
testcase_26 AC 33 ms
58,372 KB
testcase_27 AC 33 ms
58,100 KB
testcase_28 AC 33 ms
59,040 KB
testcase_29 AC 35 ms
58,124 KB
testcase_30 AC 33 ms
58,316 KB
testcase_31 AC 33 ms
57,996 KB
testcase_32 AC 38 ms
59,240 KB
testcase_33 AC 34 ms
57,884 KB
testcase_34 AC 33 ms
58,040 KB
testcase_35 AC 39 ms
58,300 KB
testcase_36 AC 37 ms
57,808 KB
testcase_37 AC 36 ms
58,052 KB
testcase_38 AC 44 ms
58,964 KB
testcase_39 AC 38 ms
59,516 KB
testcase_40 AC 36 ms
59,240 KB
testcase_41 AC 35 ms
59,292 KB
testcase_42 AC 30 ms
53,208 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
    elif i > K and N // i <= K:
      ans += 1

print(ans)
0