結果

問題 No.2417 Div Count
ユーザー watayuwatayu
提出日時 2023-08-12 15:13:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 82,396 KB
実行使用メモリ 65,808 KB
最終ジャッジ日時 2024-04-30 08:25:31
合計ジャッジ時間 6,503 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
59,036 KB
testcase_01 AC 40 ms
58,436 KB
testcase_02 WA -
testcase_03 AC 37 ms
52,600 KB
testcase_04 AC 39 ms
52,212 KB
testcase_05 AC 37 ms
51,964 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 36 ms
52,124 KB
testcase_12 AC 38 ms
53,816 KB
testcase_13 AC 43 ms
58,696 KB
testcase_14 AC 44 ms
58,176 KB
testcase_15 WA -
testcase_16 AC 40 ms
57,676 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 55 ms
58,452 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 86 ms
59,844 KB
testcase_24 WA -
testcase_25 AC 37 ms
53,076 KB
testcase_26 AC 1,132 ms
58,456 KB
testcase_27 TLE -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
ans = 0
for i in range(K+1,(N-K)//2+1):
    if K != 0:
        if N % i != 0 and (N-K)%i == 0:
            ans += 1
    else:
        if N % i == 0 and (N-K)%i == 0:
            ans += 1
print(ans+1)
0